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
{{ message }}
Repository navigation
deploy-file incompatible with "CI-friendly" versions #649
The deploy-file goal is very helpful in trying to use an embedded POM whenever it is present (only) with a JAR. To that extent, indeed, #583 / https://issues.apache.org/jira/browse/MDEPLOY-178 seems to have been resolved.
Fundamentally, when using Maven CI Friendly Versions, the <version> element of the pom.xml does not contain the final version of the artifact, but will contain variables (properties) for substitution - for instance ${revision} -, yielding
<version>${revision}</version>
as the version.
And that is something that deploy-file does not like, for obvious reasons.
Instead of (only) looking at the pom.xml content, deploy-file should also look at the content found in the adjacent file pom.properties which contains
Activity
shoffmeister commentedon Mar 8, 2026
... and then there is the Flatten Maven Plugin at https://www.mojohaus.org/flatten-maven-plugin/usage.html which I now recall being "almost mandatory" for use with Maven CI Friendly Versions.
Perhaps adding a note to the documentation pointing to the Flatten Maven Plugin is something that could add value?
apache#649: harden pom.properties coordinate resolution