• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Libraries to JavaArchive  RSS feed

 
das gov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

org.jboss.shrinkwrap.api.spec.JavaArchive does have a method like org.jboss.shrinkwrap.api.spec.WebArchive.addAsLibraries()



What is the workaround for this with Java Archive?

Thanks,
Daslan
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike WAR and EAR files, JAR files cannot contain dependencies as JAR files. The only way to include a dependency inside a JAR file is to unpack it and include all files inside it. That's what the Maven Shade plugin does, for instance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!