Package com.igormaznitsa.mvngolang
Class GolangFixMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="fix", defaultPhase=VALIDATE, threadSafe=true, requiresDependencyResolution=COMPILE) public class GolangFixMojo extends AbstractModuleAwareThe Mojo wraps the 'fix' command.
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.mvngolang.AbstractModuleAware
mod
-
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 GolangFixMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]getDefaultPackages()StringgetGoCommand()protected StringgetSkipMojoPropertySuffix()booleanisEnforcePrintOutput()booleanisSourceFolderRequired()-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractModuleAware
getAdditionalCommandFlags, getCommandFlags, getMod
-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
getPackages, getTailArguments, setPackages
-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
afterExecution, doesNeedSessionLock, doInit, getDependencyTempFolder, getSpecialPartOfGoPath, isDeleteSumFile, isIncludeTestDependencies, isRestoreGoMod, isScanDependencies, isSyncSessionIfModules, setDependencyTempFolder, setIncludeTestDependencies, setScanDependencies, setSyncSessionIfModules
-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGolangMojo
adaptExecNameForOS, addTmpBuildFlagIfNotPresented, beforeExecution, 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, 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
-
getSkipMojoPropertySuffix
@Nullable protected String getSkipMojoPropertySuffix()
- Overrides:
getSkipMojoPropertySuffixin classAbstractGolangMojo
-
getDefaultPackages
@Nullable @MustNotContainNull protected String[] getDefaultPackages()
- Overrides:
getDefaultPackagesin classAbstractGoPackageAndDependencyAwareMojo
-
getGoCommand
@Nonnull public String getGoCommand()
- Specified by:
getGoCommandin classAbstractGolangMojo
-
isEnforcePrintOutput
public boolean isEnforcePrintOutput()
- Overrides:
isEnforcePrintOutputin classAbstractGolangMojo
-
-