org.apache.maven.artifact.deployer
Class NamedArtifactTypeHandler

java.lang.Object
  extended byorg.apache.maven.repository.DefaultArtifactTypeHandler
      extended byorg.apache.maven.artifact.deployer.NamedArtifactTypeHandler
All Implemented Interfaces:
org.apache.maven.repository.ArtifactTypeHandler

public class NamedArtifactTypeHandler
extends org.apache.maven.repository.DefaultArtifactTypeHandler

This handler allows the default artifactId to be overridden.

Author:
Neil Crow

Constructor Summary
NamedArtifactTypeHandler()
           
 
Method Summary
 String constructRepositoryFullPath(String type, org.apache.maven.project.Project project, String version)
          Map an artifact to a repository path.
 String getArtifactId()
           
 void setArtifactId(String newId)
           
 
Methods inherited from class org.apache.maven.repository.DefaultArtifactTypeHandler
constructRepositoryDirectoryPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedArtifactTypeHandler

public NamedArtifactTypeHandler()
Method Detail

getArtifactId

public String getArtifactId()
Returns:
String

setArtifactId

public void setArtifactId(String newId)
Parameters:
newId - - The artifactId which overides the pom default.

constructRepositoryFullPath

public String constructRepositoryFullPath(String type,
                                          org.apache.maven.project.Project project,
                                          String version)
Map an artifact to a repository path.

Parameters:
project - the project for the artifact
type - The type of the artifact
version - The version of the artifact (may be a snapshot)
Returns:
the path


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.