Package com.igormaznitsa.mvngolang
Class AbstractModuleAware
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.igormaznitsa.mvngolang.AbstractGolangMojo
-
- com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.AbstractModuleAware
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GolangBuildMojo,GolangFixMojo,GolangGenerateMojo,GolangGetMojo,GolangInstallMojo,GolangListMojo,GolangModMojo,GolangRunMojo,GolangTestMojo,GolangVetMojo
public abstract class AbstractModuleAware extends AbstractGoPackageAndDependencyAwareMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected StringmodParameter allows define '-mod' parameter for command in format '-mod=value'.-
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 AbstractModuleAware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]getAdditionalCommandFlags()String[]getCommandFlags()StringgetMod()-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
getDefaultPackages, 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, getGoCommand, getGoPath, getGoRoot, getGoRootBootstrap, getGoVersion, getOptionalExtraTailArguments, getOs, getOSXVersion, getOutLogFile, getProject, getProxy, getRemoteRepositories, getReportsFolder, getSdkArchiveName, getSdkDownloadUrl, getSdkSite, getSession, getSkipMojoPropertySuffix, 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, prepareExecutor, printLogs, registerEnvVars, registerOutputBuffers, setDisableSslCheck, setModuleMode, setWorkingDir
-
-
-
-
Field Detail
-
mod
@Parameter(name="mod") protected String mod
Parameter allows define '-mod' parameter for command in format '-mod=value'. Also can be defined through property 'mvn.golang.module.mod' If the parameter is empty then it will not be added into command line and current default GoSDK value will be in use.- Since:
- 2.3.8
-
-
Method Detail
-
getCommandFlags
@Nonnull @MustNotContainNull public final String[] getCommandFlags()
- Overrides:
getCommandFlagsin classAbstractGoPackageAndDependencyAwareMojo
-
-