Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8009

BOM peculiarities with build ordering

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.6, 4.0.0-alpha-10
    • None
    • None

    Description

      Maven 3.9.6 and 4.0.0-alpha-11-SNAP (current master), Java 21.

      After this commit: https://github.com/apache/maven/commit/f1c53cbfdfc99cfc6e1521a450adeeb817b89345

      Executing from top level command mvn spotless:apply does NOT work: plugin is not found!

      If you checkout commit before that one, it works.

      Diffing the debug output from two executions, the "good" one (before given commit) has this line:

      Resolved plugin prefix spotless to com.diffplug.spotless:spotless-maven-plugin from POM org.apache.maven:maven-bom:pom:4.0.0-alpha-11-SNAPSHOT

      Meaning, plugin is resolved from BOM??? And as given commit changes the BOM parent from maven-parent (that has spotless defined) to ASF parent (that does not have it), makes plugin not resolvable?

      Despite root POM of Maven parent maven-parent defines it, and even top level POM redefines it?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            cstamas Tamas Cservenak

            Dates

              Created:
              Updated:

              Slack

                Issue deployment