Class AbstractDockerMojo

    • Field Detail

      • dockerContext

        @Parameter(defaultValue="${project.basedir}",
                   property="orphedomos.docker.context")
        protected File dockerContext
      • dryRun

        @Parameter(defaultValue="false",
                   property="orphedomos.build.dryrun")
        protected boolean dryRun
      • settings

        @Parameter(defaultValue="${settings}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.settings.Settings settings
      • imageName

        @Parameter(defaultValue="${project.artifactId}",
                   property="orphedomos.image.name")
        protected String imageName
      • imageVersion

        @Parameter(defaultValue="${project.version}",
                   property="orphedomos.image.version")
        protected String imageVersion
      • aliases

        @Parameter(property="orphedomos.image.aliases")
        protected String[] aliases
      • usePlainTextPassword

        @Parameter(defaultValue="false",
                   property="orphedomos.credential.usePlainTextPassword")
        protected boolean usePlainTextPassword
      • repoId

        @Parameter(defaultValue="",
                   property="orphedomos.repository.id")
        protected String repoId
      • repoUrl

        @Parameter(defaultValue="",
                   property="orphedomos.repository.url")
        protected String repoUrl
      • useBuildKit

        @Parameter(defaultValue="true",
                   property="orphedomos.buildkit.enable")
        protected boolean useBuildKit
      • dockerfilePath

        @Parameter(defaultValue="/src/main/resources/docker/Dockerfile",
                   property="orphedomos.dockerfile.path")
        protected String dockerfilePath
      • targetArchitectures

        @Parameter(property="orphedomos.build.architecture")
        protected String[] targetArchitectures
      • buildArgs

        @Parameter(property="orphedomos.build.args")
        protected Map<String,​String> buildArgs
    • Constructor Detail

      • AbstractDockerMojo

        public AbstractDockerMojo()
    • Method Detail

      • getImageTag

        protected String getImageTag()
      • getImageTagWithArch

        protected String getImageTagWithArch​(String arch)
      • isOrphedomosModule

        protected boolean isOrphedomosModule()
      • getDockerfilePath

        protected String getDockerfilePath()
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • doExecute

        protected abstract void doExecute()
                                   throws org.apache.maven.plugin.MojoExecutionException,
                                          org.apache.maven.plugin.MojoFailureException
        Encapsulates all build logic associated with this plugin goal - execute() delegates to this method after performing execution handling that is common across all Mojos.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - a mojo exception
        org.apache.maven.plugin.MojoFailureException - a mojo failure
      • getArgumentsList

        protected List<String> getArgumentsList()
      • login

        protected void login()
                      throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • logout

        protected void logout()
                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • prependRegistry

        protected String prependRegistry​(String suffix)
      • findPasswordForServer

        protected String findPasswordForServer​(String serverId)
                                        throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException