RE: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?
If you add this to your pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.1/version executions execution phaseprocess-resources/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.basedir}/WEB-INF/lib/outputDirectory excludeScopetest/excludeScope /configuration /execution /executions /plugin All your dependencies (that is not in the test-scope) should be copied to /WEB-INF/lib during the specified phase (here, process-resources). If you then run mvn package, your war-file is created anf the jars are included. /Ludwig -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: den 19 november 2009 23:04 To: users@maven.apache.org Subject: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder? I'm using Maven 2.2 on Mac 10.5.6 with JBoss 5.1. I have these two dependencies in my pom.xml (I'm building a WAR file) ... dependency groupIdcom.myco.jsf/groupId artifactIdcom-myco-jsf/artifactId version1.11/version /dependency dependency groupIdmyco.util.jsf/groupId artifactIdmyco-util-jsf/artifactId version1.3/version /dependency I can compile and build my project fine using mvn clean install jboss:redeploy However when I open up my WAR file, the two JAR files listed above are not there. Why not? Anyone know how to include them? Thanks, - Dave -- View this message in context: http://old.nabble.com/Isn%27t-listing-a-dependency-supposed-to-download-that -JAR-file-into-your-WEB-INF-lib-folder--tp26421497p26421497.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?
The war plugin automatically puts all your dependencies on runtime and compile in your war file, so I guess the dependencies aren't in one of those scopes. Look at mvn dependencies:tree output to see in what scope they are. With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Fri, Nov 20, 2009 at 12:09 PM, Ludwig Magnusson lud...@itcatapult.com wrote: If you add this to your pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.1/version executions execution phaseprocess-resources/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.basedir}/WEB-INF/lib/outputDirectory excludeScopetest/excludeScope /configuration /execution /executions /plugin All your dependencies (that is not in the test-scope) should be copied to /WEB-INF/lib during the specified phase (here, process-resources). If you then run mvn package, your war-file is created anf the jars are included. /Ludwig -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: den 19 november 2009 23:04 To: users@maven.apache.org Subject: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder? I'm using Maven 2.2 on Mac 10.5.6 with JBoss 5.1. I have these two dependencies in my pom.xml (I'm building a WAR file) ... dependency groupIdcom.myco.jsf/groupId artifactIdcom-myco-jsf/artifactId version1.11/version /dependency dependency groupIdmyco.util.jsf/groupId artifactIdmyco-util-jsf/artifactId version1.3/version /dependency I can compile and build my project fine using mvn clean install jboss:redeploy However when I open up my WAR file, the two JAR files listed above are not there. Why not? Anyone know how to include them? Thanks, - Dave -- View this message in context: http://old.nabble.com/Isn%27t-listing-a-dependency-supposed-to-download-that -JAR-file-into-your-WEB-INF-lib-folder--tp26421497p26421497.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?
They should. Two reasons why they aren't that I can think of right now are: 1. Their scope is provided 2. The war plugin is configured to exclude them (param 'packagingExcludes' or 'packagingIncludes'). Run help:effective-pom to get the effective pom to see the complete picture. mvn install -X would also give you (a lot) more info on what is going on. /Anders On Thu, Nov 19, 2009 at 23:04, laredotornado laredotorn...@gmail.comwrote: I'm using Maven 2.2 on Mac 10.5.6 with JBoss 5.1. I have these two dependencies in my pom.xml (I'm building a WAR file) ... dependency groupIdcom.myco.jsf/groupId artifactIdcom-myco-jsf/artifactId version1.11/version /dependency dependency groupIdmyco.util.jsf/groupId artifactIdmyco-util-jsf/artifactId version1.3/version /dependency I can compile and build my project fine using mvn clean install jboss:redeploy However when I open up my WAR file, the two JAR files listed above are not there. Why not? Anyone know how to include them? Thanks, - Dave -- View this message in context: http://old.nabble.com/Isn%27t-listing-a-dependency-supposed-to-download-that-JAR-file-into-your-WEB-INF-lib-folder--tp26421497p26421497.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org