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

Using compatible arguments #810

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Using compatible arguments #810

merged 1 commit into from
Mar 27, 2023

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Mar 26, 2023

Fixes

mvn clean install
Unable to parse maven.config file options: Unrecognized option: --activate-profiles staging

with Maven 3.9.0+

Signed-off-by: David Matějček <[email protected]>
@pzygielo
Copy link
Contributor

For reference: https://maven.apache.org/docs/3.9.0/release-notes.html

Each line in .mvn/maven.config is now interpreted as a single argument. That is, if the file contains multiple arguments, these must now be placed on separate lines, see MNG-7684.

Could we keep long-form option and place [possibly indented] profile id in separate line?

@dmatej
Copy link
Contributor Author

dmatej commented Mar 26, 2023

Hmm, what is the advantage of the long form in two lines compared to a single line with the -P which everyone uses locally?

@pzygielo
Copy link
Contributor

@dmatej
Copy link
Contributor Author

dmatej commented Mar 26, 2023

Readability. (e.g. as described https://superuser.com/questions/174564/why-are-there-short-and-long-alternatives-for-command-line-options)

I would argue that in this case it would go against readability - the first thing I had to do was to find documentation and check if it is the same or not. Also having to use two lines seems a bit counterintuitive to me.

@dmatej dmatej merged commit e5abe74 into eclipse-ee4j:master Mar 27, 2023
@dmatej dmatej deleted the maven branch March 27, 2023 09:28
@dmatej dmatej added this to the 3.0.4 milestone Mar 27, 2023
@pzygielo
Copy link
Contributor

I had to do was to find documentation

Ok, you changed it for your liking while I was thinking about myself.

Also having to use two lines seems a bit counterintuitive to me.

Hasn't this been the case for eclipse.ini for years?

@pzygielo
Copy link
Contributor

@dmatej
Copy link
Contributor Author

dmatej commented Mar 27, 2023

Ok, you changed it for your liking while I was thinking about myself.

I wanted to wait more for other reponses, but Arjan wants to release GlassFish and I asked him to release HK2 first, so it started to be a quite trivial blocker.

Hasn't this been the case for eclipse.ini for years?

Eclipse.ini doesn't have anything to do with Maven, right? And we are discussing quite trivial problem - long multiline option versus short more often used oneliner.

And - the long option was introduced with Update dependencies for new servlet 6 to work #679, with no changes requested then.

Yes, but then we also didn't have issues with Maven 3.9.0+ - so if I have to change it, I prefer well known oneliner syntax.

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

Successfully merging this pull request may close these issues.

2 participants