Re: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?

2009-11-20 Thread Nick Stolwijk
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
 wrote:
> If you add this to your pom.xml:
>
> 
>  org.apache.maven.plugins
>  maven-dependency-plugin
>  2.1
>  
>    
>      process-resources
>      
>        copy-dependencies
>      
>      
>        ${project.basedir}/WEB-INF/lib
>        test
>      
>    
>  
> 
>
> 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) ...
>
>    
>      com.myco.jsf
>      com-myco-jsf
>      1.11
>    
>    
>      myco.util.jsf
>      myco-util-jsf
>      1.3
>    
>
> 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?

2009-11-20 Thread Ludwig Magnusson
If you add this to your pom.xml:


  org.apache.maven.plugins
  maven-dependency-plugin
  2.1
  

  process-resources
  
copy-dependencies
  
  
${project.basedir}/WEB-INF/lib
test
  

  


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) ...


  com.myco.jsf
  com-myco-jsf
  1.11


  myco.util.jsf
  myco-util-jsf
  1.3


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?

2009-11-19 Thread Anders Hammar
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 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) ...
>
>
>  com.myco.jsf
>  com-myco-jsf
>  1.11
>
>
>  myco.util.jsf
>  myco-util-jsf
>  1.3
>
>
> 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
>
>