Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

MDEPLOY-214: Added property "retryFailedDeploymentDelay" on maven-deploy-plugin #92

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ public abstract class AbstractDeployMojo
@Parameter( property = "retryFailedDeploymentCount", defaultValue = "1" )
private int retryFailedDeploymentCount;

/**
* Parameter used to control how much time (in seconds) a failed deployment will be retried after a failed
* connection.
*
* @since 2.9
*/
@Parameter( property = "retryFailedDeploymentDelay", defaultValue = "20" )
private int retryFailedDeploymentDelay;

@Parameter( defaultValue = "${session}", readonly = true, required = true )
private MavenSession session;

Expand Down Expand Up @@ -103,6 +112,11 @@ int getRetryFailedDeploymentCount()
return retryFailedDeploymentCount;
}

int getRetryFailedDeploymentDelay()
{
return retryFailedDeploymentDelay;
}

protected ArtifactRepository createDeploymentArtifactRepository( String id, String url,
ArtifactRepositoryLayout layout,
boolean uniqueVersion2 )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void execute()
.setProject( project )
.setUpdateReleaseInfo( isUpdateReleaseInfo() )
.setRetryFailedDeploymentCount( getRetryFailedDeploymentCount() )
.setRetryFailedDeploymentDelay( getRetryFailedDeploymentDelay() )
.setAltReleaseDeploymentRepository( altReleaseDeploymentRepository )
.setAltSnapshotDeploymentRepository( altSnapshotDeploymentRepository )
.setAltDeploymentRepository( altDeploymentRepository );
Expand Down