bundles/org.eclipse.packagedrone.repo.importer.aether/src/org/eclipse/packagedrone/repo/importer/aether/AetherImporter.java
public static Collection<ArtifactResult> processImport ( final Path tmpDir, final ImportConfiguration cfg ) throws ArtifactResolutionException
    {
        Objects.requireNonNull ( tmpDir );
        Objects.requireNonNull ( cfg );

        final RepositoryContext ctx = new RepositoryContext ( tmpDir, cfg.getRepositoryUrl () );

        final Collection<ArtifactRequest> requests = new LinkedList<> ();

        for ( final MavenCoordinates coords : cfg.getCoordinates () )
        {
            // main artifact

            final DefaultArtifact main = new DefaultArtifact ( coords.toString () );
            requests.add ( makeRequest ( ctx.getRepositories (), main ) );
        }

        // process

        return ctx.getSystem ().resolveArtifacts ( ctx.getSession (), requests );
    }
public static Collection<ArtifactResult> processImport ( final Path tmpDir, final ImportConfiguration cfg ) throws ArtifactResolutionException
    {
        Objects.requireNonNull ( tmpDir );
        Objects.requireNonNull ( cfg );

        final RepositoryContext ctx = new RepositoryContext ( tmpDir, cfg.getRepositoryUrl () );

        final Collection<ArtifactRequest> requests = new LinkedList<> ();

        for ( final MavenCoordinates coords : cfg.getCoordinates () )
        {
            // main artifact

            final DefaultArtifact main = new DefaultArtifact ( coords.toString () );
            requests.add ( makeRequest ( ctx.getRepositories (), main ) );
        }

        // process

        return ctx.getSystem ().resolveArtifacts ( ctx.getSession (), requests );
    }
public static Collection < ArtifactResult > processImport ( final Path tmpDir , final ImportConfiguration cfg ) throws ArtifactResolutionException { Objects . requireNonNull ( tmpDir ) ; Objects . requireNonNull ( cfg ) ; final RepositoryContext ctx = new RepositoryContext ( tmpDir , cfg . getRepositoryUrl ( ) ) ; final Collection < ArtifactRequest > requests = new LinkedList <> ( ) ; for ( final MavenCoordinates coords : cfg . getCoordinates ( ) ) { // main artifact final DefaultArtifact main = new DefaultArtifact ( coords . toString ( ) ) ; requests . add ( makeRequest ( ctx . getRepositories ( ) , main ) ) ; } // process return ctx . getSystem ( ) . resolveArtifacts ( ctx . getSession ( ) , requests ) ; }
Process the actual import request
<p>
This method takes the import configuration as is and simply tries to
import it. Not manipulating the list of coordinates any more
</p>
Process the actual import request <p > This method takes the import configuration as is and simply tries to import it . Not manipulating the list of coordinates any more < / p >