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
Modifier and TypeFieldDescriptionprotected org.eclipse.aether.RepositorySystem
protected org.apache.maven.execution.MavenSession
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
deploy
(org.eclipse.aether.deployment.DeployRequest deployRequest) protected org.eclipse.aether.repository.RemoteRepository
getRemoteRepository
(String repositoryId, String url) Creates resolverRemoteRepository
equipped with needed whistles and bells.protected void
warnIfAffectedPackagingAndMaven
(String packaging) If this plugin used in pre-3.9.0 Maven, the packagingmaven-plugin
will not deploy G level metadata.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
session
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session -
repositorySystem
@Component protected org.eclipse.aether.RepositorySystem repositorySystem
-
-
Constructor Details
-
AbstractDeployMojo
public AbstractDeployMojo()
-
-
Method Details
-
warnIfAffectedPackagingAndMaven
If this plugin used in pre-3.9.0 Maven, the packagingmaven-plugin
will not deploy G level metadata. -
getRemoteRepository
protected org.eclipse.aether.repository.RemoteRepository getRemoteRepository(String repositoryId, String url) Creates resolverRemoteRepository
equipped with needed whistles and bells. -
deploy
protected void deploy(org.eclipse.aether.deployment.DeployRequest deployRequest) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-