You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (Jira)" <ji...@apache.org> on 2022/02/01 22:32:00 UTC

[jira] [Resolved] (MCOMPILER-482) JPMS regression: optional transitive module is not found

     [ https://issues.apache.org/jira/browse/MCOMPILER-482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy resolved MCOMPILER-482.
------------------------------------
    Resolution: Fixed

PR merged 

SNAPSHOT deployed

> JPMS regression: optional transitive module is not found
> --------------------------------------------------------
>
>                 Key: MCOMPILER-482
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-482
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.9.0
>            Reporter: Martin Tzvetanov Grigorov
>            Assignee: Olivier Lamy
>            Priority: Minor
>
> Apache Wicket's build fails with maven-compiler-plugin:3.9.0:
>  
> {code:java}
> [INFO] --- maven-compiler-plugin:3.9.0:compile (default-compile) @ wicket-core ---
> [WARNING] ************************************************************************************************************************************************************
> [WARNING] * Required filename-based automodules detected: [commons-fileupload2-2.0-SNAPSHOT.jar]. Please don't publish this project to a public artifact repository! *
> [WARNING] ************************************************************************************************************************************************************
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 836 source files to /home/martin/git/apache/wicket/wicket-core/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] module not found: org.apiguardian.api
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> {code}
>  
> Wicket-core module depends on JUnit Jupiter API: [https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/module-info.java#L31]
> and apiguardian comes as a transitive dependency of it.
>  
> To reproduce:
> 1) git clone [https://github.com/apache/wicket.git]
> 2) edit pom.xml (line 195) to change the version of maven-compiler-plugin from 3.8.1 to 3.9.0
> 3) export JAVA_HOME=/path/to/jdk-17 (also you need to have an entry for JDK 17 in ~/.m2/toolchains.xml)
> 4) mvn verify
>  
> https://issues.apache.org/jira/browse/MCOMPILER-481 looks similar but I am not sure it is the same!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)