Hi, I faced the similar error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.0:testCompile (default-testCompile) .... Fatal error compiling: basedir ...\target\generated-test-sources\test-annotations-java does not exist -> [Help 1]
and investigating I see it is not on all projects but only on these where the message [INFO] --- maven-compiler-plugin:3.12.0:testCompile (default-testCompile) @ ... --- [INFO] Recompiling the module because of changed dependency. above is printed. Workaround for me was to add <useIncrementalCompilation>false</useIncrementalCompilation> to the maven-compiler-plugin-configuration. Now same build prints [INFO] --- maven-compiler-plugin:3.12.0:testCompile (default-testCompile) @ ... --- [INFO] Nothing to compile - all classes are up to date. and no error comes up. Gruß, Stefan -----Original Message----- From: Slawomir Jaranowski <s.jaranow...@gmail.com> Sent: Wednesday, December 20, 2023 9:41 AM To: Maven Users List <users@maven.apache.org> Subject: Re: Fatal error compiling: basedir .../target/generated-sources/annotations does not exist Hi, Thanks for the report .. We are working on it, the new release should be in a few days. https://issues.apache.org/jira/browse/MCOMPILER-567 śr., 20 gru 2023 o 08:09 Stanimir Stamenkov <s7a...@netscape.net.invalid> napisał(a): > Following "Maven Compiler Plugin 3.12.0 Released" [1] I'm trying it > out in a small project of mine [2]. After updating the > maven-compiler-plugin 3.11.0 -> 3.12.0 I've noticed the following > error occurring in my dirty(!) working copy: > > > mvn -V package > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) > Maven home: ...\apache-maven-3.9.6 > Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: ...\jdk-21 > Default locale: en_US, platform encoding: UTF-8 > OS name: "windows 10", version: "10.0", arch: "amd64", family: > "windows" > ... > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.12.0:compile > (java9-compile) on project xbrz-core: Fatal error compiling: basedir > C:\...\xbrz-java\xbrz-core\target\generated-sources\annotations does > not exist -> [Help 1] > > that doesn't occur with the compiler plugin 3.11.0. The local change > that appears to trigger the error with the compiler plugin 3.12.0 is > I've deleted "module-info.java" sources: > > del /s module-info.java # or with bash > > find -name module-info.java -print -delete > > Funny enough, if I restore "xbrz-core/src/main/java9/module-info.java" > both of "xbrz-core" and "xbrz-awt" get built successfully, then > "xbrz-tool" fails the same. > > Does this behavior appear a regression? I've found a similar symptom > fixed long time ago: > > * https://issues.apache.org/jira/browse/MCOMPILER-379 > > [1] https://lists.apache.org/thread/9x7p7k5n7vptopqrt55o7c2pg7pnznh2 > [2] https://github.com/stanio/xbrz-java > > Note, "xbrz-java" currently requires JDK 21 for building just for > the javadoc generation. One may edit .mvn/enforcer-extension.xml to > relax this requirement for the purpose of `mvn package` alone. > > -- > Stanimir > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Sławomir Jaranowski C&A Services GmbH & Co. OHG | Wanheimer Straße 70 | D-40468 Düsseldorf | Sitz: Düsseldorf | Registergericht: Düsseldorf HRA 12655 | Telefon: +49 (211) 9872-01 Persönlich haftende Gesellschafter: C&A Retail GmbH | Sitz: Baar/Schweiz | UID: CHE-116.290.471 Geschäftsführung: Giny Boer, Christoph Hammer FRM Participations S.A. | Sitz: Strassen/Luxemburg | Handels- und Firmenregister Luxemburg: B 58158 Verwaltungsratsmitglieder: Dr. Christian Bank, Remco Gerlof, Dr. Franz-Josef Leuchtenberg Hinweise zur Verarbeitung Ihrer Daten finden Sie unter: www.c-a.com/GDPR<http://www.c-a.com/GDPR> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org