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
parent is installed properly in localrepo. When I run for child, mvn -Drevision=1.0.0 clean install , the parent's ${revision} is not being resolved. Instead I get:
[ERROR] Non-resolvable parent POM for com.test:child:${revision}: Failure to find com.test:parent:pom:${revision} in $NEXUS_URL/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 6, column 11 ->
I tried with mvn -X, I can see the extension is being touched
[DEBUG] fr.jcgay.maven.extension:unique-revision-maven-filtering:jar:1.1:
[DEBUG] Populating class realm coreExtension>fr.jcgay.maven.extension:unique-revision-maven-filtering:1.1
[DEBUG] Included /m361/m2_repo/fr/jcgay/maven/extension/unique-revision-maven-filtering/1.1/unique-revision-maven-filtering-1.1.jar
I dont see a target/pom.xml either. If I change parent's version to 1.0.0, the target/pom.xml is generated fine, but there is no need for ${revision} then.
At what point of time does the extension kick-in during the build lifecycle? It appears mvn is attempting to resolve parent.version before the extension gets a chance to replace it.
Any help appreciated.
The text was updated successfully, but these errors were encountered:
I'm not sure to understand exactly what you are doing, can you create a simple repository to reproduce your configuration and steps ?
This extension only replaces the ${revision} by the resolved version of the property in phases install (within the maven-install-plugin) and deploy (within the maven-deploy-plugin).
Hi, I followed this url https://jeanchristophegay.com/maven-unique-version-multi-modules-build-en/ and a couple of other stackoverflow questions. I have a simple parent-child setup, where child references parent as a different project (child is not a module of parent).
Parent:
Child:
I also have the .mvn/extensions.xml.
parent is installed properly in localrepo. When I run for child,
mvn -Drevision=1.0.0 clean install
, the parent's ${revision} is not being resolved. Instead I get:[ERROR] Non-resolvable parent POM for com.test:child:${revision}: Failure to find com.test:parent:pom:${revision} in $NEXUS_URL/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 6, column 11 ->
I tried with mvn -X, I can see the extension is being touched
[DEBUG] fr.jcgay.maven.extension:unique-revision-maven-filtering:jar:1.1:
[DEBUG] Populating class realm coreExtension>fr.jcgay.maven.extension:unique-revision-maven-filtering:1.1
[DEBUG] Included /m361/m2_repo/fr/jcgay/maven/extension/unique-revision-maven-filtering/1.1/unique-revision-maven-filtering-1.1.jar
I dont see a target/pom.xml either. If I change parent's version to 1.0.0, the target/pom.xml is generated fine, but there is no need for ${revision} then.
At what point of time does the extension kick-in during the build lifecycle? It appears mvn is attempting to resolve parent.version before the extension gets a chance to replace it.
Any help appreciated.
The text was updated successfully, but these errors were encountered: