New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple values for multiple properties in 'set-property' #971
Comments
You're passing multiple mvn -X versions:set-property -Dpropery=myartifact.version -DnewVersion=10.1.1, -Dpropery=mysecondartifact.version -DnewVersion=10.5.1 The plugin will set all the listed properties to the same version, so what you're trying to do here is not supported. By the way, comma-delimited means using the comma inside the value of the argument, not passing multiple arguments to the shell. So, like this:
|
Sorry, for the type, that was typing mistake, i am using the correct syntax hence it is working for a single property with a single value, |
No, there isn't one. You must execute the goal separately for every properly you want to set. |
@indrakumaryadav - there is Can you use it? |
My pom structure looks like - and i am using org.codehaus.mojo:versions-maven-plugin:2.16.0
Now i want to set different versions for the property of both versions during Maven build. i tried
mvn versions:set-property -Dpropery=myartifact.version -DnewVersion=10.1.1
but set-propery only set single property and does not set both property values
if I pass it using comma-separated value, it only takes the last property not both
mvn versions:set-property -Dpropery=myartifact.version -DnewVersion=10.1.1, -Dpropery=mysecondartifact.version -DnewVersion=10.5.1
The text was updated successfully, but these errors were encountered: