org.apache.maven.artifact.deployer
Class NamedArtifactTypeHandler
java.lang.Object
org.apache.maven.repository.DefaultArtifactTypeHandler
org.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
| 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 |
NamedArtifactTypeHandler
public NamedArtifactTypeHandler()
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 artifacttype - The type of the artifactversion - The version of the artifact (may be a snapshot)
- Returns:
- the path
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.