You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado <la...@gmail.com> on 2009/11/19 23:04:06 UTC
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Isn't listing a dependency supposed to download that JAR file
into your WEB-INF/lib folder?
Posted by Anders Hammar <an...@hammar.net>.
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 <la...@gmail.com>wrote:
>
> 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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Isn't listing a dependency supposed to download that JAR file
into your WEB-INF/lib folder?
Posted by Nick Stolwijk <ni...@gmail.com>.
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
<lu...@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:laredotornado@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-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
RE: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?
Posted by Ludwig Magnusson <lu...@itcatapult.com>.
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:laredotornado@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-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