Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/trunk/nex…
Browse files Browse the repository at this point in the history
…us-indexer@1 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information
brianf committed May 1, 2008
0 parents commit b4fd5c8
Show file tree
Hide file tree
Showing 407 changed files with 12,966 additions and 0 deletions.
196 changes: 196 additions & 0 deletions pom.xml
@@ -0,0 +1,196 @@
<!--/*
* Nexus: Maven Repository Manager
* Copyright (C) 2008 Sonatype, Inc.
*
* This file is part of Nexus.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
*/-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.spice</groupId>
<artifactId>spice-parent</artifactId>
<version>1-SNAPSHOT</version>
</parent>

<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-indexer</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Nexus (Shared Indexer)</name>

<dependencies>

<!-- Plexus -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-digest</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-cli</artifactId>
<version>1.2</version>
</dependency>

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>2.3.1</version>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven.artifact</groupId>
<artifactId>maven-artifact</artifactId>
<version>3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-common</artifactId>
<version>2.0-alpha-1</version>
</dependency>

<!-- Wagon -->
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-provider-api</artifactId>
<version>1.0-beta-2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
<version>1.0-beta-2</version>
</dependency>

<!-- Test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>3.8.2</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-cli-jar</id>
<goals>
<goal>attached</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>
src/main/assembly/nx-indexer-cli-assembly.xml
</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>
org.sonatype.nexus.index.cli.NexusIndexerCli
</mainClass>
</manifest>
</archive>
</configuration>
</execution>
</executions>
</plugin>

<!-- 1.4 jar -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>retrotranslator-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
<executions>
<execution>
<goals>
<goal>translate-project</goal>
</goals>
<configuration>
<classifier>jdk14</classifier>
<attach>true</attach>
</configuration>
</execution>
</executions>
<dependencies>
<!-- Retrotranslator itself _or_ this M2 plugin dies
if cannot find org.apache.commons.logging.LogFactory
on classpath. SLF4J and it's placebo commons-logging
is not enough. -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>never</forkMode>
</configuration>
</plugin>

<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
50 changes: 50 additions & 0 deletions src/main/assembly/nx-indexer-cli-assembly.xml
@@ -0,0 +1,50 @@
<assembly>
<id>cli</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>jar</format>
</formats>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<outputFileNameMapping></outputFileNameMapping>
<unpack>true</unpack>
<scope>runtime</scope>
<excludes>
<exclude>org.codehaus.plexus:plexus-component-api</exclude>
<exclude>classworlds:classworlds</exclude>
<exclude>junit:junit</exclude>
<exclude>xml-apis:xml-apis</exclude>
<!-- archetypeng -->
<exclude>org.apache.maven.archetype:archetypeng-common</exclude>
<!-- <exclude>aspectj:aspectjrt</exclude> -->
<exclude>commons-collections:commons-collections</exclude>
<exclude>commons-io:commons-io</exclude>
<exclude>dom4j:dom4j</exclude>
<exclude>jdom:jdom</exclude>
<exclude>net.sourceforge.jchardet:jchardet</exclude>
<exclude>org.apache.maven.artifact:maven-artifact</exclude>
<exclude>org.apache.maven.doxia:doxia-sink-api</exclude>
<exclude>org.apache.maven:maven-core</exclude>
<exclude>org.apache.maven:maven-lifecycle</exclude>
<exclude>org.apache.maven:maven-profile</exclude>
<exclude>org.apache.maven:maven-project</exclude>
<exclude>org.apache.maven:maven-reporting-api</exclude>
<exclude>org.codehaus.plexus:plexus-interactivity-api</exclude>
<exclude>org.codehaus.plexus:plexus-velocity</exclude>
<exclude>oro:oro</exclude>
<exclude>velocity:velocity</exclude>
</excludes>
</dependencySet>
</dependencySets>
</assembly>
124 changes: 124 additions & 0 deletions src/main/java/org/sonatype/nexus/artifact/Gav.java
@@ -0,0 +1,124 @@
/*
* Nexus: Maven Repository Manager
* Copyright (C) 2008 Sonatype, Inc.
*
* This file is part of Nexus.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
*/
package org.sonatype.nexus.artifact;

public class Gav
{
private String groupId;

private String artifactId;

// TODO
private String baseVersion;

private String version;

private String classifier;

// TODO
private String type;

private String extension;

private String snapshotBuildNumber;

private Long snapshotTimeStamp;

private String name;

private boolean primary;

private boolean snapshot;

private boolean checksum;

public Gav( String groupId, String artifactId, String version, String classifier, String extension, String snapshotBuildNumber,
Long snapshotTimeStamp, String name, boolean primary, boolean snapshot, boolean checksum )
{
this.groupId = groupId;
this.artifactId = artifactId;
this.version = version;
this.classifier = classifier;
this.extension = extension;
this.snapshotBuildNumber = snapshotBuildNumber;
this.snapshotTimeStamp = snapshotTimeStamp;
this.name = name;
this.primary = primary;
this.snapshot = snapshot;
this.checksum = checksum;
}

public String getGroupId()
{
return groupId;
}

public String getArtifactId()
{
return artifactId;
}

public String getVersion()
{
return version;
}

public String getClassifier()
{
return classifier;
}

public String getExtension()
{
return extension;
}

public String getName()
{
return name;
}

public boolean isPrimary()
{
return primary;
}

public boolean isSnapshot()
{
return snapshot;
}

public String getSnapshotBuildNumber()
{
return snapshotBuildNumber;
}

public boolean isChecksum()
{
return checksum;
}

public Long getSnapshotTimeStamp()
{
return snapshotTimeStamp;
}

}

0 comments on commit b4fd5c8

Please sign in to comment.