Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getOptional (0.06 sec)

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

                    && Objects.equals(d1.getScope(), d2.getScope())
                    && Objects.equals(d1.getSystemPath(), d2.getSystemPath())
                    && Objects.equals(d1.getOptional(), d2.getOptional())
                    && equals(d1.getExclusions(), d2.getExclusions());
        }
    
        private boolean equals(Collection<Exclusion> ce1, Collection<Exclusion> ce2) {
            if (ce1.size() == ce2.size()) {
    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/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

                exclusions.add(convert(exclusion));
            }
    
            return new Dependency(
                    artifact,
                    dependency.getScope(),
                    dependency.getOptional() != null ? dependency.isOptional() : null,
                    exclusions);
        }
    
        private Exclusion convert(org.apache.maven.model.Exclusion exclusion) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

                    String scope = dependency.getScope() != null ? dependency.getScope() : "";
                    return session.requireDependencyScope(scope);
                }
    
                @Override
                public Boolean getOptional() {
                    return dependency.isOptional();
                }
    
                @Nonnull
                @Override
                public Collection<Exclusion> getExclusions() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                    .collect(Collectors.toList());
    
            return new Dependency(
                    artifact,
                    dependency.getScope(),
                    dependency.getOptional() != null ? dependency.isOptional() : null,
                    exclusions);
        }
    
        private static Exclusion toExclusion(org.apache.maven.model.Exclusion exclusion) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                if (request.getValidationLevel() >= ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0) {
                    validateBoolean(
                            prefix, "optional", problems, errOn30, Version.V20, d.getOptional(), d.getManagementKey(), d);
    
                    if (!management) {
                        validateVersion(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

        public boolean isSelectedVersionKnown() throws OverConstrainedVersionException {
            return artifact.isSelectedVersionKnown();
        }
    
        /** {@inheritDoc} */
        public void setOptional(boolean optional) {
            artifact.setOptional(optional);
        }
    
        /** {@inheritDoc} */
        public int hashCode() {
            int result = 17;
    
            result = 37 * result + getGroupId().hashCode();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

        void setRelease(boolean release);
    
        List<ArtifactVersion> getAvailableVersions();
    
        void setAvailableVersions(List<ArtifactVersion> versions);
    
        boolean isOptional();
    
        void setOptional(boolean optional);
    
        ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException;
    
        boolean isSelectedVersionKnown() throws OverConstrainedVersionException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        }
    
        @Override
        public boolean isSelectedVersionKnown() throws OverConstrainedVersionException {
            return versionRange.isSelectedVersionKnown(this);
        }
    
        @Override
        public void setOptional(boolean optional) {
            this.optional = optional;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top