org.apache.maven.settings.Settings.isUsePluginRegistry()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.maven.settings.Settings.isUsePluginRegistry()方法的一些代码示例,展示了Settings.isUsePluginRegistry()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Settings.isUsePluginRegistry()方法的具体详情如下:
包路径:org.apache.maven.settings.Settings
类名称:Settings
方法名:isUsePluginRegistry

Settings.isUsePluginRegistry介绍

[英]Get whether Maven should use the plugin-registry.xml file to manage plugin versions.
[中]获取Maven是否应该使用插件注册表。用于管理插件版本的xml文件。

代码示例

代码示例来源:origin: apache/maven

if ( settings.isUsePluginRegistry() != false )
  serializer.startTag( NAMESPACE, "usePluginRegistry" ).text( String.valueOf( settings.isUsePluginRegistry() ) ).endTag( NAMESPACE, "usePluginRegistry" );

代码示例来源:origin: apache/maven

@Override
public void validate( Settings settings, SettingsProblemCollector problems )
  if ( settings.isUsePluginRegistry() )

代码示例来源: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: org.apache.maven/maven-settings

if ( settings.isUsePluginRegistry() != false )
  serializer.startTag( NAMESPACE, "usePluginRegistry" ).text( String.valueOf( settings.isUsePluginRegistry() ) ).endTag( NAMESPACE, "usePluginRegistry" );

代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder

/**
 * Method updateSettings
 * 
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updateSettings(Settings value, String xmlTag, Counter counter, Element element)
{
  Element root = element;
  Counter innerCount = new Counter(counter.getDepth() + 1);
  findAndReplaceSimpleElement(innerCount, root,  "localRepository", value.getLocalRepository(), null);
  findAndReplaceSimpleElement(innerCount, root,  "interactiveMode", value.isInteractiveMode() == true ? null : String.valueOf( value.isInteractiveMode() ), "true");
  findAndReplaceSimpleElement(innerCount, root,  "usePluginRegistry", value.isUsePluginRegistry() == false ? null : String.valueOf( value.isUsePluginRegistry() ), "false");
  findAndReplaceSimpleElement(innerCount, root,  "offline", value.isOffline() == false ? null : String.valueOf( value.isOffline() ), "false");
  iterateProxy(innerCount, root, value.getProxies(),"proxies","proxy");
  iterateServer(innerCount, root, value.getServers(),"servers","server");
  iterateMirror(innerCount, root, value.getMirrors(),"mirrors","mirror");
  iterateProfile(innerCount, root, value.getProfiles(),"profiles","profile");
  findAndReplaceSimpleLists(innerCount, root, value.getActiveProfiles(), "activeProfiles", "activeProfile");
  findAndReplaceSimpleLists(innerCount, root, value.getPluginGroups(), "pluginGroups", "pluginGroup");
} //-- void updateSettings(Settings, String, Counter, Element)

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder

/**
 * Method updateSettings.
 * 
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updateSettings(Settings value, String xmlTag, Counter counter, Element element)
{
  Element root = element;
  Counter innerCount = new Counter(counter.getDepth() + 1);
  findAndReplaceSimpleElement(innerCount, root,  "localRepository", value.getLocalRepository(), null);
  findAndReplaceSimpleElement(innerCount, root,  "interactiveMode", value.isInteractiveMode() == true ? null : String.valueOf( value.isInteractiveMode() ), "true");
  findAndReplaceSimpleElement(innerCount, root,  "usePluginRegistry", value.isUsePluginRegistry() == false ? null : String.valueOf( value.isUsePluginRegistry() ), "false");
  findAndReplaceSimpleElement(innerCount, root,  "offline", value.isOffline() == false ? null : String.valueOf( value.isOffline() ), "false");
  iterateProxy(innerCount, root, value.getProxies(),"proxies","proxy");
  iterateServer(innerCount, root, value.getServers(),"servers","server");
  iterateMirror(innerCount, root, value.getMirrors(),"mirrors","mirror");
  iterateProfile(innerCount, root, value.getProfiles(),"profiles","profile");
  findAndReplaceSimpleLists(innerCount, root, value.getActiveProfiles(), "activeProfiles", "activeProfile");
  findAndReplaceSimpleLists(innerCount, root, value.getPluginGroups(), "pluginGroups", "pluginGroup");
} //-- void updateSettings(Settings, String, Counter, Element)

代码示例来源:origin: io.tesla.maven/maven-settings-builder

public void validate( Settings settings, SettingsProblemCollector problems )
  if ( settings.isUsePluginRegistry() )

代码示例来源:origin: org.apache.maven/maven-settings-builder

@Override
public void validate( Settings settings, SettingsProblemCollector problems )
  if ( settings.isUsePluginRegistry() )

相关文章