From ec9bacd517a1bb0b48a895870715695f69ad8da6 Mon Sep 17 00:00:00 2001 From: Henrique Prange Date: Fri, 3 Nov 2017 18:13:41 -0200 Subject: [PATCH] Fix thread safety warnings when build WO projects in parallel There is no evidence that this plugin isn't thread-safe. So, let's make it thread-safe and avoid the noise. --- .../maven/wolifecycle/DefineWOApplicationResourcesMojo.java | 1 + .../maven/wolifecycle/DefineWOFrameworkResourcesMojo.java | 1 + .../maven/wolifecycle/PackageWOApplicationResourcesMojo.java | 1 + .../maven/wolifecycle/PackageWOFrameworkResourcesMojo.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOApplicationResourcesMojo.java b/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOApplicationResourcesMojo.java index f7fed1d..fe44ac6 100644 --- a/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOApplicationResourcesMojo.java +++ b/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOApplicationResourcesMojo.java @@ -48,6 +48,7 @@ * * @goal define-woapplication-resources * @requiresDependencyResolution compile + * @threadSafe * @author uli * @author hprange * @since 2.0 diff --git a/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOFrameworkResourcesMojo.java b/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOFrameworkResourcesMojo.java index 95c3467..5f94fed 100644 --- a/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOFrameworkResourcesMojo.java +++ b/src/main/java/org/wocommunity/maven/wolifecycle/DefineWOFrameworkResourcesMojo.java @@ -24,6 +24,7 @@ * resources goal for WebObjects projects. * * @goal define-woframework-resources + * @threadSafe * @author uli * @since 2.0 */ diff --git a/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOApplicationResourcesMojo.java b/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOApplicationResourcesMojo.java index eddbb0a..8a37b58 100644 --- a/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOApplicationResourcesMojo.java +++ b/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOApplicationResourcesMojo.java @@ -29,6 +29,7 @@ * @phase package * @requiresProject * @requiresDependencyResolution compile + * @threadSafe * @author uli * @author hprange * @since 2.0 diff --git a/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOFrameworkResourcesMojo.java b/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOFrameworkResourcesMojo.java index bae0320..9f6532c 100644 --- a/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOFrameworkResourcesMojo.java +++ b/src/main/java/org/wocommunity/maven/wolifecycle/PackageWOFrameworkResourcesMojo.java @@ -29,6 +29,7 @@ * @phase package * @requiresProject * @requiresDependencyResolution compile + * @threadSafe * @author uli * @author Henrique Prange * @since 2.0