This document describes the tags that are available when using the Artifact Plug-in with Maven.
Name | Description |
---|---|
artifact:deploy | Deploy artifact to remote repository(ies) |
artifact:install | Install artifact in local repository |
artifact:deploy-snapshot | Deploy snapshot version of artifact to remote repository (DEPRECATED: use artifact:deploy with SNAPSHOT in the project version for equivalent behaviour) |
artifact:install-snapshot | Install snapshot version of artifact in local repository (DEPRECATED: use artifact:install with SNAPSHOT in the project version for equivalent behaviour) |
Deploy an artifact to the set of remote repositories.
Following files will be deployed to remote repository:
Attribute Name | Description | Optional? |
---|---|---|
artifact | The path to the artifact file | No |
artifactIdOverride |
Name to be used for the artifact
(default is ${pom.id} )
|
Yes |
type | The type of the artifact (like jar or war or plugin). Type is used for computing a destination path in repository. | No |
project |
The project (POM) which produced artifact which will be deployed.
The POM contains settings (variables and context properties) that must be consulted in order to deploy artifact to a repository. These settings include:
|
NO |
Deploy a snapshot version of the artifact to a set of remote repositories.
During deloyment following files are put to remote repository:
For example for artifact with artifactId = foo the following files will be transferred to the remote repository:
File foo-snapshot-version contains the version number (20030620.124616) that the snapshot is linked to, so that automated tools can correctly update dependencies in projects that will use this artifact.
artifact:deploy-snapshot tag uses the same set of attributes as artifact:deploy tag
Install an artifact in the local repository
Following files will be copied to the local repository:
Why should I use artifact:install when it is so easy to copy a file inside my plugin?
There are few good reason for that:
Attribute Name | Description | Optional? |
---|---|---|
artifact | The path to the artifact file | No |
artifactIdOverride |
Name to be used for the artifact
(default is ${pom.id} )
|
Yes |
type | The type of the artifact (like jar or war). Type is used for computing a destination path in repository. | No |
project |
Information kept in the POM included following bits
used for controling:
|
NO |
Install a snapshot version of the artifact in the local repository
Following files are copied to the local repository:
For exaple for artifact with artifactId foo following files will be transfered to local repository:
artifact:install-snapshot tag uses the same set of attributes as artifact:install tag