mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

Maven warns that plugin is not thread safe #81

Closed dheid closed 7 years ago

dheid commented 7 years ago

When I run mvn package -T8, Maven prints the following warning

[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 XXX
[WARNING] org.codehaus.mojo:jaxb2-maven-plugin:2.3.1
[WARNING] *****************************************************************
debraj-manna commented 7 years ago

@dheid - I am using jaxb2-maven-plugin 2.3.1 in maven parallel builds. If I am getting correctly then this is threadsafe to use as maven plugin?

Then can you let me know where the ArgumentBuilder is used where you have added the synchronized block? The javadoc says this is used in invocation from command line. But I did not find anything in the documentation stating how jaxb2-maven-plugin can be run from command line.