RE: maven compiler plugin 3.12.0 and Kotlin project
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 false Gruß, Stefan -Original Message- From: hantsy bai Sent: Friday, December 22, 2023 5:20 AM To: Maven Users List 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 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 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
Re: maven compiler plugin 3.12.0 and Kotlin project
Hi, The problem is known ... we have a thread on ML about it [1] Bug was fixed, version 3.12.1 will be available after voting [2] [1] https://lists.apache.org/thread/dkzy7vx609m0lndt4vy5pn8pk4zvst46 [2] https://lists.apache.org/thread/scb8qw1or396l4hqgf5h78z5h0km60z4 pt., 22 gru 2023 o 05:20 hantsy bai napisał(a): > 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 > -- Sławomir Jaranowski
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