9

Lets say you created a little Java Desktop app with a jar and some dependencies and possibly a license text file. I know there are plenty of Ant tasks that can generate installers, executables and proper Mac OS X applications including packaging them as ".dmg" files. Examples would be JarBundler and Launch4j

Does similar things exist for Maven?

Thanks

Community
  • 1
  • 1
willcodejavaforfood
  • 43,223
  • 17
  • 81
  • 111

3 Answers3

8

OSX appbundle plugin

dfa
  • 114,442
  • 31
  • 189
  • 228
  • Is this going to work with Oracle JRE 7? I believe it will pack the bundle in a little bit different way! I used the AppBundler Ant task: https://java.net/projects/appbundler to work with Oracle JRE 7. – Jurica Krizanic Jul 08 '13 at 20:31
4

To generate a windows executable in a maven build, you can use the launch4j-maven-plugin. I just answered a related question, Trying to integrate Launch4j in a Maven project using Alakai plugin, showing how to accomplish that. It's very easy, more than JSmooth, which always had a maven plugin.

Hope it helps!

Community
  • 1
  • 1
Bruno Medeiros
  • 2,251
  • 21
  • 34
4

I also think launch4j has a maven plugin

Cogsy
  • 5,584
  • 4
  • 35
  • 47
  • You don't need a maven plugin to use launch4j. Here is an example: https://github.com/jjYBdx4IL/example-maven-project-setups/tree/master/launch4j-example – user1050755 Nov 11 '14 at 05:58