sbt / sbt-onejar

Packages your project using One-JAR™
MIT License
268 stars 45 forks source link

Extract contents of main/<projectname>.jar into <projectname>-one-jar.jar before final packaging #24

Closed erikkaplun closed 10 years ago

erikkaplun commented 10 years ago

One-Jar-Expand might help here as well, but I think not requiring runtime expansion of the fat jar is nicer.

The purpose of this would be to support libraries that cannot handle nested JARs such as (embedded) Jetty. The problem with e.g. Jetty is that it's not able to find .jsp files from within nested JARs just always reporting a 404.

I think adding a setting to enable the "splatting" of the main jar directly into the final jar would not be a difficult task but would provide a clean solution for the aforementioned problem.

If, on the other hand, OneJar already supports this, it would be nice to be able to pass the respective setting through to it via sbt-onejar settings.

erikkaplun commented 10 years ago

Don't personally need this anymore as I've moved to sbt-pack instead, and I'm assuming nobody else will care about such functionality either.