Examples of ScopeDependencyFilter


Examples of org.sonatype.aether.util.filter.ScopeDependencyFilter

              throw new MojoExecutionException( e.getMessage(), e );
            }

            DependencyRequest dependencyRequest = new DependencyRequest( node, null );
            Set<String> included = Collections.singleton("runtime");
            dependencyRequest.setFilter(new ScopeDependencyFilter(included, Collections.EMPTY_SET));

            try {
                repoSystem.resolveDependencies( repoSession, dependencyRequest  );
            } catch (DependencyResolutionException e) {
                throw new MojoExecutionException( e.getMessage(), e );
View Full Code Here

Examples of org.sonatype.aether.util.filter.ScopeDependencyFilter

            configWriter.write("\n# Auto-generated 'code' entries\n");
            for(Dependency dep : project.getDependencies())
            {
                String depString = dep.getGroupId()+":"+dep.getArtifactId()+":"+dep.getVersion();
                CollectRequest request = new CollectRequest(new org.sonatype.aether.graph.Dependency(new DefaultArtifact(depString), dep.getScope()),projectRepos);
                DependencyResult result = repoSystem.resolveDependencies(repoSession, new DependencyRequest(request, new ScopeDependencyFilter("test","provided")));

                for(ArtifactResult dependency : result.getArtifactResults())
                {
                    File d = dependency.getArtifact().getFile();
                    configWriter.write("code = code/"+d.getName() +"\n");
View Full Code Here

Examples of org.sonatype.aether.util.filter.ScopeDependencyFilter

        if ( pluginArtifact == null )
        {
            pluginArtifact = toArtifact( plugin, session );
        }

        DependencyFilter collectionFilter = new ScopeDependencyFilter( "provided", "test" );

        DependencyFilter resolutionFilter =
            new ExclusionsDependencyFilter( artifactFilterManager.getCoreArtifactExcludes() );
        resolutionFilter = AndDependencyFilter.newInstance( resolutionFilter, dependencyFilter );
        resolutionFilter = new AndDependencyFilter( collectionFilter, resolutionFilter );
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.