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.

Maven parallel build (-T) will produce notes regarding threadsafety

See original GitHub issue

Do 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:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

11reactions
t196commented, May 18, 2018

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)

2reactions
MarkusTiedecommented, Nov 13, 2019

We’d also like to see parallel execution being supported (mvn 3.5.4).

Read more comments on GitHub >

github_iconTop 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 >

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