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

Versionless reactor dependencies/parent should work even if modules are aggregated in reverse order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0-alpha-2, 4.0.0
    • None
    • None

    Description

      building Maven Artifact buildconsumer branch https://github.com/apache/maven-archetype/tree/buildconsumer

      $ mvn verify -Drevlist=test
      [INFO] Scanning for projects...
      [ERROR] [ERROR] Some problems were encountered while processing the POMs:
      [ERROR] 'dependencies.dependency.version' for org.apache.maven.archetype:archetype-packaging:jar is missing. @ org.apache.maven.plugins:maven-archetype-plugin:[unknown-version], /home/herve/projets/maven/sources/plugins/tools/archetype/maven-archetype-plugin/pom.xml, line 81, column 17
       @ 
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.apache.maven.plugins:maven-archetype-plugin:3.2.0-SNAPSHOT (/home/herve/projets/maven/sources/plugins/tools/archetype/maven-archetype-plugin/pom.xml) has 1 error
      [ERROR]     'dependencies.dependency.version' for org.apache.maven.archetype:archetype-packaging:jar is missing. @ org.apache.maven.plugins:maven-archetype-plugin:[unknown-version], /home/herve/projets/maven/sources/plugins/tools/archetype/maven-archetype-plugin/pom.xml, line 81, column 17

      This is caused by the order of the modules is the reactor:

        <modules>
          <module>archetype-models</module>
          <module>archetype-common</module>
          <module>maven-archetype-plugin</module>
          <module>archetype-packaging</module>
        </modules>
      

      The version is being resolved before archetype-packaging is available in the context. This should become lazy resolution.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: