001package org.apache.maven.artifact.factory;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *  http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import org.apache.maven.artifact.Artifact;
023import org.apache.maven.artifact.versioning.VersionRange;
024
025@Deprecated
026public interface ArtifactFactory
027{
028    @Deprecated
029    String ROLE = ArtifactFactory.class.getName();
030
031    Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type );
032
033    Artifact createArtifactWithClassifier( String groupId, String artifactId, String version, String type,
034                                           String classifier );
035
036    Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
037                                       String classifier, String scope );
038
039    Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
040                                       String classifier, String scope, boolean optional );
041
042    Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
043                                       String classifier, String scope, String inheritedScope );
044
045    Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type,
046                                       String classifier, String scope, String inheritedScope, boolean optional );
047
048    Artifact createBuildArtifact( String groupId, String artifactId, String version, String packaging );
049
050    Artifact createProjectArtifact( String groupId, String artifactId, String version );
051
052    Artifact createParentArtifact( String groupId, String artifactId, String version );
053
054    Artifact createPluginArtifact( String groupId, String artifactId, VersionRange versionRange );
055
056    Artifact createProjectArtifact( String groupId, String artifactId, String version, String scope );
057
058    Artifact createExtensionArtifact( String groupId, String artifactId, VersionRange versionRange );
059}