Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
maven-bundle-plugin-2.1.0
-
None
Description
When executing a Maven-3 build with maven-bundle-plugin and set to more than one thread, this error message is shown:
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that are not marked as *
[WARNING] * @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 com.infoq.minimal:
[WARNING] org.apache.felix:maven-bundle-plugin:2.1.0
[WARNING] *****************************************************************
https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html
mvn -T 4 clean install # Builds with 4 threads
I believe the solution is to add @threadSafe to the maven-bundle-plugin MoJo class (after checking that it is in fact thread-safe
Attachments
Issue Links
- is cloned by
-
FELIX-2657 Maven-bundle-plugin uses old version of BndLib
- Closed