Class MultipleArtifactsNotFoundException

All Implemented Interfaces:
Serializable

public class MultipleArtifactsNotFoundException extends ArtifactResolutionException
Exception caused when one or more artifacts can not be resolved because they are not found in the local or remote repositories.
See Also:
  • Field Details

    • resolvedArtifacts

      private final List resolvedArtifacts
    • missingArtifacts

      private final List missingArtifacts
  • Constructor Details

    • MultipleArtifactsNotFoundException

      public MultipleArtifactsNotFoundException(Artifact originatingArtifact, List missingArtifacts, List remoteRepositories)
    • MultipleArtifactsNotFoundException

      public MultipleArtifactsNotFoundException(Artifact originatingArtifact, List resolvedArtifacts, List missingArtifacts, List remoteRepositories)
      Create an instance of the exception with allrequired information.
      Parameters:
      originatingArtifact - the artifact that was being resolved
      resolvedArtifacts - artifacts that could be resolved
      missingArtifacts - artifacts that could not be resolved
      remoteRepositories - remote repositories where the missing artifacts were not found
  • Method Details

    • getResolvedArtifacts

      public List getResolvedArtifacts()
      artifacts that could be resolved
      Returns:
      List of Artifact
    • getMissingArtifacts

      public List getMissingArtifacts()
      artifacts that could NOT be resolved
      Returns:
      List of Artifact
    • constructMessage

      private static String constructMessage(List artifacts)