Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/federkasten/appbundle-maven-plugin

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata
https://github.com/federkasten/appbundle-maven-plugin

apple java jvm maven-plugin oracle

Last synced: 1 day ago
JSON representation

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

Awesome Lists containing this project

README

        

# appbundle-maven-plugin

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

```xml

sh.tak.appbundler
appbundle-maven-plugin
1.2.0

your.app.MainClass



package

bundle


```

Package with following command,

```shell
mvn package appbundle:bundle
```

## Use Custom Info.plist and Icon

Put your custom Info.plist and Icon.icns under your maven resource paths (`src/main/resources` on default configuration).

Configure `pom.xml` like below,

```xml

your.app.MainClass
YourCustomInfo.plist
CustomIncon.icns

```

## Embedd Java Runtime Environment

Locate the JRE or JDK on your Mac (`/Library/Java/JavaVirtualMachines/` on default configuration).

Configure `pom.xml` like below,

```xml

your.app.MainClass
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk

```

## How to create DMG

Configure `pom.xml` like below,

```xml

your.app.MainClass
true

```

## About this plugin

As you may know, Apple has dropped Java development from OS X excluding security patches.

mojo's [osxappbundle-maven-plugin](http://mojo.codehaus.org/osxappbundle-maven-plugin/) depends on Apple's Java launcher, so it does not support Java version 7 and future.

Oracle's [Java Application Bundler](https://java.net/projects/appbundler) 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.

## License

Copyright 2014 - 2016, [Takashi AOKI][tak.sh] and other contributors.

Copyright 2012, Oracle and/or its affiliates.

`native/main.m` is licensed under the [GNU General Public License version 2][gnu-general-public-license-2.0].

Other files are licensed under the [Apache License, Version 2.0][apache-license-2.0].

[tak.sh]: https://tak.sh
[gnu-general-public-license-2.0]: http://www.gnu.org/licenses/gpl-2.0.html
[apache-license-2.0]: http://www.apache.org/licenses/LICENSE-2.0.html