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