Installs a file in local repository.
Mojo Attributes:
| Name | Type | Description |
|---|---|---|
| file | File |
The file to be deployed |
| repositoryLayout | String |
The type of remote repository layout to deploy to. Try legacy for
a Maven 1.x-style repository layout. Default value is default. |
| Name | Type | Description |
|---|---|---|
| artifactFactory | ArtifactFactory |
Used to create artifacts |
| artifactId | String |
ArtifactId of the artifact to be installed. Retrieved from POM file if specified. |
| classifier | String |
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. |
| createChecksum | boolean |
Flag Whether to create checksums(MD5, SHA1) or not. Default value is false. |
| generatePom | boolean |
Install a POM for this artifact. Will generate a default POM if none is
supplied with the pomFile argument. Default value is false. |
| groupId | String |
GroupId of the artifact to be installed. Retrieved from POM file if specified. |
| localRepositoryId | String |
The id for the localRepo |
| localRepositoryPath | File |
The path for a specific local repository directory. It will wrap into an ArtifactRepository
with localRepoId as id and with default repositoryLayout |
| md5Digester | Digester |
Digester for MD5. |
| packaging | String |
Packaging type of the artifact to be installed. Retrieved from POM file if specified |
| pomFile | File |
Location of an existing POM file to be deployed alongside the main artifact, given by the ${file} parameter. |
| repositoryLayouts | Map |
Map that contains the layouts |
| sha1Digester | Digester |
Digester for SHA-1. |
| version | String |
Version of the artifact to be installed. Retrieved from POM file if specified |
Used to create artifacts
org.apache.maven.artifact.factory.ArtifactFactoryNojava.lang.StringNo${artifactId}java.lang.StringNo${classifier}booleanNo${createChecksum}falsejava.io.FileYes${file}booleanNo${generatePom}falsejava.lang.StringNo${groupId}id for the localRepo
java.lang.StringNo${localRepositoryId}ArtifactRepository
with localRepoId as id and with default repositoryLayout
java.io.FileNo${localRepositoryPath}org.codehaus.plexus.digest.DigesterNojava.lang.StringNo${packaging}java.io.FileNo${pomFile}java.lang.StringYes${repositoryLayout}defaultjava.util.MapNoorg.codehaus.plexus.digest.DigesterNojava.lang.StringNo${version}