Skip to content

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata.

License

Notifications You must be signed in to change notification settings

koendecock/appbundler-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appbundler-plugin

About

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata.

As you may know, Apple has dropped Java development from OS X excluding security patches. mojo's osxappbundle-maven-plugin depends on Apple's Java launcher, so it does not support Java version 7 and future.

Oracle's Java Application Bundler supports other Java runtime (including Java 7, 8 and more), but it does not support maven.

I merged both and fix to work as a maven plugin that supports latest Mac OS X.

How to build

To build native application launcher, run

sh build.sh

and install

mvn install

How to use

A example configuration for pom.xml is followings,

<build>
    ...
    <plugins>
        ...
        <plugin>
            <groupId>io.github.appbundler</groupId>
            <artifactId>appbundle-maven-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <configuration>
                <mainClass>your.app.MainClass</mainClass>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>bundle</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        ...
    </plugins>
    ...
</build>

Package with following command,

mvn package appbundle:bundle

How to create DMG

You can create DMG(Apple disk image) file with the following command,

hdiutil create -srcfolder path/to/archive path/to/YourApplication.dmg

License

Copyright 2014, Takashi AOKI and other contributors.

Copyright 2012, Oracle and/or its affiliates.

native/main.m is licensed under the GNU General Public License version 2.

Other files are licensed under the Apache License, Version 2.0.

About

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 77.0%
  • Objective-C 21.3%
  • Shell 1.7%