On Wed, 26 Mar 2025 at 16:53, Thorsten Heit <th...@gmx.de.invalid> wrote:
>
> Hi,
>
> > I also need maven-shade, maven-assembly and javafx-maven plugins...
> > Not all plugins supports maven 4 this is why I would like to stick with
> > maven 3.9.9 and maven-compiler-plugin 3.14
> >
> > Can I use JDK24 considering all the maven plugin I need?
>
> Sure, why not?
>
> I'm using it with a bigger multi-module project, and the only thing I
> observed since upgrading from Adoptium JDK 23 to 24 is that running "mvn
> clean verify" now results in the following message directly at build start:
>
> $ mvn clean verify
> WARNING: A restricted method in java.lang.System has been called
> WARNING: java.lang.System::load has been called by
> org.fusesource.jansi.internal.JansiLoader in an unnamed module
> (file:/.../maven/lib/jansi-2.4.1.jar)
> WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for
> callers in this module
> WARNING: Restricted methods will be blocked in a future release unless
> native access is enabled
>
> WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
> WARNING: sun.misc.Unsafe::objectFieldOffset has been called by
> com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
> (file:/.../maven/lib/guava-33.2.1-jre.jar)
> WARNING: Please consider reporting this to the maintainers of class
> com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
> WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future
> release
> (...)

WARNING: .... was fixed in
https://issues.apache.org/jira/browse/MNG-8248 - 3.9.10 (not released
yet)

>
> The rest of the build works as before.
>
>
> > I would like to use JDK24 but I get an error when compiling my project,
> >
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
> > plugin:3.14.0:compile (default-compile) on project fireflyluciferin:
> > Fatal error compiling: java.lang.ExceptionInInitializerError:
> > com.sun.tools.javac.code.TypeTag :: UNKNOWN -> [Help 1]
> >
> > Any help would be greatly appreciated.
> IMHO there's something weird in your pom.xml. Do you have a reference
> somewhere to the tools.jar from older JDK 8?
>
>
> Regards
>
> Thorsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


-- 
Sławomir Jaranowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to