You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Muris Ahmovic (Jira)" <ji...@apache.org> on 2020/12/04 09:06:00 UTC
[jira] [Created] (MASSEMBLY-946) Dependency resolve issues when
using revision variable for the project version
Muris Ahmovic created MASSEMBLY-946:
---------------------------------------
Summary: Dependency resolve issues when using revision variable for the project version
Key: MASSEMBLY-946
URL: https://issues.apache.org/jira/browse/MASSEMBLY-946
Project: Maven Assembly Plugin
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Linux / Maven 3.6.3
Reporter: Muris Ahmovic
I have a multi-module project and use the ${revision} variable for versioning. The assembly plugin execution happens in one of the child modules.
root pom:
{code:java}
[...]
<groupId>group</groupId>
<artifactId>root</artifactId>
<version>${revision}</version>
[...]
<properties>
<revision>1.0.0-SNAPSHOT</revision>
</properties>
[...]{code}
child pom:
{code:java}
[...]
<parent>
<groupId>group</groupId>
<artifactId>root</artifactId>
<version>${revision}</version>
</parent>
[...]
{code}
The build is successful, but I get some warnings and I can see that the ${revision} variable is used instead of 1.0.0-SNAPSHOT
{code:java}
[WARNING] Failed to build parent project for group:child:jar:1.0.0-SNAPSHOT
Could not find artifact group:root:pom:${revision} in central
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)