protected void doExecute()

in src/main/java/org/apache/maven/artifact/ant/DependenciesTask.java [140:169]


    protected void doExecute()
    {

        if ( useScope != null && scopes != null )
        {
            throw new BuildException( "You cannot specify both useScope and scopes in the dependencies task." );
        }

        if ( getPom() != null && !this.dependencies.isEmpty() )
        {
            throw new BuildException( "You cannot specify both dependencies and a pom in the dependencies task" );
        }

        // Try to load dependency refs from an existing Ant cache file
        if ( isCacheDependencyRefs() )
        {
            if ( getDependencyRefsBuildFile() == null )
            {
                setDependencyRefsBuildFile( DEFAULT_ANT_BUILD_FILE );
            }

            if ( checkCachedDependencies() )
            {
                log( "Dependency refs loaded from file: " + getDependencyRefsBuildFile(), Project.MSG_VERBOSE );
                return;
            }
        }

        doExecuteResolution();
    }