outputFileNameMapping on WAR module

2007-09-11 Thread Christopher Moesel
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

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-war-plugin/artifactId

  version2.0.3-SNAPSHOT/version

  configuration

archiveClassestrue/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



Re: outputFileNameMapping on WAR module

2007-09-11 Thread Stephane Nicoll
Hi,

The plugin has switched to 2.1-alpha-1-SNAPSHOT since we've made a big
big refactoring to support new cool features such as overlays
handling.

I never had this problem so far; pease create a pom to reproduce the
issue with public artifacts and create an issue in the war project.

Regards,
Stéphane

On 9/11/07, Christopher Moesel [EMAIL PROTECTED] wrote:
 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

   groupIdorg.apache.maven.plugins/groupId

   artifactIdmaven-war-plugin/artifactId

   version2.0.3-SNAPSHOT/version

   configuration

 archiveClassestrue/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




-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: outputFileNameMapping on WAR module

2007-09-11 Thread CMoesel

Thanks for the reply, Stephane.  I've created a bug with an attached example:

http://jira.codehaus.org/browse/MWAR-116

-Chris


Stephane Nicoll-2 wrote:
 
 Hi,
 
 The plugin has switched to 2.1-alpha-1-SNAPSHOT since we've made a big
 big refactoring to support new cool features such as overlays
 handling.
 
 I never had this problem so far; pease create a pom to reproduce the
 issue with public artifacts and create an issue in the war project.
 
 Regards,
 Stéphane
 
 On 9/11/07, Christopher Moesel [EMAIL PROTECTED] wrote:
 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

   groupIdorg.apache.maven.plugins/groupId

   artifactIdmaven-war-plugin/artifactId

   version2.0.3-SNAPSHOT/version

   configuration

 archiveClassestrue/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


 
 
 -- 
 Large Systems Suck: This rule is 100% transitive. If you build one,
 you suck -- S.Yegge
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/outputFileNameMapping-on-WAR-module-tf4424785s177.html#a12623964
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]