apache / apache/maven-assembly-plugin

[MASSEMBLY-946] Dependency resolve issues when using revision variable for the project version

Open
#1,153 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
110
Forks
75
Avg merge
12h 54m
Merged PRs (30d)
10

Description

**[Muris Ahmovic](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=grandon)** opened **[MASSEMBLY-946](https://issues.apache.org/jira/browse/MASSEMBLY-946?redirect=false)** and commented

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:

```java
[...]
group
root
${revision}
[...]

1.0.0-SNAPSHOT

[...]
```

child pom:

```java
[...]

group
root
${revision}

[...]
```

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

```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
```

---

**Affects:** 3.3.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with the root and child POM setup shown in the issue, using the assembly plugin in the child module and the ${revision} project version. Start by examining dependency and parent-project resolution during the Maven build. Done means the build no longer tries to resolve group:root:pom:${revision} or emits the reported warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.