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.index;
20  
21  /**
22   * Maven ontology.
23   *
24   * @author cstamas
25   */
26  public interface MAVEN {
27      /** Maven namespace */
28      String MAVEN_NAMESPACE = "urn:maven#";
29  
30      Field REPOSITORY_ID = new Field(null, MAVEN_NAMESPACE, "repositoryId", "Artifact Repository ID");
31  
32      Field GROUP_ID = new Field(null, MAVEN_NAMESPACE, "groupId", "Group ID");
33  
34      Field ARTIFACT_ID = new Field(null, MAVEN_NAMESPACE, "artifactId", "Artifact ID");
35  
36      Field VERSION = new Field(null, MAVEN_NAMESPACE, "version", "Version");
37  
38      Field BASE_VERSION = new Field(null, MAVEN_NAMESPACE, "baseVersion", "Base Version");
39  
40      Field CLASSNAMES = new Field(null, MAVEN_NAMESPACE, "classNames", "Artifact Classes");
41  
42      // Artifact Packaging (extension for secondary artifacts!).
43      Field PACKAGING = new Field(null, MAVEN_NAMESPACE, "packaging", "Packaging/Extension");
44  
45      // Artifact extension
46      Field EXTENSION = new Field(null, MAVEN_NAMESPACE, "extension", "Extension");
47  
48      Field CLASSIFIER = new Field(null, MAVEN_NAMESPACE, "classifier", "Classifier");
49  
50      // NAME: Artifact Name (from POM)
51      Field NAME = new Field(null, MAVEN_NAMESPACE, "name", "Name");
52  
53      // DESCRIPTION: Artifact Description (from POM)
54      Field DESCRIPTION = new Field(null, MAVEN_NAMESPACE, "name", "Description");
55  
56      // LAST_MODIFIED: Artifact Last Modified Timestamp (UTC millis)
57      Field LAST_MODIFIED = new Field(null, MAVEN_NAMESPACE, "lastModified", "Last Modified Timestamp");
58  
59      // SHA1: Artifact SHA1 checksum.
60      Field SHA1 = new Field(null, MAVEN_NAMESPACE, "sha1", "SHA1 checksum");
61  
62      // PLUGIN_PREFIX: MavenPlugin Artifact Plugin Prefix.
63      Field PLUGIN_PREFIX = new Field(null, MAVEN_NAMESPACE, "pluginPrefix", "Plugin Prefix");
64  
65      // PLUGIN_GOALS: MavenPlugin Artifact Plugin Goals (list of strings)
66      Field PLUGIN_GOALS = new Field(null, MAVEN_NAMESPACE, "pluginGoals", "Plugin Goals");
67  }