Package nl.lexemmens.podman
Class PushMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- nl.lexemmens.podman.AbstractPodmanMojo
-
- nl.lexemmens.podman.AbstractCatalogSupport
-
- nl.lexemmens.podman.PushMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="push", defaultPhase=DEPLOY) public class PushMojo extends AbstractCatalogSupportPushMojo for pushing container images to a registry/repository
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nl.lexemmens.podman.AbstractCatalogSupport
AbstractCatalogSupport.PodmanSession
-
-
Field Summary
-
Fields inherited from class nl.lexemmens.podman.AbstractCatalogSupport
localRepositoryManagerFactory, repositorySystem, repositorySystemSession
-
Fields inherited from class nl.lexemmens.podman.AbstractPodmanMojo
batch, CATALOG_ARTIFACT_NAME, CATALOG_HEADER, failOnMissingContainerfile, images, podman, PODMAN_DIRECTORY, project, pushRegistry, registries, resolvedImages, settings, skip, skipAuth, skopeo
-
-
Constructor Summary
Constructors Constructor Description PushMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteInternal(ServiceHub hub)Executes this Mojo internally.protected booleanskipGoal()Check if the execution of the mojo should be skipped-
Methods inherited from class nl.lexemmens.podman.AbstractCatalogSupport
getRemoteRepositories, getTempSession, readLocalCatalog, readRemoteCatalog
-
Methods inherited from class nl.lexemmens.podman.AbstractPodmanMojo
checkAuthentication, execute, getFullImageNameWithPushRegistry, initImageConfigurations, requireImageConfiguration, singleImageConfigurationToFullImageList
-
-
-
-
Method Detail
-
executeInternal
public void executeInternal(ServiceHub hub) throws org.apache.maven.plugin.MojoExecutionException
Description copied from class:AbstractPodmanMojoExecutes this Mojo internally.- Specified by:
executeInternalin classAbstractPodmanMojo- Parameters:
hub- AServiceHubinstance providing access to relevant services- Throws:
org.apache.maven.plugin.MojoExecutionException- In case anything happens during execution which prevents execution from continuing
-
skipGoal
protected boolean skipGoal()
Description copied from class:AbstractPodmanMojoCheck if the execution of the mojo should be skipped- Specified by:
skipGoalin classAbstractPodmanMojo- Returns:
- whether the mojo should be skipped
-
-