-
Notifications
You must be signed in to change notification settings - Fork 265
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 properties in 'set-property' #278
Comments
I'm not sure if I understand your issue in the right way but the documentation of goal set-property says it is possible to "...specify multiple property names separated by "," which are all set to the same new version." |
I think this has been resolved by #546 and can be closed. |
It's verified to be resolved by that PR, there's even an it testing this very feature. |
is there any option to set multiple versions for multiple properties? |
Current only a single property is supported by the SetPropertyMojo. In cases where you have multiple distinct properties which shall be assigned the same "newVersion" you can't do this via plain command line any more.
In my company we currently exactly this problem on the command line:
mvn versions:set versions:set-property versions:update-child-modules org.eclipse.tycho:tycho-versions-plugin:update-eclipse-metadata -DnewVersion=%NEW_VERSION% -Dproperty=myProperty1,myProperty2 -DgenerateBackupPoms=false -DprocessAllModules -Dtycho.mode=maven
For different reasons we MUST execute all these mojos - including tycho versioning - in one call to one multi-module build. But the parameter "myProperty1,myProperty2" is interpreted as a single parameter even though it is in the pom.xml impossible to have a "comma" within a key/value property declaration.
I have uploaded a fixed version of the SetPropertyMojo because I was for whatever reason not able to create a PR
The text was updated successfully, but these errors were encountered: