Package com.igormaznitsa.mvngolang
Class GolangCleanMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.igormaznitsa.mvngolang.AbstractGolangMojo
-
- com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.GolangCleanMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="clean", defaultPhase=CLEAN, threadSafe=true, requiresDependencyResolution=COMPILE) public class GolangCleanMojo extends AbstractGoPackageAndDependencyAwareMojoThe Mojo wraps the 'clean' command.
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
DELETE_GO_SUM_FLAG_FILE, GO_MOD_FILE_NAME_BAK
-
Fields 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 GolangCleanMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterExecution(ProxySettings proxySettings, boolean error)voidbeforeExecution(ProxySettings proxySettings)StringgetGoCommand()protected StringgetSkipMojoPropertySuffix()booleanisSourceFolderRequired()-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
getCommandFlags, getDefaultPackages, getPackages, getTailArguments, setPackages
-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
doesNeedSessionLock, doInit, getDependencyTempFolder, getSpecialPartOfGoPath, isDeleteSumFile, isIncludeTestDependencies, isRestoreGoMod, isScanDependencies, isSyncSessionIfModules, setDependencyTempFolder, setIncludeTestDependencies, setScanDependencies, setSyncSessionIfModules
-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGolangMojo
adaptExecNameForOS, addTmpBuildFlagIfNotPresented, doesNeedOneMoreAttempt, doLogging, 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, isUseEnvVars, isUseMavenProxy, isVerbose, logOptionally, makeExecutableFileSubpath, makePathFromExtraGoPathElements, prepareExecutor, printLogs, registerEnvVars, registerOutputBuffers, setDisableSslCheck, setModuleMode, setWorkingDir
-
-
-
-
Method Detail
-
isSourceFolderRequired
public boolean isSourceFolderRequired()
- Overrides:
isSourceFolderRequiredin classAbstractGolangMojo
-
getGoCommand
@Nonnull public String getGoCommand()
- Specified by:
getGoCommandin classAbstractGolangMojo
-
getSkipMojoPropertySuffix
@Nullable protected String getSkipMojoPropertySuffix()
- Overrides:
getSkipMojoPropertySuffixin classAbstractGolangMojo
-
beforeExecution
public void beforeExecution(@Nullable ProxySettings proxySettings) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
- Overrides:
beforeExecutionin classAbstractGolangMojo- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
afterExecution
public void afterExecution(@Nullable ProxySettings proxySettings, boolean error) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
- Overrides:
afterExecutionin classAbstractGoDependencyAwareMojo- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
-