View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.artifact.resolver;
20  
21  import java.util.List;
22  
23  import org.apache.maven.artifact.Artifact;
24  import org.apache.maven.artifact.repository.ArtifactRepository;
25  
26  /**
27   * @author Jason van Zyl
28   */
29  public class ArtifactResolutionException extends AbstractArtifactResolutionException {
30      @SuppressWarnings("checkstyle:parameternumber")
31      public ArtifactResolutionException(
32              String message,
33              String groupId,
34              String artifactId,
35              String version,
36              String type,
37              String classifier,
38              List<ArtifactRepository> remoteRepositories,
39              List<String> path,
40              Throwable t) {
41          super(message, groupId, artifactId, version, type, classifier, remoteRepositories, path, t);
42      }
43  
44      public ArtifactResolutionException(
45              String message,
46              String groupId,
47              String artifactId,
48              String version,
49              String type,
50              String classifier,
51              Throwable t) {
52          super(message, groupId, artifactId, version, type, classifier, null, null, t);
53      }
54  
55      public ArtifactResolutionException(String message, Artifact artifact) {
56          super(message, artifact);
57      }
58  
59      public ArtifactResolutionException(String message, Artifact artifact, List<ArtifactRepository> remoteRepositories) {
60          super(message, artifact, remoteRepositories);
61      }
62  
63      public ArtifactResolutionException(String message, Artifact artifact, Throwable cause) {
64          super(message, artifact, null, cause);
65      }
66  
67      public ArtifactResolutionException(
68              String message, Artifact artifact, List<ArtifactRepository> remoteRepositories, Throwable cause) {
69          super(message, artifact, remoteRepositories, cause);
70      }
71  }