Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.9.0
-
None
-
None
Description
Apache Wicket's build fails with maven-compiler-plugin:3.9.0:
[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] -------------------------------------------------------------
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!
Attachments
Issue Links
- duplicates
-
MCOMPILER-481 JPMS Regression: cannot access <class> (requires static module not include anymore)
- Closed
- is related to
-
MCOMPILER-481 JPMS Regression: cannot access <class> (requires static module not include anymore)
- Closed