org.apache.maven.model.Plugin.setGoals()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中org.apache.maven.model.Plugin.setGoals()方法的一些代码示例,展示了Plugin.setGoals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plugin.setGoals()方法的具体详情如下:
包路径:org.apache.maven.model.Plugin
类名称:Plugin
方法名:setGoals

Plugin.setGoals介绍

[英]Set Deprecated. Unused by Maven.
[中]设置不推荐。Maven没用过。

代码示例

代码示例来源:origin: apache/maven

plugin.setGoals( org.codehaus.plexus.util.xml.Xpp3DomBuilder.build( parser, true ) );

代码示例来源:origin: apache/maven

plugin.setGoals( org.codehaus.plexus.util.xml.Xpp3DomBuilder.build( parser, true ) );

代码示例来源:origin: lewisd32/lint-maven-plugin

public void setGoals(Object goals) {
  plugin.setGoals(goals);
}

代码示例来源:origin: takari/polyglot-maven

plugin.setGoals( org.codehaus.plexus.util.xml.Xpp3DomBuilder.build( parser ) );

代码示例来源:origin: apache/maven-release

releasePlugin.setGoals( plugin.getGoals() );
releasePlugin.setInherited( plugin.getInherited() );
releasePlugin.setConfiguration( plugin.getConfiguration() );

代码示例来源:origin: org.guvnor/guvnor-project-backend

@Test
public void testBuildPluginUpdateExisting() throws Exception {
  org.guvnor.common.services.project.model.Build from = new org.guvnor.common.services.project.model.Build();
  from.getPlugins().add(makeGuvnorPlugin("myGroup",
                      "myArtifact",
                      "1.0"));
  Build to = new Build();
  Plugin toPlugin = makeMavenPlugin("myGroup",
                   "myArtifact",
                   "0.11.11.12");
  to.getPlugins().add(toPlugin);
  toPlugin.setGoals("someGoal");
  to.setSourceDirectory("someDirectory");
  to = new BuildContentHandler().update(from,
                     to);
  assertEquals(1,
         to.getPlugins().size());
  assertEquals("1.0",
         to.getPlugins().get(0).getVersion());
  assertEquals("someGoal",
         to.getPlugins().get(0).getGoals());
  assertEquals("someDirectory",
         to.getSourceDirectory());
}

代码示例来源:origin: org.uberfire/uberfire-project-backend

@Test
public void testBuildPluginUpdateExisting() throws Exception {
  org.guvnor.common.services.project.model.Build from = new org.guvnor.common.services.project.model.Build();
  from.getPlugins().add(makeGuvnorPlugin("myGroup",
                      "myArtifact",
                      "1.0"));
  Build to = new Build();
  Plugin toPlugin = makeMavenPlugin("myGroup",
                   "myArtifact",
                   "0.11.11.12");
  to.getPlugins().add(toPlugin);
  toPlugin.setGoals("someGoal");
  to.setSourceDirectory("someDirectory");
  to = new BuildContentHandler().update(from,
                     to);
  assertEquals(1,
         to.getPlugins().size());
  assertEquals("1.0",
         to.getPlugins().get(0).getVersion());
  assertEquals("someGoal",
         to.getPlugins().get(0).getGoals());
  assertEquals("someDirectory",
         to.getSourceDirectory());
}

代码示例来源:origin: kiegroup/appformer

@Test
public void testBuildPluginUpdateExisting() throws Exception {
  org.guvnor.common.services.project.model.Build from = new org.guvnor.common.services.project.model.Build();
  from.getPlugins().add(makeGuvnorPlugin("myGroup",
                      "myArtifact",
                      "1.0"));
  Build to = new Build();
  Plugin toPlugin = makeMavenPlugin("myGroup",
                   "myArtifact",
                   "0.11.11.12");
  to.getPlugins().add(toPlugin);
  toPlugin.setGoals("someGoal");
  to.setSourceDirectory("someDirectory");
  to = new BuildContentHandler().update(from,
                     to);
  assertEquals(1,
         to.getPlugins().size());
  assertEquals("1.0",
         to.getPlugins().get(0).getVersion());
  assertEquals("someGoal",
         to.getPlugins().get(0).getGoals());
  assertEquals("someDirectory",
         to.getSourceDirectory());
}

代码示例来源:origin: io.tesla.maven/maven-model

plugin.setGoals( org.codehaus.plexus.util.xml.Xpp3DomBuilder.build( parser, true ) );

代码示例来源:origin: io.tesla.maven/maven-model

plugin.setGoals( org.codehaus.plexus.util.xml.Xpp3DomBuilder.build( parser, true ) );

相关文章