[MNG-6438] Continuous Delivery friendly versions do not work on root pom's parent
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Konrad Windszus](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kwin)** opened **[MNG-6438](https://issues.apache.org/jira/browse/MNG-6438?redirect=false)** and commented
If I use either `${revision`},`${sha1`}, or `${changelist`} in the root pom's parent version it simply does not work, even when the project is invoked via
`mvn package -Drevision=1.0` and the according parent is available in version `1.0` in my Maven repo.
Instead I get the following error
```
mvn package -Dsha1=1.0
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/some/test/myparent/$%7Bsha1%7D/myparent-$%7Bsha1%7D.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for some.test:root:[unknown-version]: Could not find artifact some.test:myparent:pom:${sha1} in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 11, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project some.test:root:[unknown-version] (/Users/konradwindszus/Downloads/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for some.test:root:[unknown-version]: Could not find artifact some.test:myparent:pom:${sha1} in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 11, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
```
The following minimum pom can be used for testing
```
4.0.0
some.test
myparent
${sha1}
root
```
---
**Affects:** 3.5.3
**Issue Links:**
- [MNG-6057](https://issues.apache.org/jira/browse/MNG-6057) Problem with CI friendly usage of ${..} reactor order is changed
- [MNG-5576](https://issues.apache.org/jira/browse/MNG-5576) Allow continuous delivery friendly versions
1 votes, 5 watchers
Contributor guide
Assessment
This issue has not been assessed yet.