Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for resolveConflicts (0.1 sec)

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

            }
    
            if (requestType.equals(MetadataResolutionRequestTypeEnum.classpathCompile)) {
                return conflictResolver.resolveConflicts(getGraph(), ArtifactScopeEnum.compile);
            } else if (requestType.equals(MetadataResolutionRequestTypeEnum.classpathRuntime)) {
                return conflictResolver.resolveConflicts(getGraph(), ArtifactScopeEnum.runtime);
            } else if (requestType.equals(MetadataResolutionRequestTypeEnum.classpathTest)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

        // ------------------------------------------------------------------------------------------
        @Test
        void testCompileResolution() throws Exception {
            MetadataGraph res;
    
            res = resolver.resolveConflicts(graph, ArtifactScopeEnum.compile);
    
            assertNotNull(res, "null graph after resolver");
            assertNotNull(res.getVertices(), "no vertices in the resulting graph after resolver");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolver.java

         * @param scope scope for which the graph should be resolved
         *
         * @return resulting "clean" graph for the specified scope
         *
         * @since 3.0
         */
        MetadataGraph resolveConflicts(MetadataGraph graph, ArtifactScopeEnum scope)
                throws GraphConflictResolutionException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultClasspathTransformation.java

            try {
                if (dirtyGraph == null || dirtyGraph.isEmpty()) {
                    return null;
                }
    
                MetadataGraph cleanGraph = conflictResolver.resolveConflicts(dirtyGraph, scope);
    
                if (cleanGraph == null || cleanGraph.isEmpty()) {
                    return null;
                }
    
                ClasspathContainer cpc = new ClasspathContainer(scope);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

        // -------------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------------
        public MetadataGraph resolveConflicts(MetadataGraph graph, ArtifactScopeEnum scope)
                throws GraphConflictResolutionException {
            if (policy == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NearestConflictResolver.java

        /*
         * @see org.apache.maven.artifact.resolver.conflict.ConflictResolver#resolveConflict(org.apache.maven.artifact.resolver.ResolutionNode,
         *      org.apache.maven.artifact.resolver.ResolutionNode)
         */
    
        public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) {
            return node1.getDepth() <= node2.getDepth() ? node1 : node2;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/FarthestConflictResolver.java

        /*
         * @see org.apache.maven.artifact.resolver.conflict.ConflictResolver#resolveConflict(org.apache.maven.artifact.resolver.ResolutionNode,
         *      org.apache.maven.artifact.resolver.ResolutionNode)
         */
    
        public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) {
            return node1.getDepth() >= node2.getDepth() ? node1 : node2;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

        /*
         * @see org.apache.maven.artifact.resolver.conflict.ConflictResolver#resolveConflict(org.apache.maven.artifact.resolver.ResolutionNode,
         *      org.apache.maven.artifact.resolver.ResolutionNode)
         */
    
        public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) {
            try {
                ArtifactVersion version1 = node1.getArtifact().getSelectedVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolver.java

        /*
         * @see org.apache.maven.artifact.resolver.conflict.ConflictResolver#resolveConflict(org.apache.maven.artifact.resolver.ResolutionNode,
         *      org.apache.maven.artifact.resolver.ResolutionNode)
         */
    
        public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) {
            try {
                ArtifactVersion version1 = node1.getArtifact().getSelectedVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/AbstractConflictResolverTest.java

        }
    
        protected void assertResolveConflict(
                ResolutionNode expectedNode, ResolutionNode actualNode1, ResolutionNode actualNode2) {
            ResolutionNode resolvedNode = getConflictResolver().resolveConflict(actualNode1, actualNode2);
    
            assertNotNull(resolvedNode, "Expected resolvable");
            assertEquals(expectedNode, resolvedNode, "Resolution node");
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top