Skip to content

Commit

Permalink
#60: marking thread safety in maven plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed May 11, 2020
1 parent 4df583a commit 61fc9f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -33,15 +33,16 @@
* The import-properties goal imports all properties from scope-import poms
* (boms) and sets them as project properties.
*
* @author <a href="mailto:martin.grebac@oracle.com">Martin Grebac</a>
* @author Martin Grebac
*/
@Mojo(name = "import-pom-properties", defaultPhase = LifecyclePhase.COMPILE, requiresDependencyResolution = ResolutionScope.NONE)
@Mojo(name = "import-pom-properties", threadSafe = true,
defaultPhase = LifecyclePhase.COMPILE, requiresDependencyResolution = ResolutionScope.NONE)
public class ImportPropertiesMojo extends AbstractMojo {

/**
* The Maven Project Object.
*/
@Component
@Parameter(defaultValue = "${project}", readonly = true)
protected MavenProject project;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Phase: generate-sources
*/
@Mojo(name = "metainf-services", defaultPhase = LifecyclePhase.GENERATE_SOURCES)
@Mojo(name = "metainf-services", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
public class MetainfServicesCompilerMojo extends AbstractMojo {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
* RequiresProject: false
* Phase: process-sources
*/
@Mojo(name = "rs-gen", requiresProject = false, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
@Mojo(name = "rs-gen", requiresProject = false, threadSafe = true,
defaultPhase = LifecyclePhase.PROCESS_SOURCES)
public class ResourceGenMojo extends AbstractMojo {

/**
Expand Down

0 comments on commit 61fc9f1

Please sign in to comment.