Package org.eolang.hone
Class PullMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eolang.hone.PullMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="pull",
defaultPhase=PROCESS_CLASSES,
requiresProject=false)
public final class PullMojo
extends org.apache.maven.plugin.AbstractMojo
Pull Docker image from Docker Hub.
This goal pulls Docker image from Docker Hub to your machine. You may skip this goal and simply use the optimize goal, which will automatically pull the image from the Hub. However, it would be cleaner to use pull, then optimize, and then rmi (which deletes the image from your machine).
- Since:
- 0.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Run without Docker even if phino is available.protected String
Docker image to use.protected boolean
Whether to use "sudo" when executing Docker commands.protected File
The "target/" directory of Maven project.protected org.eolang.hone.Timings
Timings tracker for performance measurements.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
target
The "target/" directory of Maven project.- Since:
- 0.1.0
-
timings
protected org.eolang.hone.Timings timingsTimings tracker for performance measurements.- Since:
- 0.1.0
-
image
Docker image to use.- Since:
- 0.1.0
-
sudo
@Parameter(property="hone.sudo", defaultValue="false") protected boolean sudoWhether to use "sudo" when executing Docker commands.- Since:
- 0.1.0
-
alwaysWithDocker
@Parameter(property="hone.always-with-docker", defaultValue="false") protected boolean alwaysWithDockerRun without Docker even if phino is available.If this is set to true, Docker is used even if phino is available. It is recommended to keep this parameter to false, thus making the build faster if it's possible.
- Since:
- 0.17.0
- Suppressed Checkstyle violations:
- MemberNameCheck (6 lines)
-
-
Constructor Details
-
PullMojo
public PullMojo()
-
-
Method Details
-
exec
- Throws:
IOException
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-