View Javadoc

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