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

maven-args where the value of an argument contains a space #56

Open
sitepark-veltrup opened this issue Mar 21, 2024 · 0 comments
Open

Comments

@sitepark-veltrup
Copy link

I want to use maven-args to set the argument -DpreparationGoals with multiple goals separated by a space.

-DpreparationGoals=clean my:goal verify

But I can't find a way to specify this. I have tried the following variants:

maven-args: '-DpreparationGoals="clean my:goal verify"'
maven-args: "-DpreparationGoals='clean my:goal verify'"
maven-args: '-DpreparationGoals="clean my:goal verify"'
maven-args: '-DpreparationGoals=clean\ my:goal\ verify'

The release fails with messages such as:

Could not find goal 'goal\'

Could not find goal 'verify"'

Could not find goal 'verify''

How should I specify the argument?

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

1 participant