Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for ArtifactRepositoryPolicy (0.21 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            return effectiveRepositories;
        }
    
        private ArtifactRepositoryPolicy getEffectivePolicy(Collection<ArtifactRepositoryPolicy> policies) {
            ArtifactRepositoryPolicy effectivePolicy = null;
    
            for (ArtifactRepositoryPolicy policy : policies) {
                if (effectivePolicy == null) {
                    effectivePolicy = new ArtifactRepositoryPolicy(policy);
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

                }
            }
    
            return new RepositoryPolicy(enabled, updates, checksums);
        }
    
        public static String toRepositoryChecksumPolicy(final String artifactRepositoryPolicy) {
            switch (artifactRepositoryPolicy) {
                case RepositoryPolicy.CHECKSUM_POLICY_FAIL:
                    return RepositoryPolicy.CHECKSUM_POLICY_FAIL;
                case RepositoryPolicy.CHECKSUM_POLICY_IGNORE:
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

        public int getNature() {
            return RELEASE;
        }
    
        public ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository) {
            int nature = getNature();
            if ((nature & RepositoryMetadata.RELEASE_OR_SNAPSHOT) == RepositoryMetadata.RELEASE_OR_SNAPSHOT) {
                ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy(repository.getReleases());
                policy.merge(repository.getSnapshots());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

            return new MavenArtifactRepository(
                    repository.getId(),
                    repository.getUrl(),
                    new DefaultRepositoryLayout(),
                    new ArtifactRepositoryPolicy(),
                    new ArtifactRepositoryPolicy());
        }
    
        @Override
        public Artifact createArtifact(String groupId, String artifactId, String version, String packaging) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/RepositorySystem.java

        ArtifactRepository createArtifactRepository(
                String id,
                String url,
                ArtifactRepositoryLayout repositoryLayout,
                ArtifactRepositoryPolicy snapshots,
                ArtifactRepositoryPolicy releases);
    
        /**
         * Calculates the effective repositories for the given input repositories which are assumed to be already mirrored
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/ArtifactRepositoryLayout2.java

    import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
    
    /**
     * ArtifactRepositoryLayout2
     */
    public interface ArtifactRepositoryLayout2 extends ArtifactRepositoryLayout {
    
        ArtifactRepository newMavenArtifactRepository(
                String id, String url, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java

        }
    
        public ArtifactRepository createArtifactRepository(
                String id,
                String url,
                String layoutId,
                ArtifactRepositoryPolicy snapshots,
                ArtifactRepositoryPolicy releases)
                throws UnknownRepositoryLayoutException {
            return injectSession(factory.createArtifactRepository(id, url, layoutId, snapshots, releases), true);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java

        String getProtocol();
    
        String getId();
    
        void setId(String id);
    
        ArtifactRepositoryPolicy getSnapshots();
    
        void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy);
    
        ArtifactRepositoryPolicy getReleases();
    
        void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy);
    
        ArtifactRepositoryLayout getLayout();
    
        void setLayout(ArtifactRepositoryLayout layout);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (1)
  9. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

         * Checks the verification of checksums.
         */
        @Disabled
        @Test
        void testChecksumVerification() throws Exception {
            ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy(
                    true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL);
    
            ArtifactRepository repo = artifactRepositoryFactory.createArtifactRepository(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            public void setId(String id) {}
    
            public ArtifactRepositoryPolicy getSnapshots() {
                return null;
            }
    
            public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy) {}
    
            public ArtifactRepositoryPolicy getReleases() {
                return null;
            }
    
            public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy) {}
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top