Skip to content

Commit

Permalink
Let's use ResolutionScope.TEST in mojos Closes #127
Browse files Browse the repository at this point in the history
  • Loading branch information
tchemit committed Mar 27, 2018
1 parent b9b88e8 commit d4ec205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.ProjectBuildingException;
import org.codehaus.mojo.license.model.LicenseMap;
Expand Down Expand Up @@ -58,7 +59,8 @@
* @author tchemit dev@tchemit.fr
* @since 1.0
*/
@Mojo( name = "aggregate-add-third-party", aggregator = true, defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true )
@Mojo( name = "aggregate-add-third-party", aggregator = true, defaultPhase = LifecyclePhase.GENERATE_RESOURCES,
requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
public class AggregatorAddThirdPartyMojo extends AbstractAddThirdPartyMojo
{
// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @author Tony Chemit - dev@tchemit.fr
* @since 1.10
*/
@Mojo( name = "aggregate-third-party-report", aggregator = true, requiresDependencyResolution = ResolutionScope.RUNTIME )
@Mojo( name = "aggregate-third-party-report", aggregator = true, requiresDependencyResolution = ResolutionScope.TEST)
public class AggregatorThirdPartyReportMojo
extends AbstractThirdPartyReportMojo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* @author tchemit dev@tchemit.fr
* @since 1.1
*/
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.RUNTIME )
@Mojo( name = "third-party-report", requiresDependencyResolution = ResolutionScope.TEST )
public class ThirdPartyReportMojo extends AbstractThirdPartyReportMojo
{

Expand Down

0 comments on commit d4ec205

Please sign in to comment.