- Maven Plugin Example
- Os X Application Bundle Plugin For Maven Windows 10
- Os X Application Bundle Plugin For Maven 3
- Os X Application Bundle Plugin For Maven 8
Since Lion 10.7.1 10.6.8 MacOSx Snow Leopard (correct me if wrong), Mac OS X comes with Apache Maven 3 built in, and can be located at
/usr/share/maven
Maven Plugin Example
1. Maven Built-In
A plugin for interacting with legacy Maven 1.x repositories and builds. Reactor: B: 1.1: 2014-03-24: Build a subset of interdependent projects in a reactor (Maven 2 only). Repository: B: 2.4: 2019-04-30: Plugin to help with repository-based tasks. I'm using JLink to create native JavaFX app. When creating OS X app bundle, I can specify CFBundleName and CFBundleDisplayName in Info.plist, but I didn't find any way to set names of menu 'Hide' and 'Quit' items.What I obtain is: How I can rename org.example.samplejavafx.Main to something meaningful? My sample project. Sep 19, 2019 The Maven plugin for Launch4j lets you generate the executable as part of the Maven build process. Apple: appbundle-maven-plugin. Testing the app on an Apple machine? This Maven plugin creates an Application Bundle for OS X that will contain all your project dependencies and the necessary metadata. Linux: debian-maven-plugin. Maven plugin that creates an Application Bundle for OS X containing all your project dependencies. Latest release 1.2.0 - Updated Sep 29, 2016 - 105 stars org.drjekyll:javapns.
To verify the Maven installation, in terminal, issue the command
mvn -version
.1.1 – Where is Maven installed?
A quick check with
A quick check with
whereis
command :By default, Maven is installed at
/usr/share/maven
. No configuration is needed. Best transformation pack.2. Install Maven Manually
After the upgrade of Mac OS X Mavericks, Maven was removed (no idea why). So, You have to install it manually.
2.1 – Download Maven
Download the Maven, for example
Download the Maven, for example
apache-maven-3.1.1-bin.tar.gz
. Extracts it, https://zegreat656.weebly.com/mac-os-x-107-download-for-pc.html. 2.2 – Set Maven command in environment variable.
Update
Update
~/. bash_profile
– create this file if doesn’t exist.~/.bash_profile
Restart the terminal. Test it.
3. Post Configuration
A common post-installation for Maven, change the local repository to another location.
Above example changed the default repository from
~/.m2/repository
to /Users/mkyong//maven/repo/
.References
Tags : macmaven
Related Articles
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities. Read all published posts byComments
Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata.
Package with following command,
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,Embedd Java Runtime Environment
Locate the JRE or JDK on your Mac (
/Library/Java/JavaVirtualMachines/
on default configuration).https://zegreat656.weebly.com/latest-flash-player-for-mac-os-x-10411.html. Configure
pom.xml
like below, Free upgrade for mac os x 10 10.5.How to create DMG
Configure
pom.xml
like below,About this plugin
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.
Os X Application Bundle Plugin For Maven Windows 10
I merged both and fix to work as a maven plugin that supports latest Mac OS X.
Os X Application Bundle Plugin For Maven 3
License
Copyright 2014 - 2016, 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.Os X Application Bundle Plugin For Maven 8
Other files are licensed under the Apache License, Version 2.0.