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.resolver.internal.ant;
20
21 /**
22 * Centralized constants used throughout the Maven Resolver Ant tasks.
23 * <p>
24 * This class defines symbolic names for commonly used IDs, property keys,
25 * and filenames used in the integration with Ant, such as default repository identifiers,
26 * offline mode flags, and POM registration keys.
27 * </p>
28 *
29 * <p>
30 * This class is not intended to be instantiated.
31 * </p>
32 */
33 public final class Names {
34
35 private Names() {
36 // hide constructor
37 }
38
39 /** Namespace prefix used by the resolver: {@code "resolver"}. */
40 public static final String ID = "resolver";
41
42 /** Default ID for the shared repository list: {@code "resolver.repositories"}. */
43 public static final String ID_DEFAULT_REPOS = ID + ".repositories";
44
45 /** Default ID for the shared POM reference: {@code "resolver.pom"}. */
46 public static final String ID_DEFAULT_POM = ID + ".pom";
47
48 /** Canonical ID for Maven Central repository: {@code "central"}. */
49 public static final String ID_CENTRAL = "central";
50
51 /** Property name for controlling offline mode: {@code "resolver.offline"}. */
52 public static final String PROPERTY_OFFLINE = ID + ".offline";
53
54 /** Default filename for the Maven settings file: {@code "settings.xml"}. */
55 public static final String SETTINGS_XML = "settings.xml";
56 }