Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getExclusions (0.14 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. api/maven-api-core/src/main/java/org/apache/maven/api/Exclusion.java

    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * A dependency exclusion.
     *
     * @since 4.0.0
     * @see DependencyCoordinates#getExclusions()
     */
    @Experimental
    public interface Exclusion {
        @Nullable
        String getGroupId();
    
        @Nullable
        String getArtifactId();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyCoordinatesFactoryRequest.java

    @Experimental
    @Immutable
    public interface DependencyCoordinatesFactoryRequest extends ArtifactCoordinatesFactoryRequest {
    
        String getScope();
    
        boolean isOptional();
    
        @Nonnull
        Collection<Exclusion> getExclusions();
    
        @Nonnull
        static DependencyCoordinatesFactoryRequest build(
                @Nonnull Session session,
                String groupId,
                String artifactId,
                String version,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyCoordinates.java

         */
        @Nullable
        Boolean getOptional();
    
        /**
         * {@return transitive dependencies to exclude}
         */
        @Nonnull
        Collection<Exclusion> getExclusions();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. 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)
Back to top