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

x33g5p2x  于2022-01-16 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(128)

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

Build.setPlugins介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven/maven-project

public void setPlugins( List plugins )
{
  build.setPlugins( plugins );
}

代码示例来源:origin: org.apache.maven/maven-project

public void preserveBuild( Build originalInterpolatedBuild )
{
  dynamicBuild = getBuild();
  this.originalInterpolatedBuild = originalInterpolatedBuild;
  this.originalInterpolatedBuild.setPluginManagement( null );
  this.originalInterpolatedBuild.setPlugins( null );
}

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

build.setPlugins( new ArrayList<>( normalized.values() ) );

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

build.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

build.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

build.setPlugins(((BuildPluginsNamedValue)namedvalue).getPlugins());

代码示例来源:origin: mulesoft/mule

if (plugins == null) {
 plugins = new ArrayList<>();
 build.setPlugins(plugins);

代码示例来源:origin: mulesoft/mule

public File getArtifactPomFile() {
 if (artifactPomFile == null) {
  checkArgument(!isEmpty(artifactId), "Filename cannot be empty");
  final File tempFile = new File(getTempFolder(), artifactId + ".pom");
  tempFile.deleteOnExit();
  Model model = new Model();
  model.setGroupId(getGroupId());
  model.setArtifactId(getArtifactId());
  model.setVersion(getVersion());
  model.setModelVersion("4.0.0");
  if (!sharedLibraries.isEmpty()) {
   model.setBuild(new Build());
   model.getBuild().setPlugins(singletonList(createMuleMavenPlugin()));
  }
  for (AbstractDependencyFileBuilder fileBuilderDependency : dependencies) {
   model.addDependency(fileBuilderDependency.getAsMavenDependency());
  }
  artifactPomFile = new File(tempFile.getAbsolutePath());
  try (FileOutputStream fileOutputStream = new FileOutputStream(artifactPomFile)) {
   new MavenXpp3Writer().write(fileOutputStream, model);
  } catch (IOException e) {
   throw new MuleRuntimeException(e);
  }
 }
 return artifactPomFile;
}

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

build.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

model.getBuild().setPlugins(plugins);

代码示例来源:origin: reactiverse/vertx-maven-plugin

private Build createBuildSectionIfRequired(Model model) {
  Build build = model.getBuild();
  if (build == null) {
    build = new Build();
    model.setBuild(build);
  }
  if (build.getPlugins() == null) {
    build.setPlugins(new ArrayList<>());
  }
  return build;
}

代码示例来源:origin: org.apache.maven/maven-model-builder

build.setPlugins( new ArrayList<>( normalized.values() ) );

代码示例来源:origin: org.kie.workbench.services/kie-wb-common-compiler-core

private void changeKieMavenIntoKieTakariPlugin(Build build, PluginsContainer dto) {
  // Change the kie-maven-plugin into kie-takari-plugin
  if (dto.getKiePluginPresent() && !dto.getKieTakariPresent()) {
    List<Plugin> plugins = build.getPlugins();
    Plugin kieMavenPlugin = build.getPlugins().get(dto.getKieMavenPluginPosition());
    if (kieMavenPlugin.getArtifactId().equals(conf.get(ConfigurationKey.KIE_PLUGIN_GROUP))) {
      Plugin kieTakariPlugin = MavenAPIUtil.getPlugin(kieMavenPlugin.getGroupId(),
                              conf.get(ConfigurationKey.KIE_TAKARI_PLUGIN_ARTIFACT),
                              kieMavenPlugin.getVersion(),
                              Boolean.parseBoolean(kieMavenPlugin.getExtensions()));
      plugins.set(dto.getKieMavenPluginPosition(), kieTakariPlugin);
      build.setPlugins(plugins);
      dto.setOverwritePOM(Boolean.TRUE);
    }
  }
}

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

public Build update(final org.guvnor.common.services.project.model.Build from,
          Build to) {
  if (from == null) {
    return null;
  } else {
    if (to == null) {
      to = new Build();
    }
    if (from.getPlugins() != null) {
      to.setPlugins(new MavenPluginUpdater(to.getPlugins()).update(from.getPlugins()));
    }
    return to;
  }
}

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

public Build update(final org.guvnor.common.services.project.model.Build from,
          Build to) {
  if (from == null) {
    return null;
  } else {
    if (to == null) {
      to = new Build();
    }
    if (from.getPlugins() != null) {
      to.setPlugins(new MavenPluginUpdater(to.getPlugins()).update(from.getPlugins()));
    }
    return to;
  }
}

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

public Build update(final org.guvnor.common.services.project.model.Build from,
          Build to) {
  if (from == null) {
    return null;
  } else {
    if (to == null) {
      to = new Build();
    }
    if (from.getPlugins() != null) {
      to.setPlugins(new MavenPluginUpdater(to.getPlugins()).update(from.getPlugins()));
    }
    return to;
  }
}

代码示例来源:origin: stackoverflow.com

build.setPlugins(pluginList);

代码示例来源:origin: org.mule.runtime/mule-module-deployment-model-impl

if (plugins == null) {
 plugins = new ArrayList<>();
 build.setPlugins(plugins);

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

releaseModel.getBuild().setPlugins( createReleasePlugins( releaseDescriptor, releaseProject ) );

代码示例来源:origin: io.takari.polyglot/polyglot-atom

model.getBuild().setPlugins(plugins);

相关文章