You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ismaël Mejía (JIRA)" <ji...@apache.org> on 2017/06/28 15:33:00 UTC
[jira] [Comment Edited] (MENFORCER-275) Enforcer plugin breaks with
JDK 9
[ https://issues.apache.org/jira/browse/MENFORCER-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066710#comment-16066710 ]
Ismaël Mejía edited comment on MENFORCER-275 at 6/28/17 3:32 PM:
-----------------------------------------------------------------
This is the trace of the result of mvn enforcer:display-info:
{code}Execution default-cli of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:display-info failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:display-info: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/ismael/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.4.1/maven-enforcer-plugin-1.4.1.jar
[ERROR] urls[1] = file:/home/ismael/.m2/repository/org/codehaus/mojo/extra-enforcer-rules/1.0-beta-6/extra-enforcer-rules-1.0-beta-6.jar
{code}
was (Author: iemejia):
This is the trace of the result of the enforcer-plugin info.
{code}Execution default-cli of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:display-info failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:display-info: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/ismael/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.4.1/maven-enforcer-plugin-1.4.1.jar
[ERROR] urls[1] = file:/home/ismael/.m2/repository/org/codehaus/mojo/extra-enforcer-rules/1.0-beta-6/extra-enforcer-rules-1.0-beta-6.jar
{code}
> Enforcer plugin breaks with JDK 9
> ---------------------------------
>
> Key: MENFORCER-275
> URL: https://issues.apache.org/jira/browse/MENFORCER-275
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 1.4.1
> Reporter: Ismaël Mejía
>
> I am trying to move Apache Beam to Java 9. I found that the enforcer plugin was not working as expected. A simple execution of mvn enforcer:display-info fails, and also the execution of the plugin to enforce fails.
> I am using Maven 3.5 and Oracle Java 9+175.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)