Child pages
  • Java 9 - Jigsaw
Skip to end of metadata
Go to start of metadata
StatusWIP 
Version 
Issue(s) 
Sources 
Developer(s) Robert Scholte

Maven Plugins

Java 9 and Jigsaw, its module project, introduce changes that cause some plugin warnings(warning) or even failures(error), or require upgrades to benefit from new features(plus):

 

groupId

artifactId

affected goal

Plugin Name

Minimum Compatible Version

Related Issues

org.apache.maven.pluginsmaven-compiler-plugincompile(plus), testCompile(plus)Maven Compiler Plugin3.7.0required to compile module-info files
requires plexus-compiler 2.8.1
org.apache.maven.pluginsmaven-ear-pluginear(error)Maven EAR Plugin3.0.0-SNAPSHOT (not yet released) 
org.apache.maven.pluginsmaven-ejb-pluginejb(error)Maven EJB Plugin3.0.0 MEJB-95 - Upgrade plexus-archiver from 3.0.1 to 3.0.3 Closed (error)
org.apache.maven.pluginsmaven-enforcer-pluginRequireJavaVersion ruleMaven Enforcer Plugin3.0.0-M1 
org.apache.maven.pluginsmaven-failsafe-pluginintegration-testMaven Failsafe Plugin

2.20.1 (argLine) (removed JAXB)

2.21.0 (introduced Jigsaw)

 
org.apache.maven.pluginsmaven-javadoc-pluginjar(error), javadoc(warning), aggregate(error)Maven Javadoc Plugin3.0.0-M1

MJAVADOC-488 - Latest jdk9 version causes StringIndexOutOfBoundsException Closed (error)

MJAVADOC-449 - javadoc:aggregate fails with JDK 9 Open (error)

MJAVADOC-498 - "module not found" when Java 9 module-info present Closed (plus)

org.apache.maven.pluginsmaven-jdeps-pluginjdkinternals, test-jdkinternalsMaven JDeps Plugin3.1.0 
org.apache.maven.pluginsmaven-plugin-plugindescriptorMaven Plugin Plugin3.5 
org.apache.maven.pluginsmaven-site-pluginsite(error)Maven Site Plugin3.7 MSITE-796 - Unable to generate site with JDK9 - java.lang.ExceptionInInitializerError / Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1 Closed (error)
org.apache.maven.pluginsmaven-surefire-plugintestMaven Surefire Plugin2.20.1 (argLine) (removed JAXB)
2.21.0 (introduced Jigsaw)
 
org.apache.maven.pluginsmaven-surefire-report-plugin Maven Surefire Report Plugin2.20.1 
org.apache.maven.pluginsmaven-war-plugin Maven War Plugin3.1.0 

org.codehaus.plexus

plexus-component-metadata

generate-metadata(tick)

Plexus :: Component Metadata

1.7

#1(tick)

Components

Some issues are in components that are reused over and over

groupId

artifactId

Component Name

Minimum Compatible Version

Related Issues

org.codehaus.plexusplexus-archiverPlexus Archiver3.0.3#13(tick)
org.apache.maven.doxiadoxia-sitetoolsDoxia Sitetools1.7.5 DOXIASITETOOLS-177 - Use of commons-lang 2 causes failure with JDK 9 b175+ Closed

Third party components

groupIdartifactId (order by)Minimum compatible VersionContactDetailsExposed when compiling
org.apache.commonscommons-utils3.5 Parsing of "9" as Java version is broken. Any reference to SystemUtils will fail due to a static initialization. 
org.ow2.asmasm6.0_BETARemi Forax  
com.google.errorproneerror_prone_core ? MCOMPILER-283 - JDK9+b151 Failure Running IT's Closed /maven-compiler-plugin/src/it/error-prone-compiler
org.codehaus.gmavengmaven-plugin ?At least start switching to https://github.com/groovy/GMavenPlus/maven-compiler-plugin/src/it/mcompiler-21_methodname-change
org.codehaus.groovygroovy-all2.4.8  setup/verify-scripts used by maven-invoker-plugin
org.vaferjdependency1.2Torsten Curdt /maven-shade-plugin/src/it/mini-jar-respect-includes
com.thoughtworks.qdoxqdox2.0-M4Robert Scholte  
org.apache.openjpaopenjpa Mark Struberg MCOMPILER-283 - JDK9+b151 Failure Running IT's Closed /maven-compiler-plugin/src/it/MCOMPILER-197
org.parboiledparboiled-javanone, will be replaced.Mathias (sirthias)

https://github.com/sirthias/parboiled/issues/104 

Pegdown, which uses parboiled and is not maintained actively any more, is being replaced with flexmark-java: see DOXIA-553

doxia-module-markdown
org.eclipse.sisusisu-inject Stuart McCulloch Maven-3.4.0-SNAPSHOT
com.thoughtworks.xstreamxstream  

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module

Happens while initializing org.apache.maven.plugins.war.util.WebappStructureSerializer.

Workaround: only register the required converters

maven-war-plugin