Maven parallel build (-T) will produce notes regarding threadsafety
See original GitHub issueDo you want to request a feature or report a bug? Feature
What is the current behavior? Use multiple Threads and Maven 3.5.3 and the output will be:
[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 my-project:
[WARNING] com.github.eirslett:frontend-maven-plugin:1.6
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Threadsafety if possible
Please mention your frontend-maven-plugin and operating system version. Maven 3.5.3 macOS high Sierra 10.13.3
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Parallel builds in Maven 3 - Apache Software Foundation
This checklist qualifies for a "simple thread safety" review of a mojo. If you need to learn more about multithreading and the java...
Read more >Thread-safe warning when executing maven parallel build
1 Answer 1 ... Mostly this warning is nothing to worry about, but I recommend using a threadsafe version for your plugins if...
Read more >380169 – Support for maven parallel build - Bugs - Eclipse
When I try to run my build in parallel using the maven -T option (e.g. mvn -T 1C), I do get warning that...
Read more >Parallel Testing in Java with Maven and TestNG
Making your Test Classes Thread Safe. When you parallelize your test runs by test method, you will need to make sure that shared...
Read more >Faster Maven builds - A Java geek
I want to detail some techniques you can leverage to make your Maven ... on each other you have, i.e., Maven can build...
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 Free
Top 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
We have the same issue, running Maven 3.5.2.
It would be nice if all Mojos could be extendend with
threadSafe = true
, for example@Mojo(name = "...", threadSafe = true)
We’d also like to see parallel execution being supported (mvn 3.5.4).