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

Drop mvn's -T option #24258

Closed
wants to merge 1 commit into from
Closed

Drop mvn's -T option #24258

wants to merge 1 commit into from

Conversation

pzygielo
Copy link
Contributor

@pzygielo pzygielo commented Jan 24, 2023

Parallel build uses goals not marked as @threadSafe by plugins:

 [WARNING] org.glassfish.build:glassfishbuild-maven-plugin:3.2.27
 [WARNING] org.glassfish.build:spec-version-maven-plugin:2.1
 [WARNING] org.glassfish.hk2:config-generator:2.5.0-b53
 [WARNING] org.glassfish.hk2:consolidatedbundle-maven-plugin:3.0.3
 [WARNING] org.glassfish.hk2:hk2-inhabitant-generator:3.0.3
 [WARNING] org.omnifaces:antlr-maven-plugin:2.4

Thus I propose to consider not using -T option, until above are upgraded.

-Ts seem to be introduced in

but in that PR the usage of non-threadSafe goals and warnings from maven are not discussed.

@pzygielo pzygielo marked this pull request as ready for review January 24, 2023 18:07
@dmatej
Copy link
Contributor

dmatej commented Jan 24, 2023

It is just a declaration, ANTLR plugin has much more serious issues, other work well. I don't see real reason for this ...?

@pzygielo
Copy link
Contributor Author

I don't see real reason for this?

Feel free to close this then as the confirmation that the goals work correctly, please.

@dmatej
Copy link
Contributor

dmatej commented Jan 24, 2023

I don't see real reason for this?

Feel free to close this then as the confirmation that the goals work correctly, please.

I don't like closing work of someone else, honestly - I forgot on these warnings for a while.
For ANTLR we have this one: #22638.
I believe other plugins should be just revisited, so perhaps us two could do that in next few days (weeks) ... If we would find that build cannot be executed in parallel, we would have to really merge this, but for 2 years I did not have any issue (always running -T4C if I am not running tests and always ok if my Eclipse IDE doesn't start compilation in parallel to Maven, which still cannot be resolved by this change).

@arjantijms
Copy link
Contributor

p.s. We had the @Treadsafe marking of all these plug-ins (after testing, and manual analysis if possible/where needed) on an internal TODO many years ago.

@pzygielo
Copy link
Contributor Author

Thanks for the feedback.

@pzygielo
Copy link
Contributor Author

pzygielo commented Jan 24, 2023

p.s. We had the @Treadsafe marking of all these plug-ins (after testing, and manual analysis if possible/where needed) on an internal TODO many years ago.

I took the liberty to make few of them public - they are referenced above. Not sure if this will make the maven warnings go away.

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.

3 participants