From 7798c6116dba7811c904e28b68bb4cf7191c0ab3 Mon Sep 17 00:00:00 2001 From: Mark Derricutt Date: Thu, 25 Apr 2019 22:43:20 +1200 Subject: [PATCH] Added threadSafe annotation settings. Fixes #96 Change-Id: Ia163f0949483d10090afbc156995d9a03d9de44c --- .../repaint/maven/tiles/AttachTileMojo.groovy | 2 +- .../maven/tiles/ValidateTileMojo.groovy | 4 +- tiles-maven-plugin.iml | 58 +++++++++++++++++++ 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 tiles-maven-plugin.iml diff --git a/src/main/groovy/io/repaint/maven/tiles/AttachTileMojo.groovy b/src/main/groovy/io/repaint/maven/tiles/AttachTileMojo.groovy index 04e1155..9b6e649 100644 --- a/src/main/groovy/io/repaint/maven/tiles/AttachTileMojo.groovy +++ b/src/main/groovy/io/repaint/maven/tiles/AttachTileMojo.groovy @@ -16,7 +16,7 @@ import org.apache.maven.project.MavenProjectHelper * @author: Mark Derricutt - https://plus.google.com/+MarkDerricutt */ @CompileStatic -@Mojo(name = "attach-tile", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE, defaultPhase = LifecyclePhase.PACKAGE) +@Mojo(name = "attach-tile", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE, defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true) class AttachTileMojo extends AbstractTileMojo { @Component diff --git a/src/main/groovy/io/repaint/maven/tiles/ValidateTileMojo.groovy b/src/main/groovy/io/repaint/maven/tiles/ValidateTileMojo.groovy index d0fc3c1..60cea44 100644 --- a/src/main/groovy/io/repaint/maven/tiles/ValidateTileMojo.groovy +++ b/src/main/groovy/io/repaint/maven/tiles/ValidateTileMojo.groovy @@ -1,10 +1,8 @@ package io.repaint.maven.tiles import groovy.transform.CompileStatic -import org.apache.maven.execution.MavenSession import org.apache.maven.plugin.MojoExecutionException import org.apache.maven.plugin.MojoFailureException -import org.apache.maven.plugins.annotations.Component import org.apache.maven.plugins.annotations.Mojo import org.apache.maven.plugins.annotations.ResolutionScope @@ -14,7 +12,7 @@ import org.apache.maven.plugins.annotations.ResolutionScope * @author: Mark Derricutt - https://plus.google.com/+MarkDerricutt */ @CompileStatic -@Mojo(name = "validate", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE) +@Mojo(name = "validate", requiresProject = true, requiresDependencyResolution = ResolutionScope.NONE, threadSafe = true) class ValidateTileMojo extends AbstractTileMojo { @Override diff --git a/tiles-maven-plugin.iml b/tiles-maven-plugin.iml new file mode 100644 index 0000000..793e576 --- /dev/null +++ b/tiles-maven-plugin.iml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file