Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project contententManagement-webapp: Failed to install artifact configurator:contententManagement-webapp:jar:2.4.3-SNAPSHOT: E:\hudson\jobs\PA1501-ServerSide\workspace\ContentManagement\target\jackrabbit-webapp-2.4.3-SNAPSHOT.jar (The system cannot find the file specified)
从hudson执行下面提到的有效pom.xml文件片段得到上述错误。
<build> <plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<jar basedir="E:\hudson\jobs\PA1501-ServerSide\workspace\ContentManagement\target/jackrabbit-webapp-2.4.3-SNAPSHOT.jar" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>E:\hudson\jobs\PA1501-ServerSide\workspace\ContentManagement\target/jackrabbit-webapp-2.4.3-SNAPSHOT.jar</file>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
发现E:\ hudson \ jobs \ PA1501-ServerSide \ workspace \ ContentManagement \ target \ classes包含要包含在jackrabbit-webapp-2.4.3-SNAPSHOT.jar中的相应文件夹,但是jackrabbit-webapp-2.4.3-使用上面的代码不会创建SNAPSHOT.jar文件。需要做哪些修改?