mirror of https://github.com/apache/maven.git
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:
parent
cb51cfc270
commit
7d85e92007
|
@ -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() : "") );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue