Removed hard-coding of plugins. Plugins come into builder with default configs. Need to null these out so that pluginMng will be applied.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769456 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-04-28 16:50:21 +00:00
parent cb51cfc270
commit 7d85e92007
1 changed files with 0 additions and 18 deletions

View File

@ -267,23 +267,6 @@ public class ProcessorContext
public static void addPluginsToModel(Model target, Set<Plugin> plugins) public static void addPluginsToModel(Model target, Set<Plugin> plugins)
{ {
Build build = target.getBuild();
// addPlugin(build, "maven-compiler-plugin");
// addPlugin(build, "maven-resources-plugin");
//addPlugin(build, "maven-deploy-plugin");
//addPlugin(build, "maven-jar-plugin");
// addPlugin(build, "maven-surefire-plugin");
/*
rg.apache.maven.plugins:maven-jar-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-resources-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-deploy-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-install-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-jar-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-resources-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-surefire-plugin
[java] PLUGIN: org.apache.maven.plugins:maven-deploy-plugin
*/
List<Plugin> mPlugins = target.getBuild().getPlugins(); List<Plugin> mPlugins = target.getBuild().getPlugins();
List<Plugin> lifecyclePlugins = new ArrayList<Plugin>(); List<Plugin> lifecyclePlugins = new ArrayList<Plugin>();
@ -294,7 +277,6 @@ public class ProcessorContext
{ {
p.setConfiguration(null); p.setConfiguration(null);
lifecyclePlugins.add(p); lifecyclePlugins.add(p);
//System.out.println("PLUGIN: " + p.getKey() +":" + ((p.getConfiguration() != null) ? p.getConfiguration().toString() : "") );
} }
} }