@Mojo(name="build",
defaultPhase=PACKAGE,
threadSafe=true,
requiresDependencyResolution=COMPILE)
public class GolangBuildMojo
extends AbstractGoPackageAndDependencyAwareMojo
buildFlagsToIgnore, GOARTIFACT_PACKAGING, NAME_PATTERN, settings, tempBuildFlags| Constructor and Description |
|---|
GolangBuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecution(ProxySettings proxySettings,
boolean error) |
void |
beforeExecution(ProxySettings proxySettings) |
String |
getBuildMode() |
String[] |
getCommandFlags() |
String |
getGoCommand() |
List<String> |
getLdflagsAsList() |
String |
getResultFolder() |
String |
getResultName() |
boolean |
isCommandSupportVerbose() |
boolean |
isStrip() |
void |
setBuilMode(String buildMode) |
void |
setStrip(boolean flag) |
getDefaultPackages, getPackages, getTailArguments, setPackagesdoInit, getDependencyTempFolder, getSpecialPartOfGoPath, isIncludeTestDependencies, isScanDependencies, setDependencyTempFolder, setIncludeTestDependencies, setScanDependenciesadaptExecNameForOS, addTmpBuildFlagIfNotPresented, doesNeedOneMoreAttempt, doMainBusiness, execute, findExisting, findGoPath, findGoRoot, findGoRootBootstrap, getArch, getArtifactResolver, getBuildFlags, getConnectionTimeout, getEnv, getErrLogFile, getExec, getExecSubpath, getExecution, getExtraBuildFlags, getGoBin, getGoPath, getGoRoot, getGoRootBootstrap, getGoVersion, getOptionalExtraTailArguments, getOs, getOSXVersion, getOutLogFile, getProject, getProxy, getRemoteRepositories, getReportsFolder, getSdkArchiveName, getSdkDownloadUrl, getSdkSite, getSession, getSources, getStoreFolder, getSupposeSdkArchiveFileName, getTarget386, getTargetArch, getTargetArm, getTargetOS, getUseGoTool, initConsoleBuffers, isCheckSdkHash, isDisableSdkLoad, isDisableSslCheck, isEnforceGoPathToEnd, isEnforcePrintOutput, isFilterEnvPath, isHideBanner, isIgnoreErrorExitCode, isKeepSdkArchive, isKeepUnarchFolderIfError, isMojoMustNotBeExecuted, isSkip, isSourceFolderRequired, isUseEnvVars, isUseMavenProxy, isVerbose, logOptionally, makeExecutableFileSubpath, makePathFromExtraGoPathElements, prepareExecutor, printLogs, processConsoleOut, registerEnvVars, registerOutputBuffers, setDisableSslCheckpublic boolean isStrip()
public void setStrip(boolean flag)
@Nonnull public String getGoCommand()
getGoCommand in class AbstractGolangMojopublic void beforeExecution(@Nullable ProxySettings proxySettings) throws org.apache.maven.plugin.MojoFailureException
beforeExecution in class AbstractGolangMojoorg.apache.maven.plugin.MojoFailureExceptionpublic void afterExecution(@Nullable ProxySettings proxySettings, boolean error) throws org.apache.maven.plugin.MojoFailureException
afterExecution in class AbstractGolangMojoorg.apache.maven.plugin.MojoFailureExceptionpublic boolean isCommandSupportVerbose()
isCommandSupportVerbose in class AbstractGolangMojo@Nonnull @MustNotContainNull public String[] getCommandFlags()
getCommandFlags in class AbstractGoPackageAndDependencyAwareMojoCopyright © 2016–2019 Igor Maznitsa. All rights reserved.