本文整理了Java中org.apache.maven.settings.Profile.setRepositories()
方法的一些代码示例,展示了Profile.setRepositories()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.setRepositories()
方法的具体详情如下:
包路径:org.apache.maven.settings.Profile
类名称:Profile
方法名:setRepositories
[英]Set the lists of the remote repositories.
[中]设置远程存储库的列表。
代码示例来源:origin: apache/maven
profile.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: org.apache.maven/maven-settings
profile.setRepositories( repositories );
while ( parser.nextTag() == XmlPullParser.START_TAG )
代码示例来源:origin: apache/karaf
List<Repository> newRepos = profile.getRepositories().stream()
.filter((r) -> !id.equals(r.getId())).collect(Collectors.toList());
profile.setRepositories(newRepos);
System.out.printf("Repository with ID \"%s\" was removed from profile \"%s\"\n", id, profile.getId());
break;
代码示例来源:origin: io.fabric8/fabric-maven
central.setUrl("http://repo1.maven.org/maven2");
fallbackProfile.setId("fallback");
fallbackProfile.setRepositories(Arrays.asList(central));
settings.addProfile(fallbackProfile);
settings.addActiveProfile("fallback");
内容来源于网络,如有侵权,请联系作者删除!