提交 6af0308f 编写于 作者: S Stephen Connolly 提交者: Kohsuke Kawaguchi

use build-helper to attach the war-for-test

上级 db8695be
......@@ -159,23 +159,33 @@ THE SOFTWARE.
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
<!-- version specified in grandparent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>package</id>
<!-- deploy the war as a jar, so that the tests can pull this into the classpath -->
<id>deploy-war-for-test</id>
<phase>package</phase>
<goals>
<goal>run</goal>
<goal>attach-artifact</goal>
</goals>
<configuration>
<tasks>
<!-- deploy the war as a jar, so that the tests can pull this into the classpath -->
<attachArtifact file="target/jenkins.war" classifier="war-for-test" type="jar" />
</tasks>
<artifacts>
<artifact>
<file>${basedir}/target/${project.build.finalName}.war</file>
<type>jar</type>
<classifier>war-for-test</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
<!-- version specified in grandparent pom -->
<executions>
<execution>
<id>resgen</id>
<phase>generate-resources</phase>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册