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
I would be more than happy to contribute a fix, although I am unsure if a null check would be sufficient in this case. If you can let me know what the desired behavior should be, I will do so.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, I am having trouble updating a dependency version with 'use-dep-version' for a dependency without a version tag in the pom.xml:
The code fails here:
https://github.com/mojohaus/versions/blob/master/versions-common/src/main/java/org/codehaus/mojo/versions/api/PomHelper.java#L565
When the variable
oldVersion
is null.To reproduce:
git clone https://github.com/jfrog/jenkins-jfrog-plugin.git
cd jenkins-jfrog-plugin
mvn -B versions:use-dep-version -Dincludes=org.jenkins-ci.plugins.workflow:workflow-cps -DdepVersion=2803.v1a_f77ffcc773 -DgenerateBackupPoms=false -e
I would be more than happy to contribute a fix, although I am unsure if a null check would be sufficient in this case. If you can let me know what the desired behavior should be, I will do so.
Thanks.
The text was updated successfully, but these errors were encountered: