How do I add jars to my WAR-file ?
Hi there, how do I add JARs from the repository to my WAR file, using a special directory (not in WEB-INF/lib)? I tried using the assembly plugin, but I can't get it to do something When using goal attached, nothing happens, when using directory-inline, I get an error message (see below). Please help someone! Cheers, Frank Plugin config in my sub-project-pom: BEGIN_CODEBLOCK - build plugins plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalattached/goal /goals /execution /executions configuration descriptors descriptorsrc/assembly/assembly.xml/descriptor /descriptors /configuration /plugin /plugins /build --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-- END_CODEBLOCK My assembly.xml: BEGIN_CODEBLOCK - assembly idjanus-jars/id appendAssemblyIdfalse/appendAssemblyId dependencySets dependencySet outputDirectoryjanus-libs/outputDirectory includes includecommons-collections:commons-collections:3.1:jar/include includecommons-lang:commons-lang:2.0:jar/include includecommons-logging:commons-logging:1.0.4:jar/include includeorg.hibernate:hibernate:3.0.5:jar/include /includes /dependencySet /dependencySets /assembly --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-- END_CODEBLOCK When using goaldirectory-inline/goal: BEGIN_CODEBLOCK - [INFO] Processing DependencySet (output=janus-libs) [WARNING] The following patterns were never triggered in this artifact inclusion filter: o 'commons-collections:commons-collections:3.1:jar' o 'commons-lang:commons-lang:2.0:jar' o 'commons-logging:commons-logging:1.0.4:jar' o 'org.hibernate:hibernate:3.0.5:jar' [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating assembly: Error creating assembly archive: You must set at least one file. END_CODEBLOCK--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-- +--+-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I add jars to my WAR-file ?
On 6/19/07, Steinhauer, Frank [EMAIL PROTECTED] wrote: how do I add JARs from the repository to my WAR file, using a special directory (not in WEB-INF/lib)? Use the maven-dependency-plugin. -- Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How do I add jars to my WAR-file ?
Thanks, it worked! Haven't seen it -Ursprüngliche Nachricht- Von: Jochen Wiedmann [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 19. Juni 2007 12:53 An: Maven Users List Betreff: Re: How do I add jars to my WAR-file ? On 6/19/07, Steinhauer, Frank [EMAIL PROTECTED] wrote: how do I add JARs from the repository to my WAR file, using a special directory (not in WEB-INF/lib)? Use the maven-dependency-plugin. -- Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]