Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 335 for isSnapshot (0.14 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/GroupRepositoryMetadata.java

                plugin.setName(name);
    
                getMetadata().addPlugin(plugin);
            }
        }
    
        public Object getKey() {
            return groupId;
        }
    
        public boolean isSnapshot() {
            return false;
        }
    
        public ArtifactRepository getRepository() {
            return null;
        }
    
        public void setRepository(ArtifactRepository remoteRepository) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

            return new DefaultVersionRange(versionScheme, range);
        }
    
        @Override
        public boolean isSnapshot(String version) {
            return checkSnapshot(version);
        }
    
        public static boolean checkSnapshot(String version) {
            return version.endsWith(SNAPSHOT) || SNAPSHOT_TIMESTAMP.matcher(version).matches();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                ArtifactRepository localRepository)
                throws RepositoryMetadataStoreException {
            // TODO this could be a lot nicer... should really be in the snapshot transformation?
            if (metadata.isSnapshot()) {
                Metadata prevMetadata = metadata.getMetadata();
    
                for (ArtifactRepository repository : previousMetadata.keySet()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java

            request.addArtifact(mainArtifact);
    
            String versionKey = artifact.getGroupId() + ':' + artifact.getArtifactId();
            String snapshotKey = null;
            if (artifact.isSnapshot()) {
                snapshotKey = versionKey + ':' + artifact.getBaseVersion();
                request.addMetadata(relatedMetadata.get(snapshotKey));
            }
            request.addMetadata(relatedMetadata.get(versionKey));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Artifact.java

         */
        @Nonnull
        String getExtension();
    
        /**
         * Determines whether this artifact uses a snapshot version.
         *
         * @return {@code true} if the artifact is a snapshot, {@code false} otherwise
         * @see org.apache.maven.api.Session#isVersionSnapshot(String)
         */
        boolean isSnapshot();
    
        /**
         * {@return coordinates with the same identifiers as this artifact}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                        // if the POM didn't exist, retry if any repo is configured to always update
                        boolean snapshot = pomArtifact.isSnapshot();
                        for (ArtifactRepository repository : remoteRepositories) {
                            ArtifactRepositoryPolicy policy =
                                    snapshot ? repository.getSnapshots() : repository.getReleases();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            // Here, we need to determine which policy to use. Release updateInterval will be used when
            // the metadata refers to a release artifact or meta-version, and snapshot updateInterval will be used when
            // it refers to a snapshot artifact or meta-version.
            // NOTE: Release metadata includes version information about artifacts that have been released, to allow
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

            this.groupId = groupId;
        }
    
        @Override
        public void setArtifactId(String artifactId) {
            this.artifactId = artifactId;
        }
    
        @Override
        public boolean isSnapshot() {
            return getBaseVersion() != null
                    && (getBaseVersion().endsWith(SNAPSHOT_VERSION)
                            || getBaseVersion().equals(LATEST_VERSION));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

    import java.util.Map;
    import java.util.regex.Matcher;
    
    import org.apache.maven.artifact.versioning.VersionRange;
    
    /**
     * ArtifactUtils
     */
    public final class ArtifactUtils {
    
        public static boolean isSnapshot(String version) {
            if (version != null) {
                if (version.regionMatches(
                        true,
                        version.length() - Artifact.SNAPSHOT_VERSION.length(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        /**
         * Checks whether a given artifact version is considered a {@code SNAPSHOT} or not.
         * <p>
         * Shortcut for {@code getService(ArtifactManager.class).isSnapshot(...)}.
         * <p>
         * In case there is {@link Artifact} in scope, the recommended way to perform this check is
         * use of {@link Artifact#isSnapshot()} instead.
         *
         * @param version artifact version
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top