本文整理了Java中org.apache.maven.model.Model.addPluginRepository()
方法的一些代码示例,展示了Model.addPluginRepository()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.addPluginRepository()
方法的具体详情如下:
包路径:org.apache.maven.model.Model
类名称: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 );
内容来源于网络,如有侵权,请联系作者删除!