Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreed, this is how I do my Java standalones. Eclipse makes this easy with Export | Runnable Jar providing several options for how to package the build.


The Maven assembly plugin can also do this with the 'jar-with-dependencies' descriptor.


I personally use the maven-shade-plugin for this because it has built-in support for handling special resource files like licenses, service definitions, and manifest entries.


The maven shade plugin can be dangerous if you hit the zip file limit of 65535 entries. Watch your filters.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: