本文整理了Java中org.apache.maven.settings.Profile.setId()
方法的一些代码示例,展示了Profile.setId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Profile.setId()
方法的具体详情如下:
包路径:org.apache.maven.settings.Profile
类名称:Profile
方法名:setId
暂无
代码示例来源:origin: apache/maven
profile.setId( interpolatedTrimmed( parser.nextText(), "id" ) );
代码示例来源:origin: apache/maven
profile.setId( modelProfile.getId() );
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
/**
* Set the id field.
* @param id
*/
public FluentProfileBuilder withId(String id) {
profile.setId(id);
return this;
}
代码示例来源:origin: org.apache.maven/maven-settings
profile.setId( interpolatedTrimmed( parser.nextText(), "id" ) );
代码示例来源:origin: io.teecube.t3/t3-site-enhancer
public org.apache.maven.settings.Profile getFullSampleProfile(String id, Properties profileProperties) {
org.apache.maven.settings.Profile profile = new org.apache.maven.settings.Profile();
profile.setId(id);
for (GlobalParameter globalParameter : globalParameters) {
if (!globalParameter.valueGuessedByDefault) {
String value;
if (profileProperties.containsKey(globalParameter.property)) {
value = profileProperties.getProperty(globalParameter.property);
} else {
value = "[...]";
}
profile.getProperties().put(globalParameter.property, value);
}
}
return profile;
}
代码示例来源:origin: io.fabric8/fabric-maven
central.setId("central");
central.setUrl("http://repo1.maven.org/maven2");
fallbackProfile.setId("fallback");
fallbackProfile.setRepositories(Arrays.asList(central));
settings.addProfile(fallbackProfile);
代码示例来源:origin: org.codehaus.mevenide/nb-project
if (repoRoot != null) {
myProfile.setId(PROFILE_PUBLIC);//NOI18N
Repository repo = new Repository();
repo.setUrl("file://" + repoRoot.getAbsolutePath());//NOI18N
内容来源于网络,如有侵权,请联系作者删除!