connjurpackage-maven-plugin Maven Mojo

Plugin used to package JavaFX 11+ projects

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.nmrbox.connjur
ArtifactId

ArtifactId

connjurpackage-maven-plugin
Last Version

Last Version

1.0.8
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

connjurpackage-maven-plugin Maven Mojo
Plugin used to package JavaFX 11+ projects
Project URL

Project URL

https://www.nmrbox.org
Project Organization

Project Organization

NMRbox.org
Source Code Management

Source Code Management

https://github.com/CONNJUR/connjurpackage-maven-plugin

Download connjurpackage-maven-plugin

How to add to project

<plugin>
    <groupId>org.nmrbox.connjur</groupId>
    <artifactId>connjurpackage-maven-plugin</artifactId>
    <version>1.0.8</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0
org.codehaus.plexus : plexus-java jar 0.9.11
org.codehaus.plexus : plexus-archiver jar 3.6.0
org.apache.commons : commons-exec jar 1.3
org.apache.maven : maven-core jar 3.6.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (10)

Group / Artifact Type Version
org.openjfx : javafx-controls jar 12.0.1
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.6.0
org.apache.maven : maven-aether-provider jar 3.3.9
org.eclipse.aether : aether-transport-http jar 1.1.0
org.eclipse.aether : aether-transport-file jar 1.1.0
org.eclipse.aether : aether-connector-basic jar 1.1.0
org.codehaus.plexus : plexus-interpolation jar 1.25
org.mockito : mockito-core jar 2.24.5
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Maven plugin to package JavaFX 11+ applications

Maven plugin to package JavaFX 11+ applications.

Apache License

This plugin supports legacy Java applications that lack necessary module information to be assembled using jlink. To run or package via jlink, see javafx-maven-plugin.

Install

The plugin is available via Maven Central.

In case you want to build and install the latest snapshot, you can clone the project, set JDK 11 and run

mvn install

Usage

Create a new Maven project, use an existing one like HelloFX, or use an archetype.

The project can be modular or non-modular.

JavaFX dependencies are added as usual:

<dependency>
    <groupId>org.openjfx</groupId>
    <artifactId>javafx-controls</artifactId>
    <version>12.0.2</version>
</dependency>

Add the plugin:

<plugin>
	<groupId>edu.uchc.connjur</groupId>
	<artifactId>connjurpackage-maven-plugin</artifactId>
	<version>1.0.0</version>
	<configuration>
	  <mainClass>hellofx/org.openjfx.App</mainClass>
	  <!-- optional configurations
	  <absolute>true</absolute>
	  <jarDirectory>myjars</jarDirectory>
	  <packageDirectory>mypackages</packageDirectory>
	  -->
	</configuration>
</plugin>

connjurpackage:package

The one goal is connjurpackage:package.

mvn connjurpackage:package

The plugin includes by default: --module-path, --add-modules and -classpath options.

Optionally, the configuration can be modified with:

inherited options

  • mainClass: The main class, fully qualified name, with or without module name
  • workingDirectory: The current working directory
  • skip: Skip the execution. Values: false (default), true
  • outputFile File to redirect the process output
  • options: A list of VM options passed to the executable.
  • commandlineArgs: Arguments separated by space for the executed program
  • includePathExceptionsInClasspath: When resolving the module-path, setting this value to true will include the dependencies that generate path exceptions in the classpath. By default the value is false, and these dependencies won't be included.

package options

  • absolute: use absolute paths in generated scripts (default is relative)
  • jarDirectory: specify name of jar directory (default is "jars")
  • packageDirectory: specify name of package directory (default is "package")

See https://github.com/openjfx/javafx-maven-plugin for details on inherited options.

Note

It is possible to use a local SDK instead of Maven Central. This is helpful for developers trying to test a local build of OpenJFX. Since transitive dependencies are not resolved, all the required jars needs to be added as a separate dependency, like:

<properties>
    <sdk>/path/to/javafx-sdk</sdk>
</properties>

<dependencies>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx.base</artifactId>
        <version>1.0</version>
        <scope>system</scope>
        <systemPath>${sdk}/lib/javafx.base.jar</systemPath>
    </dependency>
    ...
</dependencies>
org.nmrbox.connjur

Versions

Version
1.0.8
1.0.7