This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven 2 - Include webstart .jar into .war - not in /WEB-INF/lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven 2 - Include webstart .jar into .war - not in /WEB-INF/lib" Watch "Maven 2 - Include webstart .jar into .war - not in /WEB-INF/lib" New topic
Author

Maven 2 - Include webstart .jar into .war - not in /WEB-INF/lib

Dave Boden
Ranch Hand

Joined: Nov 08, 2000
Posts: 37
Maven 2.

I've produced a client jar to be downloaded and run in WebStart. Let's call it client.jar. groupId=myapp artifactId=client

I have another project groupId=myapp artifactId=webapp. This generates a .war file. I want to tell the war plugin to add the client.jar file to the root of the .war package. I don't want to add a <dependency> on the client.jar because this means that it will end up in /WEB-INF/lib. It shouldn't be on the server's classpath... so I don't want it in the lib directory.

I would have thought this was a very general requirement for anyone deploying a WebStart web application using Maven? Is there a way that I can order the war plugin to do the required bundling?
Dave Boden
Ranch Hand

Joined: Nov 08, 2000
Posts: 37
The solution involved using the Maven assembly plugin inside the war project.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Maven 2 - Include webstart .jar into .war - not in /WEB-INF/lib
 
Similar Threads
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project
Ear Building in Maven
Spring Major version '3' expected
Google Web Toolkit (GWT): Practice
Not able to include Constainer specific xml file in WEB-INF folder