View Javadoc
1   package org.apache.maven.archetype.common;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.util.Arrays;
23  import java.util.List;
24  
25  public interface Constants
26  {
27      String ARCHETYPE_ARTIFACT_ID = "archetype.artifactId";
28  
29      String ARCHETYPE_GROUP_ID = "archetype.groupId";
30  
31      String ARCHETYPE_VERSION = "archetype.version";
32  
33      String ARCHETYPE_REPOSITORY = "archetype.repository";
34  
35      String ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype-metadata.xml";
36  
37      String ARCHETYPE_POST_GENERATION_GOALS = "archetype.goals";
38  
39      String ARCHETYPE_POST_GENERATION_SCRIPT = "META-INF/archetype-post-generate.groovy";
40  
41      String ARCHETYPE_POM = "pom.xml";
42  
43      String ARCHETYPE_RESOURCES = "archetype-resources";
44  
45      String ARCHETYPE_SUFFIX = "-archetype";
46  
47      String ARTIFACT_ID = "artifactId";
48  
49      String ARCHETYPE_FILTERED_EXTENSIONS = "archetype.filteredExtensions";
50  
51      String ARCHETYPE_LANGUAGES = "archetype.languages";
52  
53      String ARCHETYPE_URL = "archetype.url";
54  
55      String ARCHETYPE_DESCRIPTION = "archetype.description";
56  
57      String EXCLUDE_PATTERNS = "excludePatterns";
58  
59      List<String> DEFAULT_FILTERED_EXTENSIONS =
60          Arrays.asList(
61              new String[]
62                  {
63                      "java", "xml", "txt", "groovy", "cs", "mdo", "aj", "jsp", "gsp", "vm", "html",
64                      "xhtml", "properties", ".classpath", ".project"
65                  }
66          );
67  
68      List<String> DEFAULT_LANGUAGES =
69          Arrays.asList( new String[]{ "java", "groovy", "csharp", "aspectj" } );
70  
71      String GROUP_ID = "groupId";
72  
73      String MAIN = "main";
74  
75      String OLD_ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype.xml";
76  
77      String OLDER_ARCHETYPE_DESCRIPTOR = "META-INF/archetype.xml";
78  
79      String PACKAGE = "package";
80  
81      /*String PACKAGE_NAME = "packageName";*/
82  
83      String PACKAGE_IN_PATH_FORMAT = "packageInPathFormat";
84  
85      String PARENT_ARTIFACT_ID = "parentArtifactId";
86  
87      String POM_PATH = Constants.ARCHETYPE_RESOURCES + "/" + Constants.ARCHETYPE_POM;
88  
89      String RESOURCES = "resources";
90  
91      String SITE = "site";
92  
93      String SRC = "src";
94  
95      String TEST = "test";
96  
97      String TMP = ".tmp";
98  
99      String VERSION = "version";
100 
101     String MAVEN_ARCHETYPE_PACKAGING = "maven-archetype";
102 
103 }