当前位置: 首页>>代码示例>>Java>>正文


Java ModelResolver类代码示例

本文整理汇总了Java中org.apache.maven.model.resolution.ModelResolver的典型用法代码示例。如果您正苦于以下问题:Java ModelResolver类的具体用法?Java ModelResolver怎么用?Java ModelResolver使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ModelResolver类属于org.apache.maven.model.resolution包,在下文中一共展示了ModelResolver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configureResolver

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
private void configureResolver( ModelResolver modelResolver, Model model, DefaultModelProblemCollector problems )
{
    if ( modelResolver == null )
    {
        return;
    }

    problems.setSource( model );

    List<Repository> repositories = model.getRepositories();

    for ( Repository repository : repositories )
    {
        try
        {
            modelResolver.addRepository( repository );
        }
        catch ( InvalidRepositoryException e )
        {
            problems.add( new ModelProblemCollectorRequest(Severity.ERROR, Version.BASE)
                    .setMessage( "Invalid repository " + repository.getId() + ": " + e.getMessage())
                    .setLocation(repository.getLocation( "" ))
                    .setException(e) );
        }
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:27,代码来源:DefaultModelBuilder.java

示例2: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
    return new NBRepositoryModelResolver(this);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:NBRepositoryModelResolver.java

示例3: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
  return new DefaultModelResolver(aether, repositories, ruleNameToModelSource, modelBuilder);
}
 
开发者ID:bazelbuild,项目名称:migration-tooling,代码行数:5,代码来源:DefaultModelResolver.java

示例4: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
    return new SimpleModelResolver(this);
}
 
开发者ID:GateNLP,项目名称:gate-core,代码行数:5,代码来源:SimpleModelResolver.java

示例5: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
    return new RepositoryModelResolver( managedRepository,  pathTranslator, wagonFactory, remoteRepositories, 
                                        networkProxyMap, targetRepository );
}
 
开发者ID:ruikom,项目名称:apache-archiva,代码行数:7,代码来源:RepositoryModelResolver.java

示例6: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
  return this;
}
 
开发者ID:mopemope,项目名称:meghanada-server,代码行数:5,代码来源:POMParser.java

示例7: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
	return this;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:DependencyManagementBomTransformation.java

示例8: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public ModelResolver newCopy()
{
    return new FlattenModelResolver( this );
}
 
开发者ID:mojohaus,项目名称:flatten-maven-plugin,代码行数:8,代码来源:FlattenModelResolver.java

示例9: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
    return new MavenModelResolver(this);
}
 
开发者ID:sourcegraph,项目名称:srclib-java,代码行数:5,代码来源:MavenProject.java

示例10: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
	return this;
}
 
开发者ID:bnavetta,项目名称:tycho-gen,代码行数:6,代码来源:RepoModelResolver.java

示例11: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
   return new MavenModelResolver(this);
}
 
开发者ID:forge,项目名称:furnace,代码行数:6,代码来源:MavenModelResolver.java

示例12: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver newCopy()
{
    return new DefaultModelResolver( this );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:5,代码来源:DefaultModelResolver.java

示例13: newCopy

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver newCopy()
{
    return new ProjectModelResolver( this );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:5,代码来源:ProjectModelResolver.java

示例14: getModelResolver

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver getModelResolver()
{
    return this.modelResolver;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:5,代码来源:DefaultModelBuildingRequest.java

示例15: setModelResolver

import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public DefaultModelBuildingRequest setModelResolver( ModelResolver modelResolver )
{
    this.modelResolver = modelResolver;

    return this;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:7,代码来源:DefaultModelBuildingRequest.java


注:本文中的org.apache.maven.model.resolution.ModelResolver类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。