[
https://issues.apache.org/jira/browse/MNG-6957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte updated MNG-6957:
--------------------------------
Description:
building Maven Artifact buildconsumer branch
https://github.com/apache/maven-archetype/tree/buildconsumer
{noformat}$ 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{noformat}
This is caused by the order of the modules is the reactor:
{code:xml}
<modules>
<module>archetype-models</module>
<module>archetype-common</module>
<module>maven-archetype-plugin</module>
<module>archetype-packaging</module>
</modules>
{code}
The version is being resolved before {{archetype-packaging}} is available in
the context. This should become lazy resolution.
was:
building Maven Artifact buildconsumer branch
https://github.com/apache/maven-archetype/tree/buildconsumer
{noformat}$ 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{noformat}
what is specific to that dependency is that it has test scope...
> cannot build Maven Archetype with versionless reactor atifacts
> --------------------------------------------------------------
>
> Key: MNG-6957
> URL: https://issues.apache.org/jira/browse/MNG-6957
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.7.0
> Reporter: Herve Boutemy
> Priority: Major
>
> building Maven Artifact buildconsumer branch
> https://github.com/apache/maven-archetype/tree/buildconsumer
> {noformat}$ 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{noformat}
> This is caused by the order of the modules is the reactor:
> {code:xml}
> <modules>
> <module>archetype-models</module>
> <module>archetype-common</module>
> <module>maven-archetype-plugin</module>
> <module>archetype-packaging</module>
> </modules>
> {code}
> The version is being resolved before {{archetype-packaging}} is available in
> the context. This should become lazy resolution.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)