Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/federkasten/appbundle-maven-plugin
- Owner: federkasten
- License: apache-2.0
- Created: 2014-01-17T13:44:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T09:14:29.000Z (about 3 years ago)
- Last Synced: 2024-12-17T19:07:49.107Z (8 days ago)
- Topics: apple, java, jvm, maven-plugin, oracle
- Language: Java
- Homepage:
- Size: 139 KB
- Stars: 180
- Watchers: 18
- Forks: 56
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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