Rich M created MCOMPILER-463:
--------------------------------
Summary: Missing class -
org.codehaus.plexus.compiler.CompilerException
Key: MCOMPILER-463
URL: https://issues.apache.org/jira/browse/MCOMPILER-463
Project: Maven Compiler Plugin
Issue Type: Bug
Affects Versions: 3.8.1
Reporter: Rich M
I am not sure what I am doing wrong here. Seems like a bug to me.
I am trying to use compiler version 3.8.1 and it results in following error:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project hello-world: Execution default-compile of goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A required
class was missing while executing
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile:
org.codehaus.plexus.compiler.CompilerException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
[ERROR] urls[1] =
file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
In pom.xml,:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
</plugins>
</build>
Note that the moment I change version to 3.8.0, everything starts working fine.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)