Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for setSnapshots (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                List<ArtifactRepositoryPolicy> snapshotPolicies = new ArrayList<>(aliasedRepos.size());
    
                for (ArtifactRepository aliasedRepo : aliasedRepos) {
                    snapshotPolicies.add(aliasedRepo.getSnapshots());
                }
    
                ArtifactRepositoryPolicy snapshotPolicy = getEffectivePolicy(snapshotPolicies);
    
                ArtifactRepository aliasedRepo = aliasedRepos.get(0);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                                    final Versioning repaired = new Versioning();
                                    repaired.setLastUpdated(versioning.getLastUpdated());
                                    repaired.setSnapshot(new Snapshot());
                                    repaired.getSnapshot().setLocalCopy(true);
                                    versioning = repaired;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

                        if (releases != null) {
                            sb.append(", releases=").append(releases.isEnabled());
                        }
    
                        ArtifactRepositoryPolicy snapshots = remoteRepository.getSnapshots();
                        if (snapshots != null) {
                            sb.append(", snapshots=").append(snapshots.isEnabled());
                        }
    
                        sb.append(')');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            }
    
            public String getId() {
                return repository.getId();
            }
    
            public void setId(String id) {}
    
            public ArtifactRepositoryPolicy getSnapshots() {
                return null;
            }
    
            public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy) {}
    
            public ArtifactRepositoryPolicy getReleases() {
                return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java

            return layout;
        }
    
        public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots) {
            this.snapshots = snapshots;
        }
    
        public ArtifactRepositoryPolicy getSnapshots() {
            return snapshots;
        }
    
        public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases) {
            this.releases = releases;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

        @Override
        public boolean isUpdateRequired(Artifact artifact, ArtifactRepository repository) {
            File file = artifact.getFile();
    
            ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() : repository.getReleases();
    
            if (!policy.isEnabled()) {
                if (getLogger().isDebugEnabled()) {
                    getLogger()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top