Re: maven-war-plugin - single jar in /WEB-INB/lib?
I’m with you as far as it being silly but my marching orders are to use the single jar dependency build. So thanks for the tip! On 8/10/09 9:41 PM, Wayne Fay wayne...@gmail.com wrote: We¹re currently using the shade plugin to generate a single, uber foo.jar containing all of foo¹s classses as well as the class files of ALL dependencies. Assuming you've installed the foo-2.0-with-dependencies.jar file to your repo, you should be able to depend on: groupId: ?? artifactId: foo version: 2.0 classifier: with-dependencies But this whole discussion is silly IMO. Stop fighting Maven, and follow the convention... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sean Comerford, Software Engineer ESPN.com Site Architecture Group Office: 860.766.6454Cell: 860.951.6973
maven-war-plugin - single jar in /WEB-INB/lib?
I have a Maven 2.0.9 webapp build that uses the WAR plugin. My pom lists just a single dependency foo version 2.0. But when the plugin builds my WAR, the WEB-INF/lib directory contains all of the different jars that constitute the foo dependency. Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all the other jars? -- Sean Comerford, Software Engineer ESPN.com Site Architecture Group Office: 860.766.6454Cell: 860.951.6973
Re: maven-war-plugin - single jar in /WEB-INB/lib?
Sorry. I¹m didn¹t ask the question properly. Let me re-phrase: Artifact foo has a shade plugin based build that generates a single ³with-dependencies² jar containing all classes and dependent classes. I want that single jar (foo-2.0-with-dependencies.jar) to be placed in my WAR artifact¹s WEB-INF/lib folder. Is that possible (other than doing something manual like unpack)? Thanks, Sean On 8/10/09 12:18 PM, Heinrich Nirschl heinrich.nirs...@gmail.com wrote: On Mon, Aug 10, 2009 at 5:01 PM, Comerford, Seansean.comerf...@espn3.com wrote: I have a Maven 2.0.9 webapp build that uses the WAR plugin. Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all the other jars? Yes, have a look at the packagingExclude and packagingInclude parameters in http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html But I do not understand why you would like to have this. - Henry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sean Comerford, Software Engineer ESPN.com Site Architecture Group Office: 860.766.6454Cell: 860.951.6973
Re: maven-war-plugin - single jar in /WEB-INB/lib?
Let me try to clarify again: We¹re currently using the shade plugin to generate a single, uber foo.jar containing all of foo¹s classses as well as the class files of ALL dependencies. I want to apply that same idea to my my Maven war build as far as the stuff going into /WEB-INF/lib That is, instead of having 10 different jars (foo.jar and all of its dependency jars) in my WAR¹s WEB-INF/lib folder, I just want it to contain the uber foo-with-dependencies.jar artifact. Maven¹s war plugin seems to automatically expand all dependencies and suck in the individual jars instead. Unless I¹m missing something, provided scope is just something that tells Maven to exclude a dependency from the output. I¹m actually using that (for example) on the servlet-api dependency b/c app servers don¹t let you deploy your own copy of javax.servlet. On 8/10/09 12:25 PM, Mick Knutson mickknut...@gmail.com wrote: scopeprovided/scope --- Thank You Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Mon, Aug 10, 2009 at 12:18 PM, Heinrich Nirschl heinrich.nirs...@gmail.com wrote: On Mon, Aug 10, 2009 at 5:01 PM, Comerford, Seansean.comerf...@espn3.com wrote: I have a Maven 2.0.9 webapp build that uses the WAR plugin. Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all the other jars? Yes, have a look at the packagingExclude and packagingInclude parameters in http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html But I do not understand why you would like to have this. - Henry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sean Comerford, Software Engineer ESPN.com Site Architecture Group Office: 860.766.6454Cell: 860.951.6973