Class AbstractGoDependencyAwareMojo

    • Constructor Detail

      • AbstractGoDependencyAwareMojo

        public AbstractGoDependencyAwareMojo()
    • Method Detail

      • isSyncSessionIfModules

        public boolean isSyncSessionIfModules()
      • setSyncSessionIfModules

        public void setSyncSessionIfModules​(boolean value)
      • getDependencyTempFolder

        @Nonnull
        public String getDependencyTempFolder()
      • isDeleteSumFile

        public boolean isDeleteSumFile()
      • setDependencyTempFolder

        public void setDependencyTempFolder​(@Nonnull
                                            String path)
      • isScanDependencies

        public boolean isScanDependencies()
      • setScanDependencies

        public void setScanDependencies​(boolean flag)
      • isIncludeTestDependencies

        public boolean isIncludeTestDependencies()
      • setIncludeTestDependencies

        public void setIncludeTestDependencies​(boolean value)
      • doInit

        public final void doInit()
                          throws org.apache.maven.plugin.MojoFailureException,
                                 org.apache.maven.plugin.MojoExecutionException
        Overrides:
        doInit in class AbstractGolangMojo
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.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:
        afterExecution in class AbstractGolangMojo
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException
      • isRestoreGoMod

        protected boolean isRestoreGoMod()
      • getSpecialPartOfGoPath

        @Nonnull
        protected final String getSpecialPartOfGoPath()
        Description copied from class: AbstractGolangMojo
        Internal method which returns special part of GOPATH which can be formed by mojos. Must be either empty or contain folders divided by file path separator.
        Overrides:
        getSpecialPartOfGoPath in class AbstractGolangMojo
        Returns:
        special part of GOPATH, must not be null, by default must be empty