Package org.apache.maven.plugins.deploy
Class AbstractDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.deploy.AbstractDeployMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DeployFileMojo,DeployMojo
public abstract class AbstractDeployMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract class for Deploy mojo's.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate booleanFlag whether Maven is currently in online/offline mode.private intParameter used to control how many times a failed deployment will be retried before giving up and failing.private org.apache.maven.rtinfo.RuntimeInformationprivate org.apache.maven.execution.MavenSessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.artifact.repository.ArtifactRepository(package private) void(package private) intprotected final org.apache.maven.execution.MavenSessionprotected voidwarnIfAffectedPackagingAndMaven(String packaging) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
offline
@Parameter(defaultValue="${settings.offline}", readonly=true) private boolean offlineFlag whether Maven is currently in online/offline mode. -
retryFailedDeploymentCount
@Parameter(property="retryFailedDeploymentCount", defaultValue="1") private int retryFailedDeploymentCountParameter 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.- Since:
- 2.7
-
session
@Parameter(defaultValue="${session}", readonly=true, required=true) private org.apache.maven.execution.MavenSession session -
runtimeInformation
@Component private org.apache.maven.rtinfo.RuntimeInformation runtimeInformation -
AFFECTED_MAVEN_PACKAGING
- See Also:
-
FIXED_MAVEN_VERSION
- See Also:
-
-
Constructor Details
-
AbstractDeployMojo
public AbstractDeployMojo()
-
-
Method Details
-
failIfOffline
void failIfOffline() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
getRetryFailedDeploymentCount
int getRetryFailedDeploymentCount() -
createDeploymentArtifactRepository
-
getSession
protected final org.apache.maven.execution.MavenSession getSession() -
warnIfAffectedPackagingAndMaven
-