本文整理了Java中org.apache.maven.settings.Settings.setOffline()
方法的一些代码示例,展示了Settings.setOffline()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Settings.setOffline()
方法的具体详情如下:
包路径:org.apache.maven.settings.Settings
类名称:Settings
方法名:setOffline
[英]Set indicate whether maven should operate in offline mode full-time.
[中]Set指示maven是否应全职在脱机模式下运行。
代码示例来源:origin: apache/maven
settings.setOffline( getBooleanValue( interpolatedTrimmed( parser.nextText(), "offline" ), "offline", parser, "false" ) );
代码示例来源:origin: apache/maven
/**
* @param settings could be null
* @return a new instance of settings or null if settings was null.
*/
public static Settings copySettings( Settings settings )
{
if ( settings == null )
{
return null;
}
Settings clone = new Settings();
clone.setActiveProfiles( settings.getActiveProfiles() );
clone.setInteractiveMode( settings.isInteractiveMode() );
clone.setLocalRepository( settings.getLocalRepository() );
clone.setMirrors( settings.getMirrors() );
clone.setModelEncoding( settings.getModelEncoding() );
clone.setOffline( settings.isOffline() );
clone.setPluginGroups( settings.getPluginGroups() );
clone.setProfiles( settings.getProfiles() );
clone.setProxies( settings.getProxies() );
clone.setServers( settings.getServers() );
clone.setSourceLevel( settings.getSourceLevel() );
clone.setUsePluginRegistry( settings.isUsePluginRegistry() );
return clone;
}
}
代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder
public FluentSettingsBuilder withOffline(boolean offline) {
settings.setOffline(offline);
return this;
}
代码示例来源:origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven
private void propagateProgrammaticOfflineIntoSettings() {
if (this.programmaticOffline != null && this.settings != null) {
this.settings.setOffline(this.programmaticOffline.booleanValue());
}
}
}
代码示例来源:origin: shrinkwrap/resolver
private void propagateProgrammaticOfflineIntoSettings() {
if (this.programmaticOffline != null && this.settings != null) {
this.settings.setOffline(this.programmaticOffline.booleanValue());
}
}
}
代码示例来源:origin: org.apache.maven/maven-settings
settings.setOffline( getBooleanValue( interpolatedTrimmed( parser.nextText(), "offline" ), "offline", parser, "false" ) );
代码示例来源:origin: org.jboss.shrinkwrap.resolver/shrinkwrap-resolver-impl-maven
private Settings enrichWithOfflineMode(Settings settings) {
String goOffline = SecurityActions.getProperty(ALT_MAVEN_OFFLINE);
if (goOffline != null && goOffline.length() > 0) {
settings.setOffline(Boolean.valueOf(goOffline));
}
return settings;
}
}
代码示例来源:origin: shrinkwrap/resolver
private Settings enrichWithOfflineMode(Settings settings) {
String goOffline = SecurityActions.getProperty(ALT_MAVEN_OFFLINE);
if (goOffline != null && goOffline.length() > 0) {
settings.setOffline(Boolean.valueOf(goOffline));
}
return settings;
}
}
代码示例来源:origin: com.github.igor-suhorukov/aether-grape
public MavenSettings readSettings() {
Settings settings = loadSettings();
SettingsDecryptionResult decrypted = decryptSettings(settings);
if (!decrypted.getProblems().isEmpty()) {
Log.error(
"Maven settings decryption failed. Some Maven repositories may be inaccessible");
// Continue - the encrypted credentials may not be used
}
if(Boolean.getBoolean("mavenSettings.offline")) {
settings.setOffline(true);
}
return new MavenSettings(settings, decrypted);
}
代码示例来源:origin: org.codehaus.mevenide/nb-project
public void applyValues(Settings sett) {
sett.setOffline(cbOffline.isSelected());
String locrepo = txtLocalRepository.getText().trim();
if (locrepo.length() == 0) {
代码示例来源:origin: org.jvnet.hudson/maven-embedder
settings.setOffline( offline );
代码示例来源:origin: org.twdata.maven/maven-cli-plugin
session.getSettings().setOffline(phaseCall.isOffline() ? true : pluginExecutionOfflineMode);
ProfileManager profileManager = new DefaultProfileManager(session.getContainer(), phaseCall.getProperties());
内容来源于网络,如有侵权,请联系作者删除!