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

Mark javacc-maven-plugin as threadSafe=true #61

Open
clebertsuconic opened this issue Oct 24, 2023 · 5 comments
Open

Mark javacc-maven-plugin as threadSafe=true #61

clebertsuconic opened this issue Oct 24, 2023 · 5 comments

Comments

@clebertsuconic
Copy link

It appears to me that all is needed is add the definition on the MOJO as From a quick inspection the code seem safe to me.

Is there anything against making it threadSafe=true on the Mojo definition?

@clebertsuconic
Copy link
Author

clebertsuconic commented Oct 24, 2023

if you build artemis with -TC1:

git clone https://github.com/apache/activemq-artemis.git
cd activemq-artemis
mvn install -TC1 -DskipTests=true

you will see this output:

[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project      *
[WARNING] * contains the following plugin(s) that have goals not marked   *
[WARNING] * as @threadSafe to support parallel building.                  *
[WARNING] * While this /may/ work fine, please look for plugin updates    *
[WARNING] * and/or request plugins be made thread-safe.                   *
[WARNING] * If reporting an issue, report it against the plugin in        *
[WARNING] * question, not against maven-core                              *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in ActiveMQ Artemis Selector Implementation:
[WARNING] org.codehaus.mojo:javacc-maven-plugin:3.0.1
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[

@clebertsuconic
Copy link
Author

notice in the above I used 3.0.1, but my pom is currently at an older version now (2.0.something). I was trying 3.0 to see if it made any difference.. and I just inspected the code and this was not changed.

@andrii0lomakin
Copy link

Hi guys, is it possible to provide this fix? It will make our builds noticeably faster.

@slawekjaranowski
Copy link
Member

We need check if no static instances are used or if is synchronized.

And than Mojo can be mark as threadSafe

@pzygielo
Copy link

Is there a chance to have it fixed?

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

4 participants