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

x33g5p2x  于2022-01-24 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(112)

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

Model.addPluginRepository介绍

暂无

代码示例

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

public void pluginRepositories(Repository... repositories) {
  asList(repositories).forEach(repo -> {
    model.addPluginRepository(repo);
  });
}

代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder

/**
 * Method addPluginRepository.
 *
 * @param repository
 */
public FluentModelBuilder withPluginRepository(Repository repository) {
  model.addPluginRepository(repository);
  return this;
}

代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo

@Override
public void addPluginRepository(Repository repository) {
  delegate.addPluginRepository(repository);
}

代码示例来源:origin: jenkinsci/custom-war-packager

protected void addRepositories(Model target) {
  // Common repo
  Repository jenkinsRepository = new Repository();
  jenkinsRepository.setId("repo.jenkins-ci.org");
  jenkinsRepository.setUrl("https://repo.jenkins-ci.org/public/");
  target.addPluginRepository(jenkinsRepository);
  target.addRepository(jenkinsRepository);
  // Incrementals repo
  Repository incrementals = new Repository();
  incrementals.setId("incrementals");
  incrementals.setUrl("https://repo.jenkins-ci.org/incrementals/");
  target.addPluginRepository(incrementals);
  target.addRepository(incrementals);
}

代码示例来源:origin: org.apache.maven.shared/maven-plugin-testing-tools

model.addPluginRepository( localAsRemote );

代码示例来源:origin: org.apache.maven.plugin-testing/maven-plugin-testing-tools

model.addPluginRepository( localAsRemote );

相关文章

Model类方法