This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dave Boden
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution involved using the Maven assembly plugin inside the war project.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic