提交 ed6f3a36 编写于 作者: J jglick

Warnings and one error emitted by Maven 3.0 beta 1.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33417 71c3de6d-444a-0410-be80-ed276b4c234a
上级 963621ac
...@@ -57,7 +57,6 @@ THE SOFTWARE. ...@@ -57,7 +57,6 @@ THE SOFTWARE.
<plugin> <plugin>
<groupId>org.kohsuke.stapler</groupId> <groupId>org.kohsuke.stapler</groupId>
<artifactId>maven-stapler-plugin</artifactId> <artifactId>maven-stapler-plugin</artifactId>
<version>1.15</version>
<extensions>true</extensions> <extensions>true</extensions>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -128,13 +127,13 @@ THE SOFTWARE. ...@@ -128,13 +127,13 @@ THE SOFTWARE.
</tstamp> </tstamp>
<property name="build.type" value="private" /> <!-- override for "rc" build --> <property name="build.type" value="private" /> <!-- override for "rc" build -->
<pathconvert property="version.rc"> <pathconvert property="version.rc">
<path path="${version}" /> <path path="${project.version}" />
<chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper> <chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper>
</pathconvert> </pathconvert>
<condition property="build.version" value="${version.rc} (${now})"> <condition property="build.version" value="${version.rc} (${now})">
<equals arg1="${build.type}" arg2="rc" /> <equals arg1="${build.type}" arg2="rc" />
</condition> </condition>
<property name="build.version" value="${version} (${build.type}-${now}-${user.name})" /> <property name="build.version" value="${project.version} (${build.type}-${now}-${user.name})" />
<!-- default to release version --> <!-- default to release version -->
<!-- put the version file --> <!-- put the version file -->
<echo message="The build id is: ${build.version}" /> <echo message="The build id is: ${build.version}" />
...@@ -213,7 +212,7 @@ THE SOFTWARE. ...@@ -213,7 +212,7 @@ THE SOFTWARE.
<id>release</id> <id>release</id>
<properties> <properties>
<!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. --> <!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. -->
<build.version>${version}</build.version> <build.version>${project.version}</build.version>
</properties> </properties>
<build> <build>
<plugins> <plugins>
...@@ -796,6 +795,7 @@ THE SOFTWARE. ...@@ -796,6 +795,7 @@ THE SOFTWARE.
<plugin><!-- generate Jelly tag lib documentation --> <plugin><!-- generate Jelly tag lib documentation -->
<groupId>org.kohsuke.stapler</groupId> <groupId>org.kohsuke.stapler</groupId>
<artifactId>maven-stapler-plugin</artifactId> <artifactId>maven-stapler-plugin</artifactId>
<version>1.15</version>
<configuration> <configuration>
<patterns> <patterns>
<pattern>/lib/.*</pattern> <pattern>/lib/.*</pattern>
...@@ -804,6 +804,7 @@ THE SOFTWARE. ...@@ -804,6 +804,7 @@ THE SOFTWARE.
</plugin> </plugin>
<plugin><!-- skip slow dependency analysis --> <plugin><!-- skip slow dependency analysis -->
<artifactId>maven-project-info-reports-plugin</artifactId> <artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.2</version>
<configuration> <configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled> <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration> </configuration>
......
...@@ -52,7 +52,7 @@ THE SOFTWARE. ...@@ -52,7 +52,7 @@ THE SOFTWARE.
</dependency> </dependency>
<dependency> <dependency>
<groupId>${groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>maven-agent</artifactId> <artifactId>maven-agent</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
......
...@@ -97,6 +97,26 @@ THE SOFTWARE. ...@@ -97,6 +97,26 @@ THE SOFTWARE.
<plugin> <plugin>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.6.1</version> <version>2.6.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin> </plugin>
<plugin> <plugin>
<!-- <!--
...@@ -137,16 +157,6 @@ THE SOFTWARE. ...@@ -137,16 +157,6 @@ THE SOFTWARE.
<remoteTagging>true</remoteTagging><!-- work around http://jira.codehaus.org/browse/SCM-406 --> <remoteTagging>true</remoteTagging><!-- work around http://jira.codehaus.org/browse/SCM-406 -->
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<!--
*.html files are in UTF-8, and *.properties are in iso-8859-1, so this configuration is acturally incorrect,
but this suppresses a warning from Maven, and as long as we don't do filtering we should be OK.
-->
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin> <plugin>
<artifactId>maven-remote-resources-plugin</artifactId> <artifactId>maven-remote-resources-plugin</artifactId>
<version>1.0</version> <version>1.0</version>
...@@ -177,9 +187,10 @@ THE SOFTWARE. ...@@ -177,9 +187,10 @@ THE SOFTWARE.
</configuration> </configuration>
</plugin> </plugin>
<plugin><!-- we specify this in the parent POM, so this is redundant, but otherwise IntelliJ is unhappy --> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <version>2.3.1</version>
<configuration><!-- we specify this in the parent POM, so this is redundant, but otherwise IntelliJ is unhappy -->
<source>1.5</source> <source>1.5</source>
<target>1.5</target> <target>1.5</target>
</configuration> </configuration>
...@@ -241,6 +252,9 @@ THE SOFTWARE. ...@@ -241,6 +252,9 @@ THE SOFTWARE.
<properties> <properties>
<maven.version>2.0.9</maven.version> <maven.version>2.0.9</maven.version>
<maven.embedder.version>2.0.4</maven.embedder.version> <maven.embedder.version>2.0.4</maven.embedder.version>
<!-- *.html files are in UTF-8, and *.properties are in iso-8859-1, so this configuration is acturally incorrect,
but this suppresses a warning from Maven, and as long as we don't do filtering we should be OK. -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<profiles> <profiles>
...@@ -323,7 +337,7 @@ THE SOFTWARE. ...@@ -323,7 +337,7 @@ THE SOFTWARE.
</goals> </goals>
<phase>package</phase> <phase>package</phase>
<configuration> <configuration>
<finalName>hudson-${version}</finalName> <finalName>hudson-${project.version}</finalName>
<descriptors> <descriptors>
<descriptor>assembly-src.xml</descriptor> <descriptor>assembly-src.xml</descriptor>
</descriptors> </descriptors>
......
...@@ -105,13 +105,13 @@ THE SOFTWARE. ...@@ -105,13 +105,13 @@ THE SOFTWARE.
</tstamp> </tstamp>
<property name="build.type" value="private" /> <!-- override for "rc" build --> <property name="build.type" value="private" /> <!-- override for "rc" build -->
<pathconvert property="version.rc"> <pathconvert property="version.rc">
<path path="${version}" /> <path path="${project.version}" />
<chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper> <chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper>
</pathconvert> </pathconvert>
<condition property="build.version" value="${version.rc} (${now})"> <condition property="build.version" value="${version.rc} (${now})">
<equals arg1="${build.type}" arg2="rc" /> <equals arg1="${build.type}" arg2="rc" />
</condition> </condition>
<property name="build.version" value="${version} (${build.type}-${now}-${user.name})" /> <property name="build.version" value="${project.version} (${build.type}-${now}-${user.name})" />
<!-- default to release version --> <!-- default to release version -->
<!-- put the version file --> <!-- put the version file -->
<mkdir dir="target/classes/hudson/remoting" /> <mkdir dir="target/classes/hudson/remoting" />
...@@ -178,7 +178,7 @@ THE SOFTWARE. ...@@ -178,7 +178,7 @@ THE SOFTWARE.
<id>release</id> <id>release</id>
<properties> <properties>
<!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. --> <!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. -->
<build.version>${version}</build.version> <build.version>${project.version}</build.version>
</properties> </properties>
</profile> </profile>
</profiles> </profiles>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册