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

[REGRESSION] Build order is incorrect and does not respect Reactor Build Order

    XMLWordPrintableJSON

Details

    Description

      I have a multi-module project. When using Maven 3.9.0, my project fails to build. The problem appears to be that the Reactor Build Order is not respected when the build actually runs.

      When the build runs, I see this output:

      [INFO] Reactor Build Order:
      15[INFO] 
      16[INFO] jsonschema2pojo                                                    [pom]
      17[INFO] jsonschema2pojo-core                                               [jar]
      18[INFO] jsonschema2pojo-ant                                                [jar]
      19[INFO] jsonschema2pojo-cli                                                [jar]
      20[INFO] jsonschema2pojo-gradle-plugin                                      [jar]
      21[INFO] jsonschema2pojo-maven-plugin                              [maven-plugin]
      22[INFO] jsonschema2pojo-integration-tests                                  [jar] 

      However Maven first builds jsonschema2pojo, and next tries to build jsonschema2pojo-ant instead of jsonschema2pojo-core. The build fails because jsonschema2pojo-core is not found.

      There is a full log available here: https://github.com/joelittlejohn/jsonschema2pojo/actions/runs/4332878826/jobs/7565796916

      Workaround: Downgrade to Maven 3.8.7 and the problem goes away.

      Attachments

        Activity

          People

            cstamas Tamas Cservenak
            japher Joe Littlejohn
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: