You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mark Derricutt <ma...@talios.com> on 2025/03/19 21:00:14 UTC
Building Maven Under JDK 24
Whilst Maven 4 is targeting Java 17, I see the build doesn’t seem to work
under Java 24:
[INFO] --- sisu:0.9.0.M3:main-index (index-project) @ maven-model-builder
---
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Maven 4.0.0-rc-4-SNAPSHOT:
[INFO]
[INFO] Apache Maven ....................................... SUCCESS [
1.062 s]
[INFO] Maven 4 API ........................................ SUCCESS [
0.038 s]
[INFO] Maven 4 API :: Meta annotations .................... SUCCESS [
0.587 s]
[INFO] Maven 4 API :: Dependency Injection ................ SUCCESS [
0.274 s]
[INFO] Maven 4 API :: XML ................................. SUCCESS [
0.113 s]
[INFO] Maven 4 API :: Model ............................... SUCCESS [
1.013 s]
[INFO] Maven 4 API :: Plugin .............................. SUCCESS [
0.932 s]
[INFO] Maven 4 API :: Settings ............................ SUCCESS [
0.846 s]
[INFO] Maven 4 API :: Toolchain ........................... SUCCESS [
0.156 s]
[INFO] Maven 4 API :: Repository Metadata ................. SUCCESS [
0.125 s]
[INFO] Maven 4 API :: Core ................................ SUCCESS [
2.658 s]
[INFO] Maven 4 API :: SPI ................................. SUCCESS [
0.114 s]
[INFO] Maven 4 API :: CLI ................................. SUCCESS [
0.211 s]
[INFO] Maven 4 Implementation Modules ..................... SUCCESS [
0.020 s]
[INFO] Maven 4 XML Implementation ......................... SUCCESS [
1.064 s]
[INFO] Maven 4 Model Support .............................. SUCCESS [
0.541 s]
[INFO] Maven 4 Dependency Injection ....................... SUCCESS [
1.059 s]
[INFO] Maven 4 API Implementation ......................... SUCCESS [
12.464 s]
[INFO] Maven 4 JLine integration .......................... SUCCESS [
0.133 s]
[INFO] Maven 4 Logging .................................... SUCCESS [
0.869 s]
[INFO] Maven Compatibility Modules ........................ SUCCESS [
0.024 s]
[INFO] Maven Artifact ..................................... SUCCESS [
1.022 s]
[INFO] Maven Model ........................................ SUCCESS [
1.382 s]
[INFO] Maven Builder Support (deprecated) ................. SUCCESS [
0.725 s]
[INFO] Maven Model Builder (deprecated) ................... FAILURE [
1.037 s]
[INFO] Maven 3 Plugin API ................................. SKIPPED
[INFO] Maven Repository Metadata Model .................... SKIPPED
[INFO] Maven Settings ..................................... SKIPPED
[INFO] Maven Toolchain Model .............................. SKIPPED
[INFO] Maven Toolchain Builder (deprecated) ............... SKIPPED
[INFO] Maven 4 Core ....................................... SKIPPED
[INFO] Maven Settings Builder (deprecated) ................ SKIPPED
[INFO] Maven Artifact Resolver Provider (deprecated) ...... SKIPPED
[INFO] Maven Compat (deprecated) .......................... SKIPPED
[INFO] Maven 4 CLI ........................................ SKIPPED
[INFO] Maven Embedder (deprecated) ........................ SKIPPED
[INFO] Apache Maven Distribution .......................... SKIPPED
[INFO] Maven 4 Executor ................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 31.536 s
[INFO] Finished at: 2025-03-20T09:55:14+13:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index (index-project) on
project maven-model-builder: Execution index-project of goal
org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index failed: Problem
scanning
file:/Users/amrk/IdeaProjects/upstream/maven/compat/maven-model-builder/target/classes/org/apache/maven/utils/Os.class:
Problem scanning jrt:/java.base/java/lang/Deprecated.class: Unsupported
class file major version 68 -> [Help 1]
[ERROR]
This is trying to build Guillaume Nodet’s mixin branch, which comes
off 4.0.0-rc-4-SNAPSHOT.
Mark
--
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree
Re: Building Maven Under JDK 24
Posted by Mark Derricutt <ma...@talios.com>.
On 20 Mar 2025 at 9:43:02 PM, Guillaume Nodet <gn...@apache.org> wrote:
> And raise a PR. I suppose we should add jdk24 to the list of JDK we're
> building against:
>
Looks like an upstream ticket has already been raised to add the new ASM to
Sisu:
https://github.com/eclipse-sisu/sisu-project/issues/174
I’ve just submitted https://github.com/apache/maven/pull/2169 along with
raising https://issues.apache.org/jira/projects/MNG/issues/MNG-8632
I *think* I’ve previously signed a contribution agreement for Maven, but
since this is under 1 line I don’t believe I need that in this instance
either.
Mark
--
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree
Re: Building Maven Under JDK 24
Posted by Guillaume Nodet <gn...@apache.org>.
And raise a PR. I suppose we should add jdk24 to the list of JDK we're
building against:
https://github.com/apache/maven/blob/master/.github/workflows/maven.yml#L86
Le jeu. 20 mars 2025 à 08:18, Romain Manni-Bucau <rm...@gmail.com> a
écrit :
> Or just upgrade asm in plugin dependencies ;)
>
> Romain Manni-Bucau
> @rmannibucau <https://x.com/rmannibucau> | .NET Blog
> <https://dotnetbirdie.github.io/> | Blog <https://rmannibucau.github.io/>
> | Old
> Blog <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/en-us/product/java-ee-8-high-performance-9781788473064
> >
>
>
> Le jeu. 20 mars 2025 à 07:55, Mark Derricutt <ma...@talios.com> a écrit :
>
> > On 20 Mar 2025 at 7:12:40 PM, Romain Manni-Bucau <rm...@gmail.com>
> > wrote:
> >
> > > Looks like the error says the opposite, did you check the plugin asm
> > > version and not maven one?
> > >
> > >
> > >
> > Looks like the build is using 0.9.0.M3 of the issue-maven-plugin, which
> > includes and embeded version of asm 9.6:
> >
> >
> >
> >
> https://github.com/eclipse-sisu/sisu-project/pull/95/commits/c239adfad8eec92b85a33a431d4c5e2a4eff2dc7
> >
> > So I guess that needs updating and a new sisu plugin releasing. Will
> take
> > a look at patching that and trying it.
> >
> > Mark
> >
>
--
------------------------
Guillaume Nodet
Re: Building Maven Under JDK 24
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Or just upgrade asm in plugin dependencies ;)
Romain Manni-Bucau
@rmannibucau <https://x.com/rmannibucau> | .NET Blog
<https://dotnetbirdie.github.io/> | Blog <https://rmannibucau.github.io/> | Old
Blog <http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau> | LinkedIn
<https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/en-us/product/java-ee-8-high-performance-9781788473064>
Le jeu. 20 mars 2025 à 07:55, Mark Derricutt <ma...@talios.com> a écrit :
> On 20 Mar 2025 at 7:12:40 PM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Looks like the error says the opposite, did you check the plugin asm
> > version and not maven one?
> >
> >
> >
> Looks like the build is using 0.9.0.M3 of the issue-maven-plugin, which
> includes and embeded version of asm 9.6:
>
>
>
> https://github.com/eclipse-sisu/sisu-project/pull/95/commits/c239adfad8eec92b85a33a431d4c5e2a4eff2dc7
>
> So I guess that needs updating and a new sisu plugin releasing. Will take
> a look at patching that and trying it.
>
> Mark
>
Re: Building Maven Under JDK 24
Posted by Mark Derricutt <ma...@talios.com>.
On 20 Mar 2025 at 7:12:40 PM, Romain Manni-Bucau <rm...@gmail.com>
wrote:
> Looks like the error says the opposite, did you check the plugin asm
> version and not maven one?
>
>
>
Looks like the build is using 0.9.0.M3 of the issue-maven-plugin, which
includes and embeded version of asm 9.6:
https://github.com/eclipse-sisu/sisu-project/pull/95/commits/c239adfad8eec92b85a33a431d4c5e2a4eff2dc7
So I guess that needs updating and a new sisu plugin releasing. Will take
a look at patching that and trying it.
Mark
Re: Building Maven Under JDK 24
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Looks like the error says the opposite, did you check the plugin asm
version and not maven one?
Romain Manni-Bucau
@rmannibucau <https://x.com/rmannibucau> | .NET Blog
<https://dotnetbirdie.github.io/> | Blog <https://rmannibucau.github.io/> | Old
Blog <http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau> | LinkedIn
<https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/en-us/product/java-ee-8-high-performance-9781788473064>
Le mer. 19 mars 2025 à 23:36, Mark Derricutt <ma...@talios.com> a écrit :
> On 20 Mar 2025 at 10:04:24 AM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > did you try upgrading asm in plugin deps?
> >
>
> Nope - but a cursory glance shows asm 9.7.1 being used, which is the
> current version.
> --
> "Great artists are extremely selfish and arrogant things" — Steven Wilson,
> Porcupine Tree
>
Re: Building Maven Under JDK 24
Posted by Michael Bien <mb...@gmail.com>.
On 3/19/25 23:34, Mark Derricutt wrote:
> On 20 Mar 2025 at 10:04:24 AM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
>> did you try upgrading asm in plugin deps?
>>
> Nope - but a cursory glance shows asm 9.7.1 being used, which is the
> current version.
i ended up bumping asm as direct dependency in most projects I work on as prophylactic measure, toolbox makes it easy to find (unless its shaded):
mvn eu.maveniverse.maven.plugins:toolbox:plugin-tree-find -DverboseTree=true -DartifactMatcherSpec="artifact(*:asm)"
(classfile API went final in JDK 24 - yey! so at some point this will be less of a problem)
best regards,
michael
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Building Maven Under JDK 24
Posted by Mark Derricutt <ma...@talios.com>.
On 20 Mar 2025 at 10:04:24 AM, Romain Manni-Bucau <rm...@gmail.com>
wrote:
> did you try upgrading asm in plugin deps?
>
Nope - but a cursory glance shows asm 9.7.1 being used, which is the
current version.
--
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree
Re: Building Maven Under JDK 24
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
did you try upgrading asm in plugin deps?
Romain Manni-Bucau
@rmannibucau <https://x.com/rmannibucau> | .NET Blog
<https://dotnetbirdie.github.io/> | Blog <https://rmannibucau.github.io/> | Old
Blog <http://rmannibucau.wordpress.com> | Github
<https://github.com/rmannibucau> | LinkedIn
<https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/en-us/product/java-ee-8-high-performance-9781788473064>
Le mer. 19 mars 2025 à 22:02, Mark Derricutt <ma...@talios.com> a écrit :
> Whilst Maven 4 is targeting Java 17, I see the build doesn’t seem to work
> under Java 24:
>
> [INFO] --- sisu:0.9.0.M3:main-index (index-project) @ maven-model-builder
> ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache Maven 4.0.0-rc-4-SNAPSHOT:
> [INFO]
> [INFO] Apache Maven ....................................... SUCCESS [
> 1.062 s]
> [INFO] Maven 4 API ........................................ SUCCESS [
> 0.038 s]
> [INFO] Maven 4 API :: Meta annotations .................... SUCCESS [
> 0.587 s]
> [INFO] Maven 4 API :: Dependency Injection ................ SUCCESS [
> 0.274 s]
> [INFO] Maven 4 API :: XML ................................. SUCCESS [
> 0.113 s]
> [INFO] Maven 4 API :: Model ............................... SUCCESS [
> 1.013 s]
> [INFO] Maven 4 API :: Plugin .............................. SUCCESS [
> 0.932 s]
> [INFO] Maven 4 API :: Settings ............................ SUCCESS [
> 0.846 s]
> [INFO] Maven 4 API :: Toolchain ........................... SUCCESS [
> 0.156 s]
> [INFO] Maven 4 API :: Repository Metadata ................. SUCCESS [
> 0.125 s]
> [INFO] Maven 4 API :: Core ................................ SUCCESS [
> 2.658 s]
> [INFO] Maven 4 API :: SPI ................................. SUCCESS [
> 0.114 s]
> [INFO] Maven 4 API :: CLI ................................. SUCCESS [
> 0.211 s]
> [INFO] Maven 4 Implementation Modules ..................... SUCCESS [
> 0.020 s]
> [INFO] Maven 4 XML Implementation ......................... SUCCESS [
> 1.064 s]
> [INFO] Maven 4 Model Support .............................. SUCCESS [
> 0.541 s]
> [INFO] Maven 4 Dependency Injection ....................... SUCCESS [
> 1.059 s]
> [INFO] Maven 4 API Implementation ......................... SUCCESS [
> 12.464 s]
> [INFO] Maven 4 JLine integration .......................... SUCCESS [
> 0.133 s]
> [INFO] Maven 4 Logging .................................... SUCCESS [
> 0.869 s]
> [INFO] Maven Compatibility Modules ........................ SUCCESS [
> 0.024 s]
> [INFO] Maven Artifact ..................................... SUCCESS [
> 1.022 s]
> [INFO] Maven Model ........................................ SUCCESS [
> 1.382 s]
> [INFO] Maven Builder Support (deprecated) ................. SUCCESS [
> 0.725 s]
> [INFO] Maven Model Builder (deprecated) ................... FAILURE [
> 1.037 s]
> [INFO] Maven 3 Plugin API ................................. SKIPPED
> [INFO] Maven Repository Metadata Model .................... SKIPPED
> [INFO] Maven Settings ..................................... SKIPPED
> [INFO] Maven Toolchain Model .............................. SKIPPED
> [INFO] Maven Toolchain Builder (deprecated) ............... SKIPPED
> [INFO] Maven 4 Core ....................................... SKIPPED
> [INFO] Maven Settings Builder (deprecated) ................ SKIPPED
> [INFO] Maven Artifact Resolver Provider (deprecated) ...... SKIPPED
> [INFO] Maven Compat (deprecated) .......................... SKIPPED
> [INFO] Maven 4 CLI ........................................ SKIPPED
> [INFO] Maven Embedder (deprecated) ........................ SKIPPED
> [INFO] Apache Maven Distribution .......................... SKIPPED
> [INFO] Maven 4 Executor ................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 31.536 s
> [INFO] Finished at: 2025-03-20T09:55:14+13:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index (index-project) on
> project maven-model-builder: Execution index-project of goal
> org.eclipse.sisu:sisu-maven-plugin:0.9.0.M3:main-index failed: Problem
> scanning
>
> file:/Users/amrk/IdeaProjects/upstream/maven/compat/maven-model-builder/target/classes/org/apache/maven/utils/Os.class:
> Problem scanning jrt:/java.base/java/lang/Deprecated.class: Unsupported
> class file major version 68 -> [Help 1]
> [ERROR]
>
>
> This is trying to build Guillaume Nodet’s mixin branch, which comes
> off 4.0.0-rc-4-SNAPSHOT.
>
> Mark
>
>
> --
> "Great artists are extremely selfish and arrogant things" — Steven Wilson,
> Porcupine Tree
>