Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getExclusions (0.37 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

            if (dependency.isOptional()) {
                stringBuilder.append("[optional]");
            }
            if (!dependency.getExclusions().isEmpty()) {
                stringBuilder.append("[").append(dependency.getExclusions().size()).append(" exclusions]");
            }
            return stringBuilder.toString();
        }
    
        private boolean equals(Dependency d1, Dependency d2) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

         */
        private void checkUtSimpleArtifactDependencies(Dependency dep1, Dependency dep2) {
            assertEquals("compile", dep1.getScope());
            assertFalse(dep1.isOptional());
            assertEquals(0, dep1.getExclusions().size());
            Artifact depArtifact = dep1.getArtifact();
            assertEquals("ut.simple", depArtifact.getGroupId());
            assertEquals("dependency", depArtifact.getArtifactId());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultDependencyManagementInjector.java

                    Dependency source,
                    boolean sourceDominant,
                    Map<Object, Object> context) {
                List<Exclusion> tgt = target.getExclusions();
                if (tgt.isEmpty()) {
                    List<Exclusion> src = source.getExclusions();
                    builder.exclusions(src);
                }
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

            List<String> exclusions = new ArrayList<String>();
    
            for ( Dependency d : project.getDependencies() )
            {
                if ( d.getExclusions() != null )
                {
                    for ( Exclusion e : d.getExclusions() )
                    {
                        exclusions.add(  e.getGroupId() + ":" + e.getArtifactId() );
                    }
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

                    return dependency.isOptional();
                }
    
                @Nonnull
                @Override
                public Collection<Exclusion> getExclusions() {
                    return new MappedCollection<>(dependency.getExclusions(), this::toExclusion);
                }
    
                private Exclusion toExclusion(org.apache.maven.api.model.Exclusion exclusion) {
                    return new Exclusion() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

                    dependency.getVersion(),
                    props,
                    stereotype);
    
            List<Exclusion> exclusions = new ArrayList<>(dependency.getExclusions().size());
            for (org.apache.maven.model.Exclusion exclusion : dependency.getExclusions()) {
                exclusions.add(convert(exclusion));
            }
    
            return new Dependency(
                    artifact,
                    dependency.getScope(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            ArtifactFilter effectiveFilter = inheritedFilter;
    
            if (!dependency.getExclusions().isEmpty()) {
                effectiveFilter = new ExclusionArtifactFilter(dependency.getExclusions());
    
                if (inheritedFilter != null) {
                    effectiveFilter = new AndArtifactFilter(Arrays.asList(inheritedFilter, effectiveFilter));
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                artifact.setFile(new File(d.getSystemPath()));
            }
    
            if (!d.getExclusions().isEmpty()) {
                artifact.setDependencyFilter(new ExclusionArtifactFilter(d.getExclusions()));
            }
    
            return artifact;
        }
    
        // DefaultProjectBuilder
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                artifact.setFile(new File(d.getSystemPath()));
            }
    
            if (!d.getExclusions().isEmpty()) {
                List<String> exclusions = new ArrayList<>();
    
                for (Exclusion exclusion : d.getExclusions()) {
                    exclusions.add(exclusion.getGroupId() + ':' + exclusion.getArtifactId());
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                    dependency.getClassifier(),
                    null,
                    dependency.getVersion(),
                    props,
                    stereotype);
    
            List<Exclusion> exclusions = dependency.getExclusions().stream()
                    .map(RepositoryUtils::toExclusion)
                    .collect(Collectors.toList());
    
            return new Dependency(
                    artifact,
                    dependency.getScope(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top