GithubHelp home page GithubHelp logo

mrg / japp-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrus/japp-maven-plugin

0.0 2.0 0.0 516 KB

japp-maven-plugin is a plugin to assemble desktop Java applications for different platforms

License: Apache License 2.0

japp-maven-plugin's Introduction

japp-maven-plugin

(current released version: 3.0)

japp-maven-plugin is a plugin to assemble desktop Java applications for different platforms, namely OS X, Windows and Linux. Produced Linux version is a generic runnable jar that works on any other platform just as well.

japp-maven-plugin is a direct descendant of maven-japplication-plugin. The main motivation for its continuing development is to support the assembly of CayenneModeler application developed by the Apache Cayenne project. However there's no Cayenne dependency what so ever. The plugin is generic and anyone is welcome to use it for Java app packaging.

Supported Environments

The plugin can package Java apps for the following platforms:

Target Platform Build Platform Build Java Version
OS X - Oracle Java (1.7 and newer) Any 1.7+
OS X - Legacy Apple Java (1.5, 1.6) Any 1.5+
Windows Windows 1.5+
Generic / Cross-Platform Any 1.5+

Getting The Plugin

  • You may clone the git repo and do "mvn clean install"

  • You may get a released version from ObjectStyle Maven repository. (I may push it to Central if there's popular demand). For this you will need to declare the repo in your POM:

      <repository>
              <id>objectstyle</id>
              <name>ObjectStyle Repository</name>
              <url>http://maven.objectstyle.org/nexus/content/repositories/releases</url>
              <layout>default</layout>
      </repository>
    
  • If you are using a repository manager like Nexus, you may add the repository above to the list of proxied repos. This is probably the cleanest option.

Examples

Packaging for OS X:

<plugin>
	<groupId>org.objectstyle.japp</groupId>
	<artifactId>japp-maven-plugin</artifactId>
	<version>3.0</version>
	<configuration>
		<name>MyApp</name>
		<mainClass>org.foo.Main</mainClass>
		<icon>src/japplication/resources/My.icns</icon>
		<os>mac</os>
		<jvmOptions>-Xmx512m -Dapple.laf.useScreenMenuBar=true</jvmOptions>
	</configuration>
	<executions>
		<execution>
			<phase>generate-resources</phase>
			<goals>
				<goal>japp</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Packaging for OS X legacy Apple JVM:

<plugin>
	<groupId>org.objectstyle.japp</groupId>
	<artifactId>japp-maven-plugin</artifactId>
	<version>3.0</version>
	<configuration>
		<name>MyApp</name>
		<mainClass>org.foo.Main</mainClass>
		<icon>src/japplication/resources/My.icns</icon>
		<os>mac</os>
		<flavor>osx_legacy</flavor>
		<jvm>1.5+</jvm>
		<jvmOptions>-Xmx512m -Dapple.laf.useScreenMenuBar=true</jvmOptions>
	</configuration>
	<executions>
		<execution>
			<phase>generate-resources</phase>
			<goals>
				<goal>japp</goal>
			</goals>
		</execution>
	</executions>
</plugin>

japp-maven-plugin's People

Contributors

andrus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.