Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ArtifactVersion (0.08 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    import org.apache.maven.artifact.versioning.ArtifactVersion;
    import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
    
    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                }
                return buf.toString();
            }
        }
    
        public ArtifactVersion matchVersion(List<ArtifactVersion> versions) {
            // TODO could be more efficient by sorting the list and then moving along the restrictions in order?
    
            ArtifactVersion matched = null;
            for (ArtifactVersion version : versions) {
                if (containsVersion(version)) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 19K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java

     *
     */
    public class Restriction {
        private final ArtifactVersion lowerBound;
    
        private final boolean lowerBoundInclusive;
    
        private final ArtifactVersion upperBound;
    
        private final boolean upperBoundInclusive;
    
        public static final Restriction EVERYTHING = new Restriction(null, false, null, false);
    
        public Restriction(
                ArtifactVersion lowerBound,
                boolean lowerBoundInclusive,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

                    + artifactVersion.getMinorVersion() + "', '" + artifactVersion.getIncrementalVersion() + "', '"
                    + artifactVersion.getBuildNumber() + "', '" + artifactVersion.getQualifier() + "'), ";
            assertEquals(major, artifactVersion.getMajorVersion(), parsed + "check major version");
            assertEquals(minor, artifactVersion.getMinorVersion(), parsed + "check minor version");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolver.java

    import org.apache.maven.artifact.versioning.ArtifactVersion;
    import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
    
    /**
     * Resolves conflicting artifacts by always selecting the oldest declaration. Oldest is defined as the
     * declaration whose version is less according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("oldest")
    @Singleton
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/metadata/TestMetadataSource.java

        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersions(
                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
                throws ArtifactMetadataRetrievalException {
            throw new UnsupportedOperationException("Cannot get available versions in this test case");
        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            if (this == other) {
                return true;
            }
    
            if (other instanceof ArtifactVersion artifactVersion) {
                return compareTo(artifactVersion) == 0;
            }
    
            return false;
        }
    
        @Override
        public int compareTo(ArtifactVersion otherVersion) {
            if (otherVersion instanceof DefaultArtifactVersion defaultArtifactVersion) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/SimpleArtifactMetadataSource.java

        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersions(
                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) {
            return Collections.singletonList(new DefaultArtifactVersion("10.1.3"));
        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java

    @Singleton
    public class DefaultRuntimeInformation implements RuntimeInformation, Initializable {
    
        @Inject
        private org.apache.maven.rtinfo.RuntimeInformation rtInfo;
    
        private ArtifactVersion applicationVersion;
    
        @Override
        public ArtifactVersion getApplicationVersion() {
            return applicationVersion;
        }
    
        @Override
        public void initialize() throws InitializationException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataSource.java

                throws ArtifactMetadataRetrievalException;
    
        List<ArtifactVersion> retrieveAvailableVersions(MetadataResolutionRequest request)
                throws ArtifactMetadataRetrievalException;
    
        @Override
        List<ArtifactVersion> retrieveAvailableVersions(
                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top