Details
Description
The code in ArtifactListBuilder that checks the type of override being performed (version or path) just checks that the value of the first character of mavenJarProperty is a digit. If you are tyring to override to SNAPSHOT this doesn't work. If the code was changed from
if ( mavenJarOverride && StringUtils.isNotEmpty(mavenJarProperty) )
to
if ( mavenJarOverride && (StringUtils.isNotEmpty(mavenJarProperty) ||
"SNAPSHOT".equals(mavenJarProperty)))
then we'd be able to override to SNAPSHOT for integration builds and not have to change all the dependencies before a relase (and then back to SNAPSHOT after).
Issue Links
| This issue is related to: | ||||
| MAVEN-1821 | Jar override doesn't work when using a named-version |
|
|
|
Damn, I hosed the code. It should be changes from this:
if ( Character.isDigit( mavenJarProperty.charAt( 0 ) ) )
to this:
if ( Character.isDigit( mavenJarProperty.charAt( 0 ) ) || "SNAPSHOT".equals(mavenJarProperty) )