本文整理了Java中org.apache.maven.settings.Settings.addActiveProfile()
方法的一些代码示例,展示了Settings.addActiveProfile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Settings.addActiveProfile()
方法的具体详情如下:
包路径:org.apache.maven.settings.Settings
类名称:Settings
方法名:addActiveProfile
[英]Method addActiveProfile.
[中]方法addActiveProfile。
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
public FluentSettingsBuilder withActiveProfile(String string) {
settings.addActiveProfile(string);
return this;
}
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
protected FluentSettingsBuilder withActiveProfile(Profile profile) {
settings.addProfile(profile);
settings.addActiveProfile(profile.getId());
return this;
}
代码示例来源:origin: org.openmrs.maven.plugins/openmrs-sdk-maven-plugin
settings.addActiveProfile(activeProfile);
代码示例来源:origin: io.fabric8/fabric-maven
fallbackProfile.setRepositories(Arrays.asList(central));
settings.addProfile(fallbackProfile);
settings.addActiveProfile("fallback");
内容来源于网络,如有侵权,请联系作者删除!