Package com.igormaznitsa.mvngolang
Class GolangCustomMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.igormaznitsa.mvngolang.AbstractGolangMojo
-
- com.igormaznitsa.mvngolang.AbstractGoDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
-
- com.igormaznitsa.mvngolang.GolangCustomMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="custom", defaultPhase=PACKAGE, threadSafe=true, requiresDependencyResolution=NONE) public class GolangCustomMojo extends AbstractGoPackageAndDependencyAwareMojoThe Mojo allows to process commands which are not covered by MOJOs of the plug-in.
-
-
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 GolangCustomMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGoCommand()protected StringgetSkipMojoPropertySuffix()booleanisEnforcePrintOutput()-
Methods inherited from class com.igormaznitsa.mvngolang.AbstractGoPackageAndDependencyAwareMojo
getCommandFlags, 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, 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, isSourceFolderRequired, isUseEnvVars, isUseMavenProxy, isVerbose, logOptionally, makeExecutableFileSubpath, makePathFromExtraGoPathElements, prepareExecutor, printLogs, registerEnvVars, registerOutputBuffers, setDisableSslCheck, setModuleMode, setWorkingDir
-
-
-
-
Method Detail
-
getSkipMojoPropertySuffix
@Nullable protected String getSkipMojoPropertySuffix()
- Overrides:
getSkipMojoPropertySuffixin classAbstractGolangMojo
-
getGoCommand
@Nonnull public String getGoCommand()
- Specified by:
getGoCommandin classAbstractGolangMojo
-
isEnforcePrintOutput
public boolean isEnforcePrintOutput()
- Overrides:
isEnforcePrintOutputin classAbstractGolangMojo
-
-