| package org.apache.maven.archetype.common; |
| |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| import java.util.Arrays; |
| import java.util.List; |
| |
| public interface Constants |
| { |
| String ARCHETYPE_ARTIFACT_ID = "archetype.artifactId"; |
| |
| String ARCHETYPE_GROUP_ID = "archetype.groupId"; |
| |
| String ARCHETYPE_VERSION = "archetype.version"; |
| |
| String ARCHETYPE_REPOSITORY = "archetype.repository"; |
| |
| String ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype-metadata.xml"; |
| |
| String ARCHETYPE_POST_GENERATION_GOALS = "archetype.goals"; |
| |
| String ARCHETYPE_POST_GENERATION_SCRIPT = "META-INF/archetype-post-generate.groovy"; |
| |
| String ARCHETYPE_POM = "pom.xml"; |
| |
| String ARCHETYPE_RESOURCES = "archetype-resources"; |
| |
| String ARCHETYPE_SUFFIX = "-archetype"; |
| |
| String ARTIFACT_ID = "artifactId"; |
| |
| String ARCHETYPE_FILTERED_EXTENSIONS = "archetype.filteredExtensions"; |
| |
| String ARCHETYPE_LANGUAGES = "archetype.languages"; |
| |
| String ARCHETYPE_URL = "archetype.url"; |
| |
| String ARCHETYPE_DESCRIPTION = "archetype.description"; |
| |
| String EXCLUDE_PATTERNS = "excludePatterns"; |
| |
| List<String> DEFAULT_FILTERED_EXTENSIONS = |
| Arrays.asList( |
| new String[] |
| { |
| "java", "xml", "txt", "groovy", "cs", "mdo", "aj", "jsp", "gsp", "vm", "html", |
| "xhtml", "properties", ".classpath", ".project" |
| } |
| ); |
| |
| List<String> DEFAULT_LANGUAGES = |
| Arrays.asList( new String[]{ "java", "groovy", "csharp", "aspectj" } ); |
| |
| String GROUP_ID = "groupId"; |
| |
| String MAIN = "main"; |
| |
| String OLD_ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype.xml"; |
| |
| String OLDER_ARCHETYPE_DESCRIPTOR = "META-INF/archetype.xml"; |
| |
| String PACKAGE = "package"; |
| |
| /*String PACKAGE_NAME = "packageName";*/ |
| |
| String PACKAGE_IN_PATH_FORMAT = "packageInPathFormat"; |
| |
| String PARENT_ARTIFACT_ID = "parentArtifactId"; |
| |
| String POM_PATH = Constants.ARCHETYPE_RESOURCES + "/" + Constants.ARCHETYPE_POM; |
| |
| String RESOURCES = "resources"; |
| |
| String SITE = "site"; |
| |
| String SRC = "src"; |
| |
| String TEST = "test"; |
| |
| String TMP = ".tmp"; |
| |
| String VERSION = "version"; |
| |
| String MAVEN_ARCHETYPE_PACKAGING = "maven-archetype"; |
| |
| } |