You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/02/24 18:19:00 UTC

[jira] [Comment Edited] (MNG-7711) Maven 3.9.0 fails to builds Jakarta EE servlet when 3.8.7 did

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

Tamas Cservenak edited comment on MNG-7711 at 2/24/23 6:18 PM:
---------------------------------------------------------------

Reason: MNG-6965, the plugin net.revelc.code:impsort-maven-plugin:1.4.1 relies on old Maven2 (!) behaviour, that auto-injected some ancient plexus-utils into plugin class path, this is not happening anymore with 3.9+, see [https://cwiki.apache.org/confluence/display/MAVEN/Notes+For+Maven+3.9.x+Plugin+Developers]

There was a PR with fix [https://github.com/revelc/impsort-maven-plugin/commit/58ecbb6880a62ae9d169027abf0004bc9dd03e6b] that is already release, so please upgrade the plugin.


was (Author: cstamas):
Reason: MNG-6965, the plugin net.revelc.code:impsort-maven-plugin:1.4.1 relies on old Maven2 (!) behaviour, that auto-injected some ancient plexus-utils into plugin class path, this is not happening anymore with 3.9+, see [https://cwiki.apache.org/confluence/display/MAVEN/Notes+For+Maven+3.9.x+Plugin+Developers]

The was a PR with fix [https://github.com/revelc/impsort-maven-plugin/commit/58ecbb6880a62ae9d169027abf0004bc9dd03e6b] that is already release, so please upgrade the plugin.

> Maven 3.9.0 fails to builds Jakarta EE servlet when 3.8.7 did
> -------------------------------------------------------------
>
>                 Key: MNG-7711
>                 URL: https://issues.apache.org/jira/browse/MNG-7711
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.9.0
>         Environment: Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
> Maven home: C:\java\apache-maven-3.9.0
> Java version: 11.0.18, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-11.0.18.10-hotspot
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> # Requires Java 11
>  # git clone [https://github.com/jakartaee/servlet.git |https://github.com/jakartaee/servlet.git]
>  # cd servlet
>  # mvn clean install
> This output is from my fresh untouched fork instead of [servlet.git:|https://github.com/jakartaee/servlet.git]
> {quote}[INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.842 s
> [INFO] Finished at: 2023-02-24T13:00:13-05:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal net.revelc.code:impsort-maven-plugin:1.4.1:sort (sort-imports) on project jakarta.servlet-api: Execution sort-imports of goal net.revelc.code:impsort-maven-plugin:1.4.1:sort failed: A required class was missing while executing net.revelc.code:impsort-maven-plugin:1.4.1:sort: org/codehaus/plexus/util/DirectoryScanner
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>net.revelc.code:impsort-maven-plugin:1.4.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = [file:/C:/Users/ggregory/.m2/repository/net/revelc/code/impsort-maven-plugin/1.4.1/impsort-maven-plugin-1.4.1.jar|file:///C:/Users/ggregory/.m2/repository/net/revelc/code/impsort-maven-plugin/1.4.1/impsort-maven-plugin-1.4.1.jar]
> [ERROR] urls[1] = [file:/C:/Users/ggregory/.m2/repository/com/github/javaparser/javaparser-core/3.15.21/javaparser-core-3.15.21.jar|file:///C:/Users/ggregory/.m2/repository/com/github/javaparser/javaparser-core/3.15.21/javaparser-core-3.15.21.jar]
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> [ERROR]
> [ERROR] -----------------------------------------------------
> [ERROR] : org.codehaus.plexus.util.DirectoryScanner
> [ERROR] -> [Help 1]
> {quote}
> This worked fine in 3.8.7



--
This message was sent by Atlassian Jira
(v8.20.10#820010)