在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):federkasten/appbundle-maven-plugin开源软件地址(OpenSource Url):https://github.com/federkasten/appbundle-maven-plugin开源编程语言(OpenSource Language):Java 80.2%开源软件介绍(OpenSource Introduction):appbundle-maven-pluginMaven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata. <plugin>
<groupId>sh.tak.appbundler</groupId>
<artifactId>appbundle-maven-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<mainClass>your.app.MainClass</mainClass>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin> Package with following command, mvn package appbundle:bundle Use Custom Info.plist and IconPut your custom Info.plist and Icon.icns under your maven resource paths ( Configure <configuration>
<mainClass>your.app.MainClass</mainClass>
<dictionaryFile>YourCustomInfo.plist</dictionaryFile>
<iconFile>CustomIncon.icns</iconFile>
</configuration> Embedd Java Runtime EnvironmentLocate the JRE or JDK on your Mac ( Configure <configuration>
<mainClass>your.app.MainClass</mainClass>
<jrePath>/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk</jrePath>
</configuration> How to create DMGConfigure <configuration>
<mainClass>your.app.MainClass</mainClass>
<generateDiskImageFile>true</generateDiskImageFile>
</configuration> About this pluginAs 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. LicenseCopyright 2014 - 2016, Takashi AOKI and other contributors. Copyright 2012, Oracle and/or its affiliates.
Other files are licensed under the Apache License, Version 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论