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.factory;
20  
21  import org.apache.maven.artifact.Artifact;
22  import org.apache.maven.artifact.versioning.VersionRange;
23  
24  /**
25   * ArtifactFactory - deprecated
26   */
27  @Deprecated
28  @SuppressWarnings("checkstyle:parameternumber")
29  public interface ArtifactFactory {
30      @Deprecated
31      String ROLE = ArtifactFactory.class.getName();
32  
33      Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type);
34  
35      Artifact createArtifactWithClassifier(
36              String groupId, String artifactId, String version, String type, String classifier);
37  
38      Artifact createDependencyArtifact(
39              String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope);
40  
41      Artifact createDependencyArtifact(
42              String groupId,
43              String artifactId,
44              VersionRange versionRange,
45              String type,
46              String classifier,
47              String scope,
48              boolean optional);
49  
50      Artifact createDependencyArtifact(
51              String groupId,
52              String artifactId,
53              VersionRange versionRange,
54              String type,
55              String classifier,
56              String scope,
57              String inheritedScope);
58  
59      Artifact createDependencyArtifact(
60              String groupId,
61              String artifactId,
62              VersionRange versionRange,
63              String type,
64              String classifier,
65              String scope,
66              String inheritedScope,
67              boolean optional);
68  
69      Artifact createBuildArtifact(String groupId, String artifactId, String version, String packaging);
70  
71      Artifact createProjectArtifact(String groupId, String artifactId, String version);
72  
73      Artifact createParentArtifact(String groupId, String artifactId, String version);
74  
75      Artifact createPluginArtifact(String groupId, String artifactId, VersionRange versionRange);
76  
77      Artifact createProjectArtifact(String groupId, String artifactId, String version, String scope);
78  
79      Artifact createExtensionArtifact(String groupId, String artifactId, VersionRange versionRange);
80  }