You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and -- as expected -- results in version = 0.0.0-SNAPSHOT.
Now trying to compile the project without module a (so it should be read from the local repository).
mvn compile --projects '!a'
causes missing transitive dependencies:
[INFO] maven-versioning-test:a
[WARNING] The POM for maven-versioning-test:a:jar:0.0.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
Adding -X reveals more detail:
[INFO] maven-versioning-test:a
[DEBUG] set parent version to 0.0.0-SNAPSHOT (maven-versioning-test:parent:0.0.0-SNAPSHOT)
[DEBUG] generate /home/user/.m2/repository/maven-versioning-test/a/0.0.0-SNAPSHOT/.git-versioned-pom.xml
[WARNING] The POM for maven-versioning-test:a:jar:0.0.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model
[FATAL] Non-readable POM /home/user/.m2/repository/maven-versioning-test/a/0.0.0-SNAPSHOT/a-0.0.0-SNAPSHOT.pom: /home/user/.m2/repository/maven-versioning-test/a/0.0.0-SNAPSHOT/pom.xml @
There should be no attempt to read pom.xml from or create .git-versioned-pom.xml inside the local repository.
This behavior could not be observed in the previous version 9.6.6 and therefore is probably related to
The text was updated successfully, but these errors were encountered:
wacker
changed the title
[9.7.0] Missing transitive dependencies in multi-module project when modules are excluded and resolved version is 0.0.0-SNAPSHOT
[v9.7.0] Missing transitive dependencies in multi-module project when modules are excluded and resolved version is 0.0.0-SNAPSHOT
Feb 28, 2024
Version: 9.7.0
Given a multi-module Maven project
maven-versioning-test
withparent
and two modulesa
andb
whereb
depends ona
.An initial git tag
v0.0.0
is set onmaster
and there are some changes in a branch, so this ref matches:and -- as expected -- results in version =
0.0.0-SNAPSHOT
.Now trying to compile the project without module
a
(so it should be read from the local repository).causes missing transitive dependencies:
Adding
-X
reveals more detail:There should be no attempt to read
pom.xml
from or create.git-versioned-pom.xml
inside the local repository.This behavior could not be observed in the previous version 9.6.6 and therefore is probably related to
The text was updated successfully, but these errors were encountered: