Plugin was picking up default plugin groupId, which was causing resolve of plugins to fail.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@770433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-04-30 20:26:13 +00:00
parent 12ffdd1277
commit 383a8b006a
3 changed files with 17 additions and 7 deletions

View File

@ -225,6 +225,7 @@ public class DefaultMavenProjectBuilder
}
project.getModel().getBuild().setPlugins(new ArrayList<Plugin>(pl));
}
catch (IOException e)
{
@ -252,7 +253,15 @@ public class DefaultMavenProjectBuilder
return project;
}
private static void printPlugin(Plugin plugin, String tag)
{
System.out.println(tag + ":" + plugin);
System.out.println("CONFIG:" + plugin.getConfiguration());
for(PluginExecution pe : plugin.getExecutions())
{
System.out.println("PE:" + pe.getConfiguration());
}
}
private static PluginExecution contains(String goal, List<PluginExecution> plugins)
{

View File

@ -188,7 +188,7 @@ public class PluginProcessor
target.setArtifactId( source.getArtifactId() );
}
if(target.getGroupId() == null)
if(target.getGroupId() == null || !source.getGroupId().equals("org.apache.maven.plugins"))
{
target.setGroupId( source.getGroupId() );
}
@ -352,9 +352,10 @@ public class PluginProcessor
}
else
{
target.setConfiguration( new Xpp3Dom( (Xpp3Dom) source.getConfiguration()) );
//System.out.println("+++++++++++COPY PE+++++++++++++++++" + target.getConfiguration());
}
}
}
}