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

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

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

Settings.getPluginGroups介绍

[英]Method getPluginGroups.
[中]方法GetPlugingGroup。

代码示例

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

/**
 * Method addPluginGroup.
 * 
 * @param string
 */
public void addPluginGroup( String string )
{
  getPluginGroups().add( string );
} //-- void addPluginGroup( String )

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

/**
 * Method removePluginGroup.
 * 
 * @param string
 */
public void removePluginGroup( String string )
{
  getPluginGroups().remove( string );
} //-- void removePluginGroup( String )

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

List<String> dominantPluginGroupIds = dominant.getPluginGroups();
List<String> recessivePluginGroupIds = recessive.getPluginGroups();

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

if ( ( settings.getPluginGroups() != null ) && ( settings.getPluginGroups().size() > 0 ) )
  for ( Iterator iter = settings.getPluginGroups().iterator(); iter.hasNext(); )

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

/**
 * Method removePluginGroup.
 * 
 * @param string
 */
public void removePluginGroup( String string )
{
  getPluginGroups().remove( string );
} //-- void removePluginGroup( String )

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

List<String> pluginGroups = settings.getPluginGroups();

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

/**
 * Method addPluginGroup.
 * 
 * @param string
 */
public void addPluginGroup( String string )
{
  getPluginGroups().add( string );
} //-- void addPluginGroup( String )

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

request.setPluginGroups( settings.getPluginGroups() );

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

request.setPluginGroups( settings.getPluginGroups() );

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

if ( ( settings.getPluginGroups() != null ) && ( settings.getPluginGroups().size() > 0 ) )
  for ( Iterator iter = settings.getPluginGroups().iterator(); iter.hasNext(); )

代码示例来源:origin: org.codehaus.mevenide/grammar

public Set<String> getAvailableGoals() {
  Set<String> cached = goalsRef != null ? goalsRef.get() :null;
  if (cached == null) {
    File expandedPath = InstalledFileLocator.getDefault().locate("maven2/maven-plugins-xml", null, false); //NOI18N
    assert expandedPath != null : "Shall have path expanded.."; //NOI18N
    //TODO we should have a "resolved instance here with defaults injected correctly
    List<String> groups = MavenSettingsSingleton.getInstance().getSettings().getPluginGroups();
    groups.add("org.apache.maven.plugins"); //NOI18N
    groups.add("org.codehaus.mojo"); //NOI18N
    cached = new TreeSet<String>();
    for (String group : groups) {
      File folder = new File(expandedPath, group.replace('.', File.separatorChar));
      checkFolder(folder, cached, false);
    }
    goalsRef = new WeakReference<Set<String>>(cached);
  }
  return cached;
  
}

代码示例来源:origin: org.openmrs.maven.plugins/openmrs-sdk-maven-plugin

settings = new Settings();
String pluginGroup = other.getPluginGroups().get(0);
if (settings.getPluginGroups() == null) {
  settings.setPluginGroups(new ArrayList<String>());
if (!settings.getPluginGroups().contains(pluginGroup)) {
  settings.addPluginGroup(pluginGroup);

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

List<String> dominantPluginGroupIds = dominant.getPluginGroups();
List<String> recessivePluginGroupIds = recessive.getPluginGroups();

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

List<String> dominantPluginGroupIds = dominant.getPluginGroups();
List<String> recessivePluginGroupIds = recessive.getPluginGroups();

代码示例来源: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: io.tesla.maven/maven-settings-builder

List<String> pluginGroups = settings.getPluginGroups();

代码示例来源: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: org.kie.workbench.services/kie-wb-common-compiler-core

request.setPluginGroups(settings.getPluginGroups());

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

request.setPluginGroups( settings.getPluginGroups() );

相关文章