maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Entner Harald" <Entner.Har...@afb.de>
Subject AW: war-plugin copy dependency to WEB-INF/custom-lib
Date Fri, 15 Jan 2010 14:35:15 GMT
Hi Klause,

Have a look here: http://jira.codehaus.org/browse/MDEP-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_68254

in that case you should use the assembly plugin (at least i understand it that way.) I haven't
used that plugin so far, but it seems to suit your needs. 

Harald 

-----Ursprüngliche Nachricht-----
Von: Hauschild, Klaus (EXT) [mailto:klaus.hauschild.ext@siemens.com] 
Gesendet: Freitag, 15. Januar 2010 15:03
An: Maven Users List
Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib

I don't want to copy all dependencies to a custom target only a specific and its depending
artifacts.

-----Ursprüngliche Nachricht-----
Von: Entner Harald [mailto:Entner.Harald@afb.de] 
Gesendet: Freitag, 15. Januar 2010 15:00
An: Maven Users List
Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib

yes, same plugin. If you want to copy all dependencies of the project (including the transitive
dependencie), use the dependency:copy-dependencies goal. This should do the job. 


-----Ursprüngliche Nachricht-----
Von: Hauschild, Klaus (EXT) [mailto:klaus.hauschild.ext@siemens.com] 
Gesendet: Freitag, 15. Januar 2010 14:56
An: Maven Users List
Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib

Hi,

Thanks for quick answer. But is there still a way to copy the specified dependency and all
its depending artifacts?

Klaus 



-----Ursprüngliche Nachricht-----
Von: Entner Harald [mailto:Entner.Harald@afb.de] 
Gesendet: Freitag, 15. Januar 2010 11:53
An: Maven Users List
Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib

check the maven-dependency-plugin[1], especially copy [2]. 

[1] http://maven.apache.org/plugins/maven-dependency-plugin/
[2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html

-----Ursprüngliche Nachricht-----
Von: Hoehmann, Andreas [mailto:andreas.hoehmann.ext@siemens.com] 
Gesendet: Freitag, 15. Januar 2010 11:45
An: users@maven.apache.org
Cc: Hauschild, Klaus (EXT); Lincourt, Gabriel (Ext)
Betreff: war-plugin copy dependency to WEB-INF/custom-lib

Hello folks.
 
Is it possible to copy a special war-artifact dependency to a other target-path than "WEB-INF/lib",
i.e "WEB-INF/custom-lib"?
All other "normal" dependencies should be copied to "WEB-INF/lib".
 
== Example ==
 
POM:
 
<dependency>
 <artifactId>common-lang</artifactId>
</dependency>
<dependency>
 <artifactId>...</artifactId>
</dependency>
<dependency>
 <artifactId>special</artifactId>
</dependency>
 
The generated WAR should contain this:
 
WAR:
  |---> WEB-INF/
           |---> lib/common-lang.jar
           |---> lib/...
           |---> custom-lib/special.jar


Kind regards

Andreas
-[http://www.ahoehma.de]-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message