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.archetype.common;
20  
21  import java.util.Arrays;
22  import java.util.List;
23  
24  @SuppressWarnings("checkstyle:InterfaceIsType")
25  public interface Constants {
26      String ARCHETYPE_ARTIFACT_ID = "archetype.artifactId";
27  
28      String ARCHETYPE_GROUP_ID = "archetype.groupId";
29  
30      String ARCHETYPE_VERSION = "archetype.version";
31  
32      String ARCHETYPE_REPOSITORY = "archetype.repository";
33  
34      String ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype-metadata.xml";
35  
36      String ARCHETYPE_POST_GENERATION_GOALS = "archetype.goals";
37  
38      String ARCHETYPE_POST_GENERATION_SCRIPT = "META-INF/archetype-post-generate.groovy";
39  
40      String ARCHETYPE_POM = "pom.xml";
41  
42      String ARCHETYPE_RESOURCES = "archetype-resources";
43  
44      String ARCHETYPE_SUFFIX = "-archetype";
45  
46      String ARTIFACT_ID = "artifactId";
47  
48      String ARCHETYPE_FILTERED_EXTENSIONS = "archetype.filteredExtensions";
49  
50      String ARCHETYPE_LANGUAGES = "archetype.languages";
51  
52      String ARCHETYPE_URL = "archetype.url";
53  
54      String ARCHETYPE_DESCRIPTION = "archetype.description";
55  
56      String EXCLUDE_PATTERNS = "excludePatterns";
57  
58      List<String> DEFAULT_FILTERED_EXTENSIONS = Arrays.asList(
59              "java",
60              "xml",
61              "txt",
62              "groovy",
63              "cs",
64              "mdo",
65              "aj",
66              "jsp",
67              "gsp",
68              "vm",
69              "html",
70              "xhtml",
71              "properties",
72              ".classpath",
73              ".project");
74  
75      List<String> DEFAULT_LANGUAGES = Arrays.asList("java", "groovy", "csharp", "aspectj");
76  
77      String GROUP_ID = "groupId";
78  
79      String MAIN = "main";
80  
81      String OLD_ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype.xml";
82  
83      String OLDER_ARCHETYPE_DESCRIPTOR = "META-INF/archetype.xml";
84  
85      String PACKAGE = "package";
86  
87      /*String PACKAGE_NAME = "packageName";*/
88  
89      String PACKAGE_IN_PATH_FORMAT = "packageInPathFormat";
90  
91      String PARENT_ARTIFACT_ID = "parentArtifactId";
92  
93      String RESOURCES = "resources";
94  
95      String SRC = "src";
96  
97      String TEST = "test";
98  
99      String TMP = ".tmp";
100 
101     String VERSION = "version";
102 
103     String MAVEN_ARCHETYPE_PACKAGING = "maven-archetype";
104 }