Hi Hantsy,
that should be the same like
https://issues.apache.org/jira/browse/MCOMPILER-567
and fixed in 3.12.1

Workaround is to stay on 3.11.0 or use 
<useIncrementalCompilation>false</useIncrementalCompilation>

Gruß,
Stefan

-----Original Message-----
From: hantsy bai <han...@gmail.com>
Sent: Friday, December 22, 2023 5:20 AM
To: Maven Users List <users@maven.apache.org>
Subject: maven compiler plugin 3.12.0 and Kotlin project

I tried to update Maven compiler plugin version to the latest 3.12.0 version, 
and got the error message like the following when compiling the
projects:

[INFO] --- compiler:3.12.0:compile (default-compile) @ mongodb-kotlin --- 
[INFO] Recompiling the module because of changed dependency.
[INFO]
----------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------------------------------------------
[INFO] Total time:  02:12 min
[INFO] Finished at: 2023-12-22T12:14:43+08:00 [INFO]
----------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.12.0:compile
(default-compile) on project mongodb-kotlin: Fatal error compiling: basedir 
D:\hantsylabs\quarkus-sample\mongodb-kotlin\target\generated-sources\annotations
does not exist -> [Help 1]

I found the error only occurred in a Kotlin project, check an example of the 
updated pom.xml here, 
https://github.com/hantsy/quarkus-sandbox/blob/master/resteasy-kotlin-co/pom.xml
---

Regards,

*Hantsy Bai*

Self-employed consultant, fullstack developer, agile coach, freelancer/remote 
worker

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy
Medium: https://medium.com/@hantsy

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

Reply via email to