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.repository.internal.artifact;
20
21 /**
22 * The keys for Maven specific properties of artifacts. These properties "extend" (or supplement) the Resolver
23 * core properties defined in {@link org.eclipse.aether.artifact.ArtifactProperties}.
24 *
25 * @see org.eclipse.aether.artifact.ArtifactProperties
26 * @since 4.0.0
27 * @deprecated since 4.0.0, use {@code maven-api-impl} jar instead
28 */
29 @Deprecated(since = "4.0.0")
30 public final class MavenArtifactProperties {
31 /**
32 * A boolean flag indicating whether the artifact presents some kind of bundle that physically includes its
33 * dependencies, e.g. a fat WAR.
34 */
35 public static final String INCLUDES_DEPENDENCIES = "includesDependencies";
36
37 /**
38 * A boolean flag indicating whether the artifact is meant to be used for the compile/runtime/test build path of a
39 * consumer project.
40 * <p>
41 * Note: This property is about "build path", whatever it means in the scope of the consumer project. It is NOT
42 * about Java classpath or anything alike. How artifact is being consumed depends heavily on the consumer project.
43 * Resolver is and will remain agnostic of consumer project use cases.
44 */
45 public static final String CONSTITUTES_BUILD_PATH = "constitutesBuildPath";
46
47 /**
48 * The (expected) path to the artifact on the local filesystem. An artifact which has this property set is assumed
49 * to be not present in any regular repository and likewise has no artifact descriptor. Artifact resolution will
50 * verify the path and resolve the artifact if the path actually denotes an existing file. If the path isn't valid,
51 * resolution will fail and no attempts to search local/remote repositories are made.
52 */
53 public static final String LOCAL_PATH = "localPath";
54
55 private MavenArtifactProperties() {
56 // hide constructor
57 }
58 }