Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for setSnapshots (0.08 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java

            repo.setLayout(profileXmlRepo.getLayout());
            repo.setName(profileXmlRepo.getName());
            repo.setUrl(profileXmlRepo.getUrl());
    
            if (profileXmlRepo.getSnapshots() != null) {
                repo.setSnapshots(convertRepositoryPolicy(profileXmlRepo.getSnapshots()));
            }
            if (profileXmlRepo.getReleases() != null) {
                repo.setReleases(convertRepositoryPolicy(profileXmlRepo.getReleases()));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            repository.setId(RepositorySystem.DEFAULT_REMOTE_REPO_ID);
            repository.setUrl("file://" + repoDir.toURI().getPath());
            repository.setReleases(policy);
            repository.setSnapshots(policy);
    
            return Arrays.asList(repositorySystem.buildArtifactRepository(repository));
        }
    
        protected ArtifactRepository getLocalRepository() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            repository.setId(MavenRepositorySystem.DEFAULT_REMOTE_REPO_ID);
            repository.setUrl("file://" + repoDir.toURI().getPath());
            repository.setReleases(policy);
            repository.setSnapshots(policy);
    
            return Arrays.asList(mavenRepositorySystem.buildArtifactRepository(repository));
        }
    
        protected List<ArtifactRepository> getPluginArtifactRepositories() throws InvalidRepositoryException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            modelRepository.setUrl(settingsRepository.getUrl());
            modelRepository.setReleases(fromSettingsRepositoryPolicy(settingsRepository.getReleases()));
            modelRepository.setSnapshots(fromSettingsRepositoryPolicy(settingsRepository.getSnapshots()));
            return modelRepository;
        }
    
        public static org.apache.maven.model.RepositoryPolicy fromSettingsRepositoryPolicy(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

                ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy(repository.getReleases());
                policy.merge(repository.getSnapshots());
                return policy;
            } else if ((nature & RepositoryMetadata.SNAPSHOT) != 0) {
                return repository.getSnapshots();
            } else {
                return repository.getReleases();
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java

        @Override
        public ArtifactRepositoryPolicy getReleases() {
            return userLocalArtifactRepository.getReleases();
        }
    
        @Override
        public ArtifactRepositoryPolicy getSnapshots() {
            return userLocalArtifactRepository.getSnapshots();
        }
    
        @Override
        public String getKey() {
            return userLocalArtifactRepository.getKey();
        }
    
        @Override
        public String getUrl() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                    && Objects.equals(r1.getUrl(), r2.getUrl())
                    && repositoryPolicyEquals(r1.getReleases(), r2.getReleases())
                    && repositoryPolicyEquals(r1.getSnapshots(), r2.getSnapshots());
        }
    
        private static boolean repositoryPolicyEquals(ArtifactRepositoryPolicy p1, ArtifactRepositoryPolicy p2) {
            if (p1 == p2) {
                return true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/LocalSnapshotMetadata.java

        private static Metadata createMetadata(Artifact artifact) {
            Snapshot snapshot = new Snapshot();
            snapshot.setLocalCopy(true);
            Versioning versioning = new Versioning();
            versioning.setSnapshot(snapshot);
    
            Metadata metadata = new Metadata();
            metadata.setVersioning(versioning);
            metadata.setGroupId(artifact.getGroupId());
            metadata.setArtifactId(artifact.getArtifactId());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

        void mergeSnapshotWithEmptyList() throws Exception {
            Snapshot snapshot = new Snapshot();
            snapshot.setBuildNumber(3);
            snapshot.setTimestamp("20200710.072412");
            target.getVersioning().setSnapshot(snapshot);
            target.getVersioning().setLastUpdated("20200921071745");
            SnapshotVersion sv = new SnapshotVersion();
            sv.setClassifier("sources");
            sv.setExtension("jar");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

                snapshot.setTimestamp(utcDateFormatter.format(timestamp));
    
                Versioning versioning = new Versioning();
                versioning.setSnapshot(snapshot);
                versioning.setLastUpdatedTimestamp(timestamp);
                lastUpdated = versioning.getLastUpdated();
    
                metadata.setVersioning(versioning);
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top