[OPENJPA-2852] marking mojo as threadsafe

This commit is contained in:
Romain Manni-Bucau 2021-03-31 10:18:21 +02:00
parent 68aa6a3d17
commit 9a96e0cd89
4 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ import org.apache.maven.plugins.annotations.ResolutionScope;
* @version $Id: OpenJpaEnhancerMojo.java 10954 2009-10-23 22:05:45Z struberg $
* @since 1.0
*/
@Mojo(name="enhance", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE)
@Mojo(name="enhance", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE,
threadSafe = true)
public class OpenJpaEnhancerMojo extends AbstractOpenJpaEnhancerMojo {
}

View File

@ -34,7 +34,8 @@ import org.apache.openjpa.lib.util.Options;
* @version $Id$
* @since 1.0
*/
@Mojo(name="schema", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE)
@Mojo(name="schema", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE,
threadSafe = true)
public class OpenJpaSchemaMojo extends AbstractOpenJpaMappingToolMojo {
/**

View File

@ -34,7 +34,8 @@ import org.apache.openjpa.lib.util.Options;
* @version $Id$
* @since 1.0
*/
@Mojo(name="sql", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE)
@Mojo(name="sql", defaultPhase=LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution=ResolutionScope.COMPILE,
threadSafe = true)
public class OpenJpaSqlMojo extends AbstractOpenJpaMappingToolMojo {
/**

View File

@ -34,7 +34,7 @@ import org.apache.maven.plugins.annotations.ResolutionScope;
* @since 1.1
*/
@Mojo(name="test-enhance", defaultPhase=LifecyclePhase.PROCESS_TEST_CLASSES,
requiresDependencyResolution=ResolutionScope.TEST)
requiresDependencyResolution=ResolutionScope.TEST, threadSafe = true)
public class OpenJpaTestEnhancerMojo extends AbstractOpenJpaEnhancerMojo {
/**