• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DependencyResolutionRequest类的典型用法和代码示例

java 2次浏览

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

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

示例1: _handle

点赞 2

import org.apache.maven.project.DependencyResolutionRequest; //导入依赖的package包/类
@Override
protected boolean _handle(DependencyResolutionRequest request) {
    Xpp3Dom root = new Xpp3Dom("DependencyResolutionRequest");
    root.setAttribute("class", request.getClass().getName());
    root.addChild(newElement("project", request.getMavenProject()));

    reporter.print(root);
    return true;
}
 

开发者ID:jenkinsci,
项目名称:pipeline-maven-plugin,
代码行数:10,
代码来源:DependencyResolutionRequestHandler.java

示例2: resolve

点赞 2

import org.apache.maven.project.DependencyResolutionRequest; //导入依赖的package包/类
public DependencyResolutionResult resolve( DependencyResolutionRequest request )
    throws DependencyResolutionException
{
    return new DependencyResolutionResult()
    {

        public List<Dependency> getUnresolvedDependencies()
        {
            return Collections.emptyList();
        }

        public List<Dependency> getResolvedDependencies()
        {
            return Collections.emptyList();
        }

        public List<Exception> getResolutionErrors( Dependency dependency )
        {
            return Collections.emptyList();
        }

        public DependencyNode getDependencyGraph()
        {
            return new DefaultDependencyNode( (Dependency) null );
        }

        public List<Dependency> getDependencies()
        {
            return Collections.emptyList();
        }

        public List<Exception> getCollectionErrors()
        {
            return Collections.emptyList();
        }
    };
}
 

开发者ID:gems-uff,
项目名称:oceano,
代码行数:38,
代码来源:ProjectDependenciesResolverStub.java

示例3: resolve

点赞 2

import org.apache.maven.project.DependencyResolutionRequest; //导入依赖的package包/类
public DependencyResolutionResult resolve( DependencyResolutionRequest request )
    throws DependencyResolutionException
{
    synchronized ( SynchronizedProjectDependenciesResolver.class )
    {
        return super.resolve( request );
    }
}
 

开发者ID:evanchsa,
项目名称:maven-parallel-resolver,
代码行数:9,
代码来源:SynchronizedProjectDependenciesResolver.java

示例4: onEvent

点赞 2

import org.apache.maven.project.DependencyResolutionRequest; //导入依赖的package包/类
@Override
public void onEvent( Object event )
    throws Exception
{
    try
    {
        if ( event instanceof ExecutionEvent )
        {
            executionEventHandler( (ExecutionEvent) event );
        }
        else if ( event instanceof org.eclipse.aether.RepositoryEvent )
        {
            repositoryEventHandler( (RepositoryEvent) event );
        }
        else if ( event instanceof MavenExecutionRequest )
        {
            executionRequestEventHandler( (MavenExecutionRequest) event );
        }
        else if ( event instanceof MavenExecutionResult )
        {
            executionResultEventHandler( (MavenExecutionResult) event );
        }
        else if ( event instanceof DependencyResolutionRequest )
        {
            dependencyResolutionRequest( (DependencyResolutionRequest) event );
        }
        else if ( event instanceof DependencyResolutionResult )
        {
            dependencyResolutionResult( (DependencyResolutionResult) event );
        }
        // The following event type is available since Maven 3.3.1+
        // else if ( event instanceof DefaultSettingsBuildingRequest) {
        // DefaultSettingsBuildingRequest r = null;
        // r.getGlobalSettingsFile();
        // r.getGlobalSettingsSource();
        // r.getSystemProperties();
        // r.getUserSettingsFile();
        // r.getUserSettingsSource();
        //
        // r.setGlobalSettingsFile( globalSettingsFile );
        // r.setGlobalSettingsSource( globalSettingsSource );
        // r.setSystemProperties( systemProperties );
        // r.setUserProperties( userProperties );
        // r.setUserSettingsFile( userSettingsFile );
        // r.setUserSettingsSource( userSettingsSource );
        // }
        // The following event type is available since Maven 3.3.1+
        // else if (event instanceof DefaultSettingsBuildingRequest) {
        //
        // DefaultSettingsBuildingRequest r = null;
        // r.getGlobalSettingsSource().getLocation()
        // }
        // The following event type is available since Maven 3.3.1+
        // else if (event instanceof DefaultToolchainsBuildingRequest) {
        // DefaultToolchainsBuildingRequest r = null;
        // r.getGlobalToolchainsSource().
        // }
        // The following event type is available since Maven 3.3.1+
        // else if (event instanceof DefaultToolchainsBuildingResult) {
        // DefaultToolchainsBuildingResult r = null;
        // r.getEffectiveToolchains();
        // r.getProblems();
        // }
        else
        {
            // TODO: What kind of event we haven't considered?
            LOGGER.debug( "MBTP: Event {}", event.getClass().getCanonicalName() );
        }
    }
    catch ( Exception e )
    {
        LOGGER.error( "MBTP: Exception", e );
    }
}
 

开发者ID:khmarbaise,
项目名称:maven-buildtime-profiler,
代码行数:75,
代码来源:BuildTimeProfiler.java

示例5: dependencyResolutionRequest

点赞 2

import org.apache.maven.project.DependencyResolutionRequest; //导入依赖的package包/类
private void dependencyResolutionRequest( DependencyResolutionRequest event )
{
    LOGGER.debug( "MBTP: dependencyResolutionRequest()" );
}
 

开发者ID:khmarbaise,
项目名称:maven-buildtime-profiler,
代码行数:5,
代码来源:BuildTimeProfiler.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)