mirror of https://github.com/apache/maven.git
*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163276 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a6a0eab73d
commit
107aa56cc5
|
@ -40,7 +40,7 @@ public class GoalMappingPhase
|
|||
public void execute( MavenGoalExecutionContext context )
|
||||
throws GoalExecutionException
|
||||
{
|
||||
GoalMappingVisitor visitor = new GoalMappingVisitor( context.getSession().getPluginManager() );
|
||||
GoalMappingVisitor visitor = new GoalMappingVisitor();
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -56,15 +56,8 @@ public class GoalMappingPhase
|
|||
public static final class GoalMappingVisitor
|
||||
extends AbstractGoalVisitor
|
||||
{
|
||||
private PluginManager pluginManager;
|
||||
|
||||
private Set visited = new HashSet();
|
||||
|
||||
GoalMappingVisitor( PluginManager pluginManager )
|
||||
{
|
||||
this.pluginManager = pluginManager;
|
||||
}
|
||||
|
||||
public void visitPrereq( String goal, String prereq, MavenSession session )
|
||||
throws GraphTraversalException
|
||||
{
|
||||
|
@ -103,9 +96,7 @@ public class GoalMappingPhase
|
|||
|
||||
public boolean shouldVisit( String goal, MavenSession session )
|
||||
{
|
||||
boolean result = !visited.contains( goal );
|
||||
|
||||
return result;
|
||||
return !visited.contains( goal );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -62,7 +62,8 @@ public class PluginResolutionPhase
|
|||
this.pluginManager = pluginManager;
|
||||
}
|
||||
|
||||
public void preVisit( String goal, MavenSession session ) throws GraphTraversalException
|
||||
public void preVisit( String goal, MavenSession session )
|
||||
throws GraphTraversalException
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -78,11 +79,9 @@ public class PluginResolutionPhase
|
|||
}
|
||||
}
|
||||
|
||||
public boolean shouldVisit( String goal, MavenSession session ) throws GraphTraversalException
|
||||
public boolean shouldVisit( String goal, MavenSession session )
|
||||
{
|
||||
boolean result = !resolved.contains( goal );
|
||||
|
||||
return result;
|
||||
return !resolved.contains( goal );
|
||||
}
|
||||
|
||||
public void visitPostGoal( String goal, String postGoal, MavenSession session )
|
||||
|
|
Loading…
Reference in New Issue