Signs artifacts and installs the artifact in the remote repository.
Mojo Attributes:
1.0-beta-4| Name | Type | Description |
|---|---|---|
| file | File |
File to be deployed. |
| repositoryId | String |
Server Id to map on the <id> under <server> section of settings.xml
In most cases, this parameter will be required for authentication. Default value is remote-repository. |
| 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. |
| url | String |
URL where the artifact will be deployed. ie ( file://C:\m2-repo or scp://host.com/path/to/repo ) |
| useAgent | boolean |
Passes --use-agent or --no-use-agent to gpg. If using an agent,
the password is optional as the agent will provide it. Default value is false. |
| Name | Type | Description |
|---|---|---|
| artifactFactory | ArtifactFactory |
Component used to create an artifact |
| artifactHandlerManager | ArtifactHandlerManager |
Maven ArtifactHandlerManager |
| artifactId | String |
ArtifactId of the artifact to be deployed. Retrieved from POM file if specified. |
| ascDirectory | File |
The directory where to store signature files. |
| classifier | String |
Add classifier to the artifact |
| description | String |
Description passed to a generated POM file (in case of generatePom=true) |
| generatePom | boolean |
Upload a POM for this artifact. Will generate a default POM if none is
supplied with the pomFile argument. Default value is true. |
| groupId | String |
GroupId of the artifact to be deployed. Retrieved from POM file if specified. |
| keyname | String |
The "name" of the key to sign with. Passed to gpg as --local-user. |
| packaging | String |
Type of the artifact to be deployed. Retrieved from POM file if specified. |
| passphrase | String |
The passphrase to use when signing. |
| pomFile | File |
Location of an existing POM file to be deployed alongside the main artifact, given by the ${file} parameter. |
| repositoryFactory | ArtifactRepositoryFactory |
Component used to create a repository |
| repositoryLayouts | Map |
Map that contains the layouts |
| uniqueVersion | boolean |
Whether to deploy snapshots with a unique version or not. Default value is true. |
| version | String |
Version of the artifact to be deployed. Retrieved from POM file if specified. |
Component used to create an artifact
org.apache.maven.artifact.factory.ArtifactFactoryNoorg.apache.maven.artifact.handler.manager.ArtifactHandlerManagerNojava.lang.StringNo${artifactId}java.io.FileNo${gpg.asc.directory}java.lang.StringNo${classifier}java.lang.StringNo${generatePom.description}java.io.FileYes${file}booleanNo${generatePom}truejava.lang.StringNo${groupId}java.lang.StringNo${gpg.keyname}java.lang.StringNo${packaging}java.lang.StringNo${gpg.passphrase}java.io.FileNo${pomFile}org.apache.maven.artifact.repository.ArtifactRepositoryFactoryNojava.lang.StringYes${repositoryId}remote-repositoryjava.lang.StringYes${repositoryLayout}defaultjava.util.MapNobooleanNo${uniqueVersion}truejava.lang.StringYes${url}booleanYes${gpg.useagent}falsejava.lang.StringNo${version}