Skip to content

master branch breaks on Maven 4.0.0-rc3 on Windows #364

Closed

Description

@Bukama

Affected version

3.6.0-SNAPSHOT (master - f6c114b)

Bug description

The master branch breaks on Maven 4.0.0-rc3 on Windows (with admin rights)

2025-05-12_maven-enforcer-master_Maven4.0.0-rc3.log

[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 125, Failed: 2, Errors: 0, Skipped: 4
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  ban-dependency-management-scope-fail\pom.xml
[ERROR] *  require-dependency-scope\pom.xml
[INFO] -------------------------------------------------
[WARNING] The following builds were skipped:
[WARNING] *  ban-duplicate-dependencies-versions\pom.xml
[WARNING] *  ban-pom-dependency-version-utf8-with-bom\pom.xml
[WARNING] *  ban-pom-dependency-version\pom.xml
[WARNING] *  require-profile-ids-exist_failure\pom.xml

Activity

  1. Bukama commented on May 12, 2025

    @Bukama
    ContributorAuthor

    On Maven 3.9.8 it's working fine.

    2025-05-12_master_Maven3.9.8.log

  2. gnodet commented on May 12, 2025

    @gnodet

    The dependency tree has slightly changed between in Maven 4, so I suspect it comes from that. If that's the case (you may want to diff the dependency tree), that's not a bug and you'll have to slightly adjust.

  3. Bukama commented on May 12, 2025

    @Bukama
    ContributorAuthor

    The dependency tree has slightly changed between in Maven 4, so I suspect it comes from that. If that's the case (you may want to diff the dependency tree), that's not a bug and you'll have to slightly adjust.

    Differences in tree (funny to see that Maven 3.9.8 has newer of jsr, while Maven 4 has newer of plexus-cipher)

    Maven 3.9.8:
    
    com.google.code.findbugs:jsr305:jar:3.0.2:provided
    org.sonatype.plexus:plexus-cipher:jar:1.4:provided
    
    
    Maven 4.0.0-rc3:
    com.google.code.findbugs:jsr305:jar:3.0.1:provided
    org.sonatype.plexus:plexus-cipher:jar:1.7:provided
    

    dependency-tree_3.9.8.txt
    dependency-tree_4.0.0-rc-3.txt

  4. slawekjaranowski commented on Jun 21, 2025

    @slawekjaranowski
    Member

    In failed test we try to assert that errors contains location about banned dependencies,
    in Maven 3 location for tag column contains end of tag, but in Maven 4 the begin 😄

  5. linked a pull request that will close this issueEnable build by Maven 4 on GitHub #891on Jun 21, 2025
  6. slawekjaranowski commented on Jun 21, 2025

    @slawekjaranowski
    Member
  7. added this to the 3.6.0 milestone on Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions