本文整理了Java中org.apache.maven.settings.Profile.getPluginRepositories()
方法的一些代码示例,展示了Profile.getPluginRepositories()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.getPluginRepositories()
方法的具体详情如下:
包路径:org.apache.maven.settings.Profile
类名称:Profile
方法名:getPluginRepositories
[英]Method getPluginRepositories.
[中]方法获取pluginrepositories。
代码示例来源:origin: apache/maven
/**
* Method addPluginRepository.
*
* @param repository
*/
public void addPluginRepository( Repository repository )
{
getPluginRepositories().add( repository );
} //-- void addPluginRepository( Repository )
代码示例来源:origin: apache/maven
/**
* Method removePluginRepository.
*
* @param repository
*/
public void removePluginRepository( Repository repository )
{
getPluginRepositories().remove( repository );
} //-- void removePluginRepository( Repository )
代码示例来源:origin: apache/maven
if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
代码示例来源:origin: apache/maven
validateRepositories( problems, profile.getPluginRepositories(), prefix
+ "pluginRepositories.pluginRepository" );
代码示例来源:origin: org.apache.maven/maven-settings
/**
* Method addPluginRepository.
*
* @param repository
*/
public void addPluginRepository( Repository repository )
{
getPluginRepositories().add( repository );
} //-- void addPluginRepository( Repository )
代码示例来源:origin: org.apache.maven/maven-settings
/**
* Method removePluginRepository.
*
* @param repository
*/
public void removePluginRepository( Repository repository )
{
getPluginRepositories().remove( repository );
} //-- void removePluginRepository( Repository )
代码示例来源:origin: apache/maven
List<Repository> pluginRepositories = rawProfile.getPluginRepositories();
for ( Repository pluginRepo : pluginRepositories )
代码示例来源:origin: apache/maven
List<Repository> pluginRepositories = rawProfile.getPluginRepositories();
for ( Repository pluginRepository : pluginRepositories )
代码示例来源:origin: apache/maven
List<Repository> pluginRepos = settingsProfile.getPluginRepositories();
if ( pluginRepos != null )
代码示例来源:origin: org.apache.maven/maven-settings
if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
代码示例来源:origin: org.kie.soup/kie-soup-maven-integration
private Collection<RemoteRepository> initExtraRepositories() {
Collection<RemoteRepository> extraRepositories = new HashSet<RemoteRepository>();
for ( Profile profile : settings.getProfiles() ) {
if ( isProfileActive( profile ) ) {
for ( Repository repository : profile.getRepositories() ) {
extraRepositories.add( toRemoteRepositoryBuilder( settings,
repository ).build() );
}
for ( Repository repository : profile.getPluginRepositories() ) {
extraRepositories.add( toRemoteRepositoryBuilder( settings,
repository ).build() );
}
}
}
return extraRepositories;
}
代码示例来源:origin: org.uberfire/uberfire-maven-integration
private Collection<RemoteRepository> initExtraRepositories() {
Collection<RemoteRepository> extraRepositories = new HashSet<RemoteRepository>();
for ( Profile profile : settings.getProfiles() ) {
if ( isProfileActive( profile ) ) {
for ( Repository repository : profile.getRepositories() ) {
extraRepositories.add( toRemoteRepositoryBuilder( settings,
repository ).build() );
}
for ( Repository repository : profile.getPluginRepositories() ) {
extraRepositories.add( toRemoteRepositoryBuilder( settings,
repository ).build() );
}
}
}
return extraRepositories;
}
代码示例来源:origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven
public static Profile asProfile(org.apache.maven.settings.Profile profile) {
Profile mavenProfile = new Profile();
if (profile != null) {
mavenProfile.setId(profile.getId());
mavenProfile.setActivation(asActivation(profile.getActivation()));
mavenProfile.setProperties(profile.getProperties());
mavenProfile.setRepositories(asRepositories(profile.getRepositories()));
mavenProfile.setPluginRepositories(asRepositories(profile.getPluginRepositories()));
}
return mavenProfile;
}
代码示例来源:origin: io.tesla.maven/maven-settings-builder
validateRepositories( problems, profile.getPluginRepositories(), prefix
+ "pluginRepositories.pluginRepository" );
代码示例来源:origin: shrinkwrap/resolver
public static Profile asProfile(org.apache.maven.settings.Profile profile) {
Profile mavenProfile = new Profile();
if (profile != null) {
mavenProfile.setId(profile.getId());
mavenProfile.setActivation(asActivation(profile.getActivation()));
mavenProfile.setProperties(profile.getProperties());
mavenProfile.setRepositories(asRepositories(profile.getRepositories()));
mavenProfile.setPluginRepositories(asRepositories(profile.getPluginRepositories()));
}
return mavenProfile;
}
代码示例来源:origin: org.apache.maven/maven-settings-builder
validateRepositories( problems, profile.getPluginRepositories(), prefix
+ "pluginRepositories.pluginRepository" );
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder
/**
* Method updateProfile.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateProfile(Profile value, String xmlTag, Counter counter, Element element)
{
Element root = element;
Counter innerCount = new Counter(counter.getDepth() + 1);
updateActivation( value.getActivation(), "activation", innerCount, root);
findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
iterateRepository(innerCount, root, value.getRepositories(),"repositories","repository");
iterateRepository(innerCount, root, value.getPluginRepositories(),"pluginRepositories","pluginRepository");
findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
} //-- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder
/**
* Method updateProfile
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateProfile(Profile value, String xmlTag, Counter counter, Element element)
{
Element root = element;
Counter innerCount = new Counter(counter.getDepth() + 1);
updateActivation( value.getActivation(), "activation", innerCount, root);
findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
iterateRepository(innerCount, root, value.getRepositories(),"repositories","repository");
iterateRepository(innerCount, root, value.getPluginRepositories(),"pluginRepositories","pluginRepository");
findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
} //-- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-compiler-core
List<Repository> pluginRepositories = rawProfile.getPluginRepositories();
for (Repository pluginRepository : pluginRepositories) {
try {
代码示例来源:origin: org.apache.maven/maven-embedder
List<Repository> pluginRepositories = rawProfile.getPluginRepositories();
for ( Repository pluginRepository : pluginRepositories )
内容来源于网络,如有侵权,请联系作者删除!