提交 b5bc77f7 编写于 作者: K kohsuke

generate the dependencies list so that executable-war doesn't have to...

generate the dependencies list so that executable-war doesn't have to hard-code versions of the libraries it uses

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22342 71c3de6d-444a-0410-be80-ed276b4c234a
上级 71d91e01
......@@ -46,7 +46,7 @@ THE SOFTWARE.
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<version>2.1-beta-1</version>
<configuration>
<webResources>
<resource>
......@@ -65,8 +65,23 @@ THE SOFTWARE.
<mainClass>Main</mainClass>
</manifest>
</archive>
<!--outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping-->
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>list</goal>
</goals>
<configuration>
<outputFile>${basedir}/target/classes/dependencies.txt</outputFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
......@@ -96,7 +111,7 @@ THE SOFTWARE.
<mkdir dir="target/generated-resources" />
<!-- put executable war header -->
<resolveArtifact groupId="org.jvnet.hudson" artifactId="executable-war" version="1.13" type="jar" property="executable-war.jar" />
<resolveArtifact groupId="org.jvnet.hudson" artifactId="executable-war" version="1.14" type="jar" property="executable-war.jar" />
<unjar src="${executable-war.jar}" dest="target/generated-resources">
<patternset>
<include name="**/*.class" />
......@@ -226,17 +241,6 @@ THE SOFTWARE.
<port>8080</port><!-- HTTP listener port -->
</properties>
<pluginRepositories>
<pluginRepository>
<id>java.net2</id>
<url>http://download.java.net/maven/2</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<!-- profile for creating Hudson IPS package -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册