Executable JAR

Turns a JAR module artifact into an executable JAR file that preserves dependencies.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.brylex.maven
ArtifactId

ArtifactId

exec-jar
Last Version

Last Version

1.0-RC1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Executable JAR
Turns a JAR module artifact into an executable JAR file that preserves dependencies.
Project Organization

Project Organization

Brylex org.
Source Code Management

Source Code Management

https://github.com/runepeter/exec-jar

Download exec-jar

How to add to project

<plugin>
    <groupId>org.brylex.maven</groupId>
    <artifactId>exec-jar</artifactId>
    <version>1.0-RC1</version>
</plugin>

Dependencies

compile (11)

Group / Artifact Type Version
commons-io : commons-io jar 2.1
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-artifact jar 3.3.9
org.apache.maven : maven-model jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven : maven-settings jar 3.3.9
org.apache.maven : maven-archiver jar 3.1.1
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
org.apache.maven.shared : maven-dependency-tree jar 3.0
org.slf4j : slf4j-api jar 1.7.25
log4j : log4j jar 1.2.17

test (4)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.3.9
org.slf4j : slf4j-simple jar 1.7.25

Project Modules

There are no modules declared in this project.

Maven Executable JAR Plugin

This Maven plugin makes a JAR into an executable JAR with ALL its dependencies contained within. The plugin diggers from Maven Assembly Plugin and Maven Shade Plugin, who both can deliver the same, but this plugin comes with a significant advantage - dependencies are NOT unpacked, but rather stores as JAR files inside the artifact JAR>

Usage:

<plugin>
 <groupId>org.brylex.maven</groupId>
 <artifactId>exec-jar</artifactId>
 <version>develop-SNAPSHOT</version>
 <configuration>
  <mainClass>org.brylex.maven.execjar.MyMain</mainClass>
 </configuration>
 <executions>
  <execution>
   <goals>
    <goal>exec-jar</goal>
   </goals>
  </execution>
 </executions>
</plugin>

Versions

Version
1.0-RC1