You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/05/04 08:59:00 UTC

[jira] [Commented] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

    [ https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338856#comment-17338856 ] 

Michael Osipov commented on MCOMPILER-463:
------------------------------------------

Can you provide a sample project for this?

> 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
>            Priority: Major
>
> 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)