本文整理汇总了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) );
}
}
}
示例2: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
return new NBRepositoryModelResolver(this);
}
示例3: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
return new DefaultModelResolver(aether, repositories, ruleNameToModelSource, modelBuilder);
}
示例4: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
return new SimpleModelResolver(this);
}
示例5: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
return new RepositoryModelResolver( managedRepository, pathTranslator, wagonFactory, remoteRepositories,
networkProxyMap, targetRepository );
}
示例6: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
return this;
}
示例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 );
}
示例9: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy() {
return new MavenModelResolver(this);
}
示例10: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
return this;
}
示例11: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
@Override
public ModelResolver newCopy()
{
return new MavenModelResolver(this);
}
示例12: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver newCopy()
{
return new DefaultModelResolver( this );
}
示例13: newCopy
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver newCopy()
{
return new ProjectModelResolver( this );
}
示例14: getModelResolver
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public ModelResolver getModelResolver()
{
return this.modelResolver;
}
示例15: setModelResolver
import org.apache.maven.model.resolution.ModelResolver; //导入依赖的package包/类
public DefaultModelBuildingRequest setModelResolver( ModelResolver modelResolver )
{
this.modelResolver = modelResolver;
return this;
}