Examples of MavenResolutionStrategy


Examples of org.jboss.shrinkwrap.resolver.api.maven.strategy.MavenResolutionStrategy

                false);

        // when
        final MavenResolvedArtifact[] resolvedArtifactInfos = Maven.resolver()
                .loadPomFromFile("target/poms/test-dependency.xml").addDependencies(dependency).resolve()
                .using(new MavenResolutionStrategy() {

                    @Override
                    public TransitiveExclusionPolicy getTransitiveExclusionPolicy() {
                        return new TransitiveExclusionPolicy() {
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.strategy.MavenResolutionStrategy

        return processor.getResultingArchive().as(type);
    }

    @Override
    public PomEquippedMavenImporter importBuildOutput() {
        MavenResolutionStrategy strategy = new AcceptScopesStrategy(ScopeType.COMPILE, ScopeType.IMPORT, ScopeType.RUNTIME,
                ScopeType.SYSTEM);
        return importBuildOutput(strategy);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.strategy.MavenResolutionStrategy

        }

        // 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();
            configuration.addClasspathEntry(classpathEntry);
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.