question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The antlr4-maven-plugin is not marked as thread safe

See original GitHub issue

If you start a build which contains antlr4-maven-plugin with multi thread support (parallel build) you get the following warning:

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cql ---
[INFO] Building jar: ..../grammars-v4/cql/target/cql-1.0-SNAPSHOT.jar
[INFO] 
[INFO] ----------------------< org.antlr.grammars:cql3 >-----------------------
[INFO] Building Apache Cassandra CQL 3 grammar 1.0-SNAPSHOT            [34/256]
[INFO] --------------------------------[ jar ]---------------------------------
[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 Apache Cassandra CQL 3 grammar:
[WARNING] com.khubla.antlr:antlr4test-maven-plugin:1.17
[WARNING] org.antlr:antlr4-maven-plugin:4.9.1
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cql3 ---

It would be nice to mark the antlr4-maven-plugin @threadSafe to suppress this warning.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ericvergnaudcommented, Feb 27, 2021

Hi, thanks for this. Since you are looking to use it that way, any chance you could actually contribute to make that happen and submit a PR? Eric

0reactions
ericvergnaudcommented, Feb 27, 2021

You also need to add yourself to contributors.txt

Envoyé de mon iPhone

Le 27 févr. 2021 à 20:25, Karl Heinz Marbaise notifications@github.com a écrit :

@ericvergnaud PR offered.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

antlr4:help - ANTLR v4 Maven plugin
The goal is thread-safe and supports parallel builds. Optional Parameters. Name, Type, Since, Description. detail, boolean, -, If true, display ...
Read more >
How see all non threadsafe plugins in maven? - Stack Overflow
Now when you build Maven warns about plugins not marked as threadsafe:
Read more >
Groovy Language Documentation
Add a Dependency; Specify Additional Repositories; Maven Classifiers ... Of these, const , goto , strictfp , and threadsafe are not currently in...
Read more >
[#MTOOLCHAINS-31] Not threadsafe for parallel execution
I marked the plugin as threadSafe: https://github.com/apache/maven-toolchains-plugin/pull/8 this is trivially correct, as the plugin has the ...
Read more >
Useful Maven Plugins for working with ANTLR 4 Grammars
Other options allow printing the parse tree ( showTree ) and showing detailed parsing information ( verbose ). One limitation of this plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found