本文整理了Java中org.apache.maven.model.Profile.getPluginRepositories()
方法的一些代码示例,展示了Profile.getPluginRepositories()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.getPluginRepositories()
方法的具体详情如下:
包路径:org.apache.maven.model.Profile
类名称:Profile
方法名:getPluginRepositories
暂无
代码示例来源: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
if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
代码示例来源:origin: apache/maven
List<org.apache.maven.model.Repository> pluginRepos = modelProfile.getPluginRepositories();
if ( pluginRepos != null )
代码示例来源:origin: apache/maven
request );
validateRawRepositories( problems, profile.getPluginRepositories(),
prefix + ".pluginRepositories.pluginRepository", request );
代码示例来源:origin: takari/polyglot-maven
if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
代码示例来源:origin: takari/polyglot-maven
pluginRepositories( toRepositoryArray( profile.getPluginRepositories() ) );
代码示例来源:origin: spring-projects/sts4
public List<ArtifactRepository> getPluginArtifactRepositories(boolean injectSettings) throws MavenException {
ArrayList<ArtifactRepository> repositories = new ArrayList<ArtifactRepository>();
for (Profile profile : getActiveProfiles()) {
addArtifactRepositories(repositories, profile.getPluginRepositories());
}
addDefaultRepository(repositories);
if (injectSettings) {
injectSettings(repositories);
}
return removeDuplicateRepositories(repositories);
}
代码示例来源:origin: org.jboss.forge.addon/maven-impl-projects
@Override
public boolean hasPluginRepository(String url, org.jboss.forge.addon.maven.profiles.Profile profileParam)
{
if (profileParam == null)
return hasPluginRepository(url);
else
{
if (url != null)
{
String trimmedUrl = url.trim();
MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
Model pom = maven.getModel();
Profile profile = getProfile(pom, profileParam);
if (profile != null)
{
for (Repository repo : profile.getPluginRepositories())
{
if (repo.getUrl().trim().equals(trimmedUrl))
{
return true;
}
}
}
}
return false;
}
}
代码示例来源:origin: org.jboss.forge.addon/maven-impl-projects
@Override
public List<DependencyRepository> getPluginRepositories(org.jboss.forge.addon.maven.profiles.Profile profileParam)
{
if (profileParam == null)
return getPluginRepositories();
else
{
List<DependencyRepository> results = new ArrayList<>();
MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
Model pom = maven.getModel();
Profile profile = getProfile(pom, profileParam);
if (profile != null)
{
for (Repository repo : profile.getPluginRepositories())
{
results.add(new DependencyRepository(repo.getId(), repo.getUrl()));
}
}
return Collections.unmodifiableList(results);
}
}
代码示例来源:origin: org.jboss.forge.addon/maven-impl-projects
if (profile != null)
List<Repository> repos = profile.getPluginRepositories();
for (Repository repo : repos)
代码示例来源:origin: io.tesla.maven/maven-model
if ( ( profile.getPluginRepositories() != null ) && ( profile.getPluginRepositories().size() > 0 ) )
for ( Iterator iter = profile.getPluginRepositories().iterator(); iter.hasNext(); )
代码示例来源:origin: io.tesla.polyglot/tesla-polyglot-ruby
pluginRepositories( toRepositoryArray( profile.getPluginRepositories() ) );
代码示例来源:origin: io.takari.polyglot/polyglot-ruby
pluginRepositories( toRepositoryArray( profile.getPluginRepositories() ) );
代码示例来源:origin: org.apache.maven.plugins/maven-shade-plugin
/**
* 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 );
findAndReplaceSimpleElement( innerCount, root, "id", value.getId(), "default" );
// updateActivation( value.getActivation(), "activation", innerCount, root);
updateBuildBase( value.getBuild(), "build", innerCount, root );
findAndReplaceSimpleLists( innerCount, root, value.getModules(), "modules", "module" );
iterateRepository( innerCount, root, value.getRepositories(), "repositories", "repository" );
iterateRepository( innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository" );
iterateDependency( innerCount, root, value.getDependencies(), "dependencies", "dependency" );
findAndReplaceXpp3DOM( innerCount, root, "reports", (Xpp3Dom) value.getReports() );
updateReporting( value.getReporting(), "reporting", innerCount, root );
updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root );
updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root );
findAndReplaceProperties( innerCount, root, "properties", value.getProperties() );
} // -- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
/**
* 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 );
findAndReplaceSimpleElement( innerCount, root, "id", value.getId(), "default" );
// updateActivation( value.getActivation(), "activation", innerCount, root);
updateBuildBase( value.getBuild(), "build", innerCount, root );
findAndReplaceSimpleLists( innerCount, root, value.getModules(), "modules", "module" );
iterateRepository( innerCount, root, value.getRepositories(), "repositories", "repository" );
iterateRepository( innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository" );
iterateDependency( innerCount, root, value.getDependencies(), "dependencies", "dependency" );
findAndReplaceXpp3DOM( innerCount, root, "reports", (Xpp3Dom) value.getReports() );
updateReporting( value.getReporting(), "reporting", innerCount, root );
updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root );
updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root );
findAndReplaceProperties( innerCount, root, "properties", value.getProperties() );
} // -- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: org.jboss.forge.addon/maven-impl
/**
* 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);
findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
updateActivation(value.getActivation(), "activation", innerCount, root);
updateBuildBase(value.getBuild(), "build", innerCount, root);
findAndReplaceSimpleLists(innerCount, root, value.getModules(), "modules", "module");
iterateRepository(innerCount, root, value.getRepositories(), "repositories", "repository");
iterateRepository(innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository");
iterateDependency(innerCount, root, value.getDependencies(), "dependencies", "dependency");
findAndReplaceXpp3DOM(innerCount, root, "reports", (Xpp3Dom) value.getReports());
updateReporting(value.getReporting(), "reporting", innerCount, root);
updateDependencyManagement(value.getDependencyManagement(), "dependencyManagement", innerCount, root);
updateDistributionManagement(value.getDistributionManagement(), "distributionManagement", innerCount, root);
findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
} // -- 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);
findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
updateActivation( value.getActivation(), "activation", innerCount, root);
updateBuildBase( value.getBuild(), "build", innerCount, root);
findAndReplaceSimpleLists(innerCount, root, value.getModules(), "modules", "module");
iterateRepository(innerCount, root, value.getRepositories(),"repositories","repository");
iterateRepository(innerCount, root, value.getPluginRepositories(),"pluginRepositories","pluginRepository");
iterateDependency(innerCount, root, value.getDependencies(),"dependencies","dependency");
findAndReplaceXpp3DOM(innerCount, root, "reports", (Xpp3Dom)value.getReports());
updateReporting( value.getReporting(), "reporting", innerCount, root);
updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root);
updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root);
findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
} //-- void updateProfile(Profile, String, Counter, Element)
代码示例来源: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);
findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
updateActivation( value.getActivation(), "activation", innerCount, root);
updateBuildBase( value.getBuild(), "build", innerCount, root);
findAndReplaceSimpleLists(innerCount, root, value.getModules(), "modules", "module");
iterateRepository(innerCount, root, value.getRepositories(),"repositories","repository");
iterateRepository(innerCount, root, value.getPluginRepositories(),"pluginRepositories","pluginRepository");
iterateDependency(innerCount, root, value.getDependencies(),"dependencies","dependency");
findAndReplaceXpp3DOM(innerCount, root, "reports", (Xpp3Dom)value.getReports());
updateReporting( value.getReporting(), "reporting", innerCount, root);
updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root);
updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root);
findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
} //-- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: apache/maven-archetype
/**
* 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 );
findAndReplaceSimpleElement( innerCount, root, "id", value.getId(), null );
updateActivation( value.getActivation(), "activation", innerCount, root );
updateBuildBase( value.getBuild(), "build", innerCount, root );
findAndReplaceSimpleLists( innerCount, root, value.getModules(), "modules", "module" );
iterateRepository( innerCount, root, value.getRepositories(), "repositories", "repository" );
iterateRepository( innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository" );
iterateDependency( innerCount, root, value.getDependencies(), "dependencies", "dependency" );
findAndReplaceXpp3DOM( innerCount, root, "reports", (Xpp3Dom) value.getReports() );
updateReporting( value.getReporting(), "reporting", innerCount, root );
updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root );
updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root );
findAndReplaceProperties( innerCount, root, "properties", value.getProperties() );
} // -- void updateProfile(Profile, String, Counter, Element)
代码示例来源:origin: org.sonatype.maven.archetype/archetype-common
innerCount,
root,
value.getPluginRepositories(),
"pluginRepositories",
"pluginRepository"
内容来源于网络,如有侵权,请联系作者删除!