Skip to content
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

Closed
Dennis-Koch opened this issue May 25, 2018 · 4 comments
Closed

Support multiple properties in 'set-property' #278

Dennis-Koch opened this issue May 25, 2018 · 4 comments

Comments

@Dennis-Koch
Copy link

Dennis-Koch commented May 25, 2018

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

@easterwood
Copy link

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."

@jarmoniuk
Copy link
Contributor

jarmoniuk commented Sep 1, 2022

I think this has been resolved by #546 and can be closed.

@jarmoniuk
Copy link
Contributor

It's verified to be resolved by that PR, there's even an it testing this very feature.

@indrakumaryadav
Copy link

is there any option to set multiple versions for multiple properties?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants