org.apache.maven.model.Model.getDevelopers()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(131)

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

Model.getDevelopers介绍

[英]Method getDevelopers.
[中]方法getDevelopers。

代码示例

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

/**
 * Method removeDeveloper.
 * 
 * @param developer
 */
public void removeDeveloper( Developer developer )
{
  getDevelopers().remove( developer );
} //-- void removeDeveloper( Developer )

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

/**
 * Method addDeveloper.
 * 
 * @param developer
 */
public void addDeveloper( Developer developer )
{
  getDevelopers().add( developer );
} //-- void addDeveloper( Developer )

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

@Override
protected void mergeModel_Developers( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  if ( target.getDevelopers().isEmpty() )
  {
    target.setDevelopers( new ArrayList<>( source.getDevelopers() ) );
  }
}

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

public List getDevelopers()
{
  return getModel().getDevelopers();
}

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

public List<Developer> getDevelopers()
{
  return getModel().getDevelopers();
}

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

protected void mergeModel_Developers( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  List<Developer> src = source.getDevelopers();
  if ( !src.isEmpty() )
  {
    List<Developer> tgt = target.getDevelopers();
    Map<Object, Developer> merged = new LinkedHashMap<>( ( src.size() + tgt.size() ) * 2 );
    for ( Developer element : tgt )
    {
      Object key = getDeveloperKey( element );
      merged.put( key, element );
    }
    for ( Developer element : src )
    {
      Object key = getDeveloperKey( element );
      if ( sourceDominant || !merged.containsKey( key ) )
      {
        merged.put( key, element );
      }
    }
    target.setDevelopers( new ArrayList<>( merged.values() ) );
  }
}

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

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

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

if ( child.getDevelopers().size() == 0 )
  child.setDevelopers( parent.getDevelopers() );

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

if ( child.getDevelopers().size() == 0 )
  child.setDevelopers( parent.getDevelopers() );

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

result.setDevelopers( cloneList( src.getDevelopers(), DEVELOPER_CLONER ) );

代码示例来源:origin: mojohaus/flatten-maven-plugin

@Override
public List<Developer> get( Model model )
{
  return model.getDevelopers();
}

代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo

@Override
public List<Developer> getDevelopers() {
  return delegate.getDevelopers();
}

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

/**
 * Method addDeveloper.
 * 
 * @param developer
 */
public void addDeveloper( Developer developer )
{
  getDevelopers().add( developer );
} //-- void addDeveloper( Developer )

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

/**
 * Method removeDeveloper.
 * 
 * @param developer
 */
public void removeDeveloper( Developer developer )
{
  getDevelopers().remove( developer );
} //-- void removeDeveloper( Developer )

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

@Override
protected void mergeModel_Developers( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  if ( target.getDevelopers().isEmpty() )
  {
    target.setDevelopers( new ArrayList<>( source.getDevelopers() ) );
  }
}

代码示例来源:origin: maven/maven-model

/**
 * Method addDeveloper
 * 
 * @param developer
 */
public void addDeveloper(Developer developer)
{
  if ( !(developer instanceof Developer) )
  {
    throw new ClassCastException( "Model.addDevelopers(developer) parameter must be instanceof " + Developer.class.getName() );
  }
  getDevelopers().add( developer );
} //-- void addDeveloper(Developer)

代码示例来源:origin: maven/maven-model

/**
 * Method removeDeveloper
 * 
 * @param developer
 */
public void removeDeveloper(Developer developer)
{
  if ( !(developer instanceof Developer) )
  {
    throw new ClassCastException( "Model.removeDevelopers(developer) parameter must be instanceof " + Developer.class.getName() );
  }
  getDevelopers().remove( developer );
} //-- void removeDeveloper(Developer)

代码示例来源:origin: takari/polyglot-maven

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

代码示例来源:origin: takari/polyglot-maven

void project(Model model) {
  String name = model.getName();
  if (name == null) {
    name = model.getArtifactId();
  }
  p.printStartBlock( "project", name, model.getUrl() );
  p.println();
  p.println( "model_version", model.getModelVersion() );
  p.println( "inception_year", model.getInceptionYear() );
  id(model);
  parent(model.getParent());
  p.println("packaging", model.getPackaging());
  p.println();
  description(model.getDescription());
  developers( model.getDevelopers() );
  issueManagement( model.getIssueManagement() );
  mailingLists( model.getMailingLists() );
  repositories( toRepositoryArray( model.getRepositories() ) );
  pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) );
  sourceControl( model.getScm() );
  distribution( model.getDistributionManagement() );
  properties( model.getProperties() );
  dependencies( model.getDependencies() );
  modules( model.getModules() );
  managements( model.getDependencyManagement(), model.getBuild() );
  build( model.getBuild(), model.getBuild() );
  profiles( model.getProfiles() );
  reporting( model.getReporting() );
  p.printEndBlock();
}

代码示例来源:origin: org.apache.maven.plugins/maven-project-info-reports-plugin

@Override
public boolean canGenerateReport()
{
  boolean result = super.canGenerateReport();
  if ( result && skipEmptyReport )
  {
    result = !isEmpty( getProject().getModel().getDevelopers() )
        || !isEmpty( getProject().getModel().getContributors() );
  }
  return result;
}

相关文章

Model类方法