Examples of AddScopedDependenciesTask


Examples of org.jboss.shrinkwrap.resolver.impl.maven.task.AddScopedDependenciesTask

                new Object[] { inputDirectory, outputDirectory });
        }

        // in order to compile sources, we need to resolve dependencies first
        // so we have a classpath available
        new AddScopedDependenciesTask(ScopeType.values()).execute(session);
        final MavenResolutionStrategy scopeStrategy = new AcceptScopesStrategy(scopes);
        final Collection<MavenResolvedArtifact> artifactResults = session.resolveDependencies(scopeStrategy);

        for (MavenResolvedArtifact artifact : artifactResults) {
            String classpathEntry = artifact.asFile().getAbsolutePath();
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.impl.maven.task.AddScopedDependenciesTask

        return this.importRuntimeDependencies();
    }

    @SuppressWarnings("unchecked")
    public EQUIPPEDRESOLVESTAGETYPE importAnyDependencies(ScopeType... scopes) {
        new AddScopedDependenciesTask(scopes).execute(this.getMavenWorkingSession());
        return (EQUIPPEDRESOLVESTAGETYPE) this;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.