The antlr4-maven-plugin is not marked as thread safe
See original GitHub issueIf 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:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
You also need to add yourself to contributors.txt
Envoyé de mon iPhone