本文整理了Java中org.apache.maven.model.Model.setRepositories()
方法的一些代码示例,展示了Model.setRepositories()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.setRepositories()
方法的具体详情如下:
包路径:org.apache.maven.model.Model
类名称:Model
方法名:setRepositories
暂无
代码示例来源:origin: org.apache.maven/maven-project
public void inject( Profile profile, Model model )
{
model.setDependencies( injectDependencies( profile.getDependencies(), model.getDependencies() ) );
injectModules( profile, model );
model.setRepositories( ModelUtils.mergeRepositoryLists( profile.getRepositories(), model.getRepositories() ) );
model.setPluginRepositories( ModelUtils.mergeRepositoryLists( profile.getPluginRepositories(), model
.getPluginRepositories() ) );
injectReporting( profile, model );
injectDependencyManagement( profile, model );
injectDistributionManagement( profile, model );
injectBuild( profile, model );
Properties props = new Properties();
props.putAll( model.getProperties() );
props.putAll( profile.getProperties() );
model.setProperties( props );
}
代码示例来源:origin: apache/maven
model.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: apache/maven
child.setRepositories( ModelUtils.mergeRepositoryLists( child.getRepositories(), parent.getRepositories() ) );
代码示例来源:origin: org.apache.maven/maven-project
child.setRepositories( ModelUtils.mergeRepositoryLists( child.getRepositories(), parent.getRepositories() ) );
child.setPluginRepositories(
ModelUtils.mergeRepositoryLists( child.getPluginRepositories(), parent.getPluginRepositories() ) );
代码示例来源:origin: apache/maven
model.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: mojohaus/flatten-maven-plugin
@Override
public void set( Model model, List<Repository> value )
{
model.setRepositories( value );
};
};
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
/**
* Set the lists of the remote repositories for discovering
* dependencies and
* extensions.
*
* @param repositories
*/
public FluentModelBuilder withRepositories(List<Repository> repositories) {
model.setRepositories(repositories);
return this;
}
}
代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo
@Override
public void setRepositories(List<Repository> repositories) {
delegate.setRepositories(repositories);
}
}
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-services-backend
/***************************************** Start Repositories TAG *****************************************/
private void updateRepositories(Model model) {
List<Repository> repos = new ArrayList<>();
applyMigrationRepos(repos);
model.setRepositories(repos);
}
代码示例来源:origin: takari/polyglot-maven
model.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: org.apache.maven/maven-ant-tasks
/**
* Removes a lot of unnecessary information from the POM.
* This includes the build section, reporting, repositories, etc.
*/
public void trimModel( Model model )
{
model.setBuild( null );
model.setReporting( null );
model.setProperties( null );
model.setRepositories( null );
model.setPluginRepositories( null );
model.setProfiles( null );
model.setDistributionManagement( null );
model.setModules( null );
}
代码示例来源:origin: mojohaus/flatten-maven-plugin
effectivePom.setRepositories( createFlattenedRepositories( effectivePom.getRepositories() ) );
return effectivePom;
代码示例来源:origin: org.guvnor/guvnor-project-backend
private String toString(final POM pom,
final Model model) throws IOException {
model.setName(pom.getName());
model.setDescription(pom.getDescription());
model.setArtifactId(pom.getGav().getArtifactId());
model.setModelVersion(pom.getModelVersion());
model.setGroupId(pom.getGav().getGroupId());
model.setVersion(pom.getGav().getVersion());
model.setPackaging(pom.getPackaging());
model.setParent(getParent(pom));
model.setBuild(getBuild(pom,
model));
model.setModules(getModules(pom));
model.setRepositories(getRepositories(pom));
new DependencyUpdater(model.getDependencies()).updateDependencies(pom.getDependencies());
StringWriter stringWriter = new StringWriter();
new MavenXpp3Writer().write(stringWriter,
model);
return stringWriter.toString();
}
代码示例来源:origin: kiegroup/appformer
private String toString(final POM pom,
final Model model) throws IOException {
model.setName(pom.getName());
model.setDescription(pom.getDescription());
model.setArtifactId(pom.getGav().getArtifactId());
model.setModelVersion(pom.getModelVersion());
model.setUrl(pom.getUrl());
model.setGroupId(pom.getGav().getGroupId());
model.setVersion(pom.getGav().getVersion());
model.setPackaging(pom.getPackaging());
model.setParent(getParent(pom));
model.setBuild(getBuild(pom,
model));
model.setModules(getModules(pom));
model.setRepositories(getRepositories(pom));
new DependencyUpdater(model.getDependencies()).updateDependencies(pom.getDependencies());
StringWriter stringWriter = new StringWriter();
new MavenXpp3Writer().write(stringWriter,
model);
return stringWriter.toString();
}
代码示例来源:origin: org.uberfire/uberfire-project-backend
private String toString(final POM pom,
final Model model) throws IOException {
model.setName(pom.getName());
model.setDescription(pom.getDescription());
model.setArtifactId(pom.getGav().getArtifactId());
model.setModelVersion(pom.getModelVersion());
model.setUrl(pom.getUrl());
model.setGroupId(pom.getGav().getGroupId());
model.setVersion(pom.getGav().getVersion());
model.setPackaging(pom.getPackaging());
model.setParent(getParent(pom));
model.setBuild(getBuild(pom,
model));
model.setModules(getModules(pom));
model.setRepositories(getRepositories(pom));
new DependencyUpdater(model.getDependencies()).updateDependencies(pom.getDependencies());
StringWriter stringWriter = new StringWriter();
new MavenXpp3Writer().write(stringWriter,
model);
return stringWriter.toString();
}
代码示例来源:origin: io.tesla.maven/maven-model
model.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: org.uberfire/uberfire-project-backend
public Model convert(final POM pom,
final Model model) {
model.setName(pom.getName());
model.setDescription(pom.getDescription());
model.setArtifactId(pom.getGav().getArtifactId());
model.setModelVersion(pom.getModelVersion());
model.setUrl(pom.getUrl());
model.setGroupId(pom.getGav().getGroupId());
model.setVersion(pom.getGav().getVersion());
model.setPackaging(pom.getPackaging());
model.setParent(getParent(pom));
model.setBuild(getBuild(pom,
model));
model.setModules(getModules(pom));
model.setRepositories(getRepositories(pom));
return model;
}
代码示例来源:origin: kiegroup/appformer
public Model convert(final POM pom,
final Model model) {
model.setName(pom.getName());
model.setDescription(pom.getDescription());
model.setArtifactId(pom.getGav().getArtifactId());
model.setModelVersion(pom.getModelVersion());
model.setUrl(pom.getUrl());
model.setGroupId(pom.getGav().getGroupId());
model.setVersion(pom.getGav().getVersion());
model.setPackaging(pom.getPackaging());
model.setParent(getParent(pom));
model.setBuild(getBuild(pom,
model));
model.setModules(getModules(pom));
model.setRepositories(getRepositories(pom));
return model;
}
代码示例来源:origin: io.tesla.maven/maven-model
model.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
内容来源于网络,如有侵权,请联系作者删除!