From e984af8bfde34628fcce791f241e13121650ad50 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 13 Dec 2019 09:16:25 +0100 Subject: [PATCH] Mark yang-maven-plugin as thread-safe The plugin can be executed in multiple projects concurrently, mark it as such. Change-Id: I600e733299a7db87dc8040bef89c97ecf9f5f568 Signed-off-by: Robert Varga (cherry picked from commit b8a6ab55af0f9894736bfbf0d4c0bae7dda4f249) --- .../yangtools/yang2sources/plugin/YangToSourcesMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java b/yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java index 9694bc4671..67c49cd010 100644 --- a/yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java +++ b/yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojo.java @@ -48,7 +48,7 @@ import org.sonatype.plexus.build.incremental.BuildContext; * */ @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"; -- 2.36.6