I can use mvn dependency:copy-dependencies -DincludeScope=compile
(http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html)
to get the correct jar files that I want, but I don't know how to delete the
jar files from the war file and replace it with the ones generated by the
above command.
shouldn't the plugin below produce the same output as the output generated
by command above??
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/alternateLocation</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<includeScope>compile</includeScope>
</configuration>
</execution>
</executions>
</plugin>
--
View this message in context:
http://www.nabble.com/maven-adding-wrong-jar-files-in-war-lib-tp22500900p22501463.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]