Package com.igormaznitsa.mvngolang
Class GolangJfrogCliMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.igormaznitsa.mvngolang.AbstractGolangMojo
com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
com.igormaznitsa.mvngolang.GolangJfrogCliMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jfrog-cli",
defaultPhase=NONE,
threadSafe=true)
public class GolangJfrogCliMojo
extends AbstractGoDependencyAwareMojo
Minimalistic mojo provides way to call external JFrog CLI executable tool
with environment provided by the Golang wrapper and wrapped GoSDK.JFrog
CLI tool must be provided externally!
JFrog CLI executable file can be downloaded from
the web page
Documentation of the JFrog CLI can be found
here.
- Since:
- 2.3.0
-
Field Summary
Fields inherited from class com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
DELETE_GO_SUM_FLAG_FILE, GO_MOD_FILE_NAME_BAKFields inherited from class com.igormaznitsa.mvngolang.AbstractGolangMojo
buildFlagsToIgnore, ENV_GO111MODULE, GO_MOD_FILE_NAME, GO_SUM_FILE_NAME, GOARTIFACT_PACKAGING, NAME_PATTERN, settings, tempBuildFlags -
Constructor Summary
Constructors Constructor Description GolangJfrogCliMojo() -
Method Summary
Modifier and Type Method Description List<String>getArguments()StringgetCliPath()StringgetCommand()String[]getCommandFlags()StringgetGoCommand()protected StringgetSkipMojoPropertySuffix()String[]getTailArguments()StringgetTarget()protected org.zeroturnaround.exec.ProcessExecutorprepareExecutor(ProxySettings proxySettings)Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
afterExecution, doesNeedSessionLock, doInit, getDependencyTempFolder, getSpecialPartOfGoPath, isIncludeTestDependencies, isRestoreGoMod, isScanDependencies, isSyncSessionIfModules, setDependencyTempFolder, setIncludeTestDependencies, setScanDependencies, setSyncSessionIfModulesMethods inherited from class com.igormaznitsa.mvngolang.AbstractGolangMojo
adaptExecNameForOS, addTmpBuildFlagIfNotPresented, beforeExecution, doesNeedOneMoreAttempt, doMainBusiness, execute, findAllGoModsInFolder, findExisting, findGoPath, findGoRoot, findGoRootBootstrap, findMvnProperty, getArch, getArtifactResolver, getBuildFlags, getConnectionTimeout, getEnv, getErrLogFile, getExec, getExecSubpath, getExecution, getExtraBuildFlags, getGoBin, getGoCache, getGoPath, getGoRoot, getGoRootBootstrap, getGoVersion, getOptionalExtraTailArguments, getOs, getOSXVersion, getOutLogFile, getProject, getProxy, getRemoteRepositories, getReportsFolder, getSdkArchiveName, getSdkDownloadUrl, getSdkSite, getSession, getSources, getStoreFolder, getSupposeSdkArchiveFileName, getTarget386, getTargetArch, getTargetArm, getTargetOS, getTempFileFolder, getUseGoTool, getWorkingDir, getWorkingDirectoryForExecutor, initConsoleBuffers, isCheckSdkHash, isCommandSupportVerbose, isDisableSdkLoad, isDisableSslCheck, isEnforceGoPathToEnd, isEnforcePrintOutput, isFilterEnvPath, isHideBanner, isIgnoreErrorExitCode, isKeepSdkArchive, isKeepUnarchFolderIfError, isModuleMode, isMojoMustNotBeExecuted, isSkip, isSourceFolderRequired, isUseEnvVars, isUseMavenProxy, isVerbose, logOptionally, makeExecutableFileSubpath, makePathFromExtraGoPathElements, printLogs, processConsoleOut, registerEnvVars, registerOutputBuffers, setDisableSslCheck, setModuleMode, setWorkingDir
-
Constructor Details
-
GolangJfrogCliMojo
public GolangJfrogCliMojo()
-
-
Method Details
-
getArguments
-
getCliPath
-
getTarget
-
getCommand
-
getSkipMojoPropertySuffix
- Overrides:
getSkipMojoPropertySuffixin classAbstractGolangMojo
-
prepareExecutor
@Nonnull protected org.zeroturnaround.exec.ProcessExecutor prepareExecutor(@Nullable ProxySettings proxySettings) throws IOException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException- Overrides:
prepareExecutorin classAbstractGolangMojo- Throws:
IOExceptionorg.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
getTailArguments
- Specified by:
getTailArgumentsin classAbstractGolangMojo
-
getGoCommand
- Specified by:
getGoCommandin classAbstractGolangMojo
-
getCommandFlags
- Specified by:
getCommandFlagsin classAbstractGolangMojo
-