maven-dependency-plugin icon indicating copy to clipboard operation
maven-dependency-plugin copied to clipboard

Update maven-dependency-analyzer to support Java24

Open talios opened this issue 7 months ago • 2 comments

This commit updates the analyser version which supports reading byte code generated by Java 24.

Fixes #524

Following this checklist to help us incorporate your contribution quickly and easily:

  • [X] Your pull request should address just one issue, without pulling in other changes.

  • [X] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.

  • [X] Each commit in the pull request should have a meaningful subject line and body. Note that commits might be squashed by a maintainer on merge.

  • [X] Run mvn verify to make sure basic checks pass.

  • [X] You have run the integration tests successfully (mvn -Prun-its verify). They build under Java 23 with some errors, but fail to build under 24.

    Build Summary:
    [INFO]   Passed: 84, Failed: 1, Errors: 0, Skipped: 0
    [INFO] -------------------------------------------------
    [ERROR] The following builds failed:
    [ERROR] *  mdep-779-analyze-only-verbose-shows-class-names/pom.xml
    

This IT test passes without the analyzer update. I'll take a look later when I have time to see if I see whats failing, tho I'm unfamiliar with both code bases.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004 you have to acknowledge this by using the following check-box.

talios avatar May 13 '25 03:05 talios

Screenshot 2025-06-18 at 6 45 38 PM

I think there is no issue as such but this dependency is not used and declared, I compiled on my local as well and it works.

anuragagarwal561994 avatar Jun 18 '25 13:06 anuragagarwal561994

Tests failed:

Running post-build script: /home/runner/work/maven-dependency-plugin/maven-dependency-plugin/target/it/mdep-779-analyze-only-verbose-shows-class-names/verify.bsh java.lang.Exception: Expected warning missing at java.base/jdk.internal.reflect.NativeConstructorAcc

elharo avatar Jun 18 '25 14:06 elharo

@elharo @talios IT fixed

slawekjaranowski avatar Jul 06 '25 22:07 slawekjaranowski

@elharo Please assign appropriate label to PR according to the type of change.

github-actions[bot] avatar Jul 07 '25 11:07 github-actions[bot]