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> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <version>2.1</version> > <executions> > <execution> > <phase>process-resources</phase> > <goals> > <goal>copy-dependencies</goal> > </goals> > <configuration> > <outputDirectory>${project.basedir}/WEB-INF/lib</outputDirectory> > <excludeScope>test</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> > <groupId>com.myco.jsf</groupId> > <artifactId>com-myco-jsf</artifactId> > <version>1.11</version> > </dependency> > <dependency> > <groupId>myco.util.jsf</groupId> > <artifactId>myco-util-jsf</artifactId> > <version>1.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