org.apache.maven.plugin.install
Class InstallFileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.install.AbstractInstallMojo
org.apache.maven.plugin.install.InstallFileMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class InstallFileMojo
- extends AbstractInstallMojo
Installs a file in local repository.
- Version:
- $Id: InstallFileMojo.java 539824 2007-05-20 04:05:38Z carlos $
- Author:
- Brett Porter
Field Summary |
protected java.lang.String |
artifactId
ArtifactId of the artifact to be installed. |
protected java.lang.String |
classifier
Classifier type of the artifact to be installed. |
protected java.lang.String |
groupId
GroupId of the artifact to be installed. |
protected java.lang.String |
packaging
Packaging type of the artifact to be installed. |
protected java.lang.String |
version
Version of the artifact to be installed. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupId
protected java.lang.String groupId
- GroupId of the artifact to be installed. Retrieved from POM file if specified.
artifactId
protected java.lang.String artifactId
- ArtifactId of the artifact to be installed. Retrieved from POM file if specified.
version
protected java.lang.String version
- Version of the artifact to be installed. Retrieved from POM file if specified
packaging
protected java.lang.String packaging
- Packaging type of the artifact to be installed. Retrieved from POM file if specified
classifier
protected java.lang.String classifier
- Classifier type of the artifact to be installed. For example, "sources" or "javadoc".
Defaults to none which means this is the project's main jar.
InstallFileMojo
public InstallFileMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
Mojo.execute()
getLocalRepositoryId
public java.lang.String getLocalRepositoryId()
- Returns:
- the localRepositoryId
setLocalRepositoryId
public void setLocalRepositoryId(java.lang.String theLocalRepositoryId)
- Parameters:
theLocalRepositoryId
- the localRepositoryId to set
getLocalRepositoryPath
public java.io.File getLocalRepositoryPath()
- Returns:
- the localRepositoryPath
setLocalRepositoryPath
public void setLocalRepositoryPath(java.io.File theLocalRepositoryPath)
- Parameters:
theLocalRepositoryPath
- the localRepositoryPath to set
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.