deploy:deploy
Full name:
org.apache.maven.plugins:maven-deploy-plugin:3.0.0:deploy
Description:
Deploys an artifact to remote repository.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
deploy.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<altDeploymentRepository> |
String |
- |
Specifies an alternative repository to which the project artifacts
should be deployed (other than those specified in
<distributionManagement>). Format: id::url
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.User property is: altDeploymentRepository. |
<altReleaseDeploymentRepository> |
String |
2.8 |
The alternative repository to use when the project has a final
version. Note: In version 2.x, the format was
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.User property is: altReleaseDeploymentRepository. |
<altSnapshotDeploymentRepository> |
String |
2.8 |
The alternative repository to use when the project has a snapshot
version. Note: In version 2.x, the format was
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.User property is: altSnapshotDeploymentRepository. |
<deployAtEnd> |
boolean |
2.8 |
Whether every project should be deployed during its own
deploy-phase or at the end of the multimodule build. If set to
true and the build fails, none of the reactor projects
is deployed. (experimental)Default value is: false.User property is: deployAtEnd. |
<retryFailedDeploymentCount> |
int |
2.7 |
Parameter used to control how many times a failed deployment will
be retried before giving up and failing. If a value outside the
range 1-10 is specified it will be pulled to the nearest value
within the range 1-10. Default value is: 1.User property is: retryFailedDeploymentCount. |
<skip> |
String |
2.4 |
Set this to 'true' to bypass artifact deploy Since since 3.0.0-M2
it's not anymore a real boolean as it can have more than 2 values:
Default value is: false.User property is: maven.deploy.skip. |
Parameter Details
<altDeploymentRepository>
Specifies an alternative repository to which the project artifacts
should be deployed (other than those specified in
<distributionManagement>).
Format:
Format:
id::url
- id
- The id can be used to pick up the correct credentials from the settings.xml
- url
- The location of the repository
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.- Type:
java.lang.String - Required:
No - User Property:
altDeploymentRepository
<altReleaseDeploymentRepository>
The alternative repository to use when the project has a final
version. Note: In version 2.x, the format was
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.- Type:
java.lang.String - Since:
2.8 - Required:
No - User Property:
altReleaseDeploymentRepository
<altSnapshotDeploymentRepository>
The alternative repository to use when the project has a snapshot
version. Note: In version 2.x, the format was
id::layout::url where
layout could be default (ie. Maven
2) or legacy (ie. Maven 1), but since 3.0.0 the layout
part has been removed because Maven 3 only supports Maven 2
repository layout.- Type:
java.lang.String - Since:
2.8 - Required:
No - User Property:
altSnapshotDeploymentRepository
<deployAtEnd>
Whether every project should be deployed during its own
deploy-phase or at the end of the multimodule build. If set to
true and the build fails, none of the reactor projects
is deployed. (experimental)- Type:
boolean - Since:
2.8 - Required:
No - User Property:
deployAtEnd - Default:
false
<retryFailedDeploymentCount>
Parameter used to control how many times a failed deployment will
be retried before giving up and failing. If a value outside the
range 1-10 is specified it will be pulled to the nearest value
within the range 1-10.
- Type:
int - Since:
2.7 - Required:
No - User Property:
retryFailedDeploymentCount - Default:
1
<skip>
Set this to 'true' to bypass artifact deploy Since since 3.0.0-M2
it's not anymore a real boolean as it can have more than 2 values:
true: will skip as usualreleases: will skip if current version of the project is a releasesnapshots: will skip if current version of the project is a snapshot- any other values will be considered as
false
- Type:
java.lang.String - Since:
2.4 - Required:
No - User Property:
maven.deploy.skip - Default:
false


