Hello,

 

I would like to have maven copy all of my dependencies to my web-inf/lib
in the ${artifactId}.${extension} style instead of the default style
(which includes version numbers in the name).

 

I've seen that MWAR-93 [1] addresses this problem and the fix is in the
war plugin v. 2.0.3.  So, I tried adding the following to my POM:

<plugin>

  <groupId>org.apache.maven.plugins</groupId>

  <artifactId>maven-war-plugin</artifactId>

  <version>2.0.3-SNAPSHOT</version>

  <configuration>

    <archiveClasses>true</archiveClasses>

 
<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping
>

  </configuration>

</plugin>

 

This results in really oddly named files in my web-inf/lib now.  A
typical example:

org.springframework-mywebapp.null

 

So, the resulting files are really mapped more like: ${groupId of the
dependency}-${artifactId of my war module}.null

 

There's not much documentation, so maybe I'm doing this wrong (I hope
so!).  Could someone please offer some guidance?

 

Thanks,

Chris

 

[1] http://jira.codehaus.org/browse/MWAR-93

Reply via email to