Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getMissingArtifacts (0.29 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

            if (result.hasMissingArtifacts()) {
                throw new MultipleArtifactsNotFoundException(
                        request.getArtifact(),
                        toList(result.getArtifacts()),
                        result.getMissingArtifacts(),
                        request.getRemoteRepositories());
            }
    
            // this should never happen since we checked all possible error sources before but better be sure
            if (result.hasExceptions()) {
    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-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java

            return resolvedArtifacts;
        }
    
        /**
         * artifacts that could NOT be resolved
         *
         * @return {@link List} of {@link Artifact}
         */
        public List<Artifact> getMissingArtifacts() {
            return missingArtifacts;
        }
    
        private static String constructMessage(List<Artifact> artifacts) {
            StringBuilder buffer = new StringBuilder(256);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

        }
    
        private void printErrors(ArtifactResolutionResult result) {
            if (result.hasMissingArtifacts()) {
                for (Artifact artifact : result.getMissingArtifacts()) {
                    System.err.println("Missing: " + artifact);
                }
            }
    
            if (result.hasExceptions()) {
                for (Exception e : result.getExceptions()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

            return requestedArtifacts;
        }
    
        public boolean hasMissingArtifacts() {
            return missingArtifacts != null && !missingArtifacts.isEmpty();
        }
    
        public List<Artifact> getMissingArtifacts() {
            return missingArtifacts == null ? Collections.emptyList() : Collections.unmodifiableList(missingArtifacts);
        }
    
        public MetadataResolutionResult addMissingArtifact(Artifact artifact) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

                try {
                    resolutionErrorHandler.throwErrors(request, result);
                } catch (MultipleArtifactsNotFoundException e) {
    
                    Collection<Artifact> missing = new HashSet<>(e.getMissingArtifacts());
    
                    for (Iterator<Artifact> it = missing.iterator(); it.hasNext(); ) {
                        String key = ArtifactUtils.key(it.next());
                        if (projectIds.contains(key)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

            this.resolutionNodes = resolutionNodes;
        }
    
        public boolean hasMissingArtifacts() {
            return missingArtifacts != null && !missingArtifacts.isEmpty();
        }
    
        public List<Artifact> getMissingArtifacts() {
            return missingArtifacts == null ? Collections.emptyList() : Collections.unmodifiableList(missingArtifacts);
        }
    
        public ArtifactResolutionResult addMissingArtifact(Artifact artifact) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top