Mark yang-maven-plugin as thread-safe 17/86417/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 13 Dec 2019 08:16:25 +0000 (09:16 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 13 Dec 2019 13:26:23 +0000 (14:26 +0100)
The plugin can be executed in multiple projects concurrently,
mark it as such.

Change-Id: I600e733299a7db87dc8040bef89c97ecf9f5f568
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b8a6ab55af0f9894736bfbf0d4c0bae7dda4f249)

yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java

index 9694bc4671e15e65e8b862d08154df8559cc976c..67c49cd0100795f9b12db86776cfb05a576efa63 100644 (file)
@@ -48,7 +48,7 @@ import org.sonatype.plexus.build.incremental.BuildContext;
  * </ol>
  */
 @Mojo(name = "generate-sources", defaultPhase = LifecyclePhase.GENERATE_SOURCES,
-    requiresDependencyResolution = ResolutionScope.COMPILE, requiresProject = true)
+    requiresDependencyResolution = ResolutionScope.COMPILE, requiresProject = true, threadSafe = true)
 public final class YangToSourcesMojo extends AbstractMojo {
     public static final String PLUGIN_NAME = "org.opendaylight.yangtools:yang-maven-plugin";