From 2e3f1594e7efe6009a14ee17aa69f50ca7fc6153 Mon Sep 17 00:00:00 2001 From: Carlos Chacin Date: Wed, 14 Oct 2020 20:56:37 -0700 Subject: [PATCH] feat: Add Automatic-Module-Name to the generated jar With this change, maven would not fail when building applications with JPMS where the module-info.java file is present. Currently the error when trying to use JLink is: Error: automatic module cannot be used with jlink: afterburner.fx from ~/.m2/repository/com/airhacks/afterburner.fx/1.7.0/afterburner.fx-1.7.0.jar [ERROR] Command execution failed. --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 9da75fb..b622b72 100644 --- a/pom.xml +++ b/pom.xml @@ -131,6 +131,18 @@ v@{project.version} + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + + ${artifactId} + + + + org.jacoco jacoco-maven-plugin