Package org.eolang.hone
Class BuildMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eolang.hone.BuildMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="build", defaultPhase=GENERATE_RESOURCES) public final class BuildMojo extends org.apache.maven.plugin.AbstractMojo
Build Docker image.This goal must be used only if you want to build a local custom Docker image for your project. This may be useful when you don't have network access to Docker Hub. In most cases, you have it and that's why don't need this goal. Instead, just use the pull goal, which will simply pull a required Docker image from the Hub.
This goal is mostly for testing and CI/CD.
- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description BuildMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec()
void
execute()
-
-
-
Field Detail
-
image
@Parameter(property="hone.image", defaultValue="yegor256/hone") protected String image
Docker image to use.- Since:
- 0.1.0
- Suppressed Checkstyle violations:
- VisibilityModifierCheck (5 lines)
-
sudo
@Parameter(property="hone.sudo", defaultValue="false") protected boolean sudo
Use "sudo" for "docker".- Since:
- 0.1.0
- Suppressed Checkstyle violations:
- VisibilityModifierCheck (5 lines)
-
-
Method Detail
-
exec
public void exec() throws IOException
- Throws:
IOException
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-