You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example how to build a GoLang application with Maven and the mvn-golang-wrapper plugin.
Just clone the project and build with mvn package
What is Maven?
Maven is very popular tool in Java world allows to build projects and the main power of maven in its central repository which allows to load dependencies without tricks.
If you have not maven installed on your computer, you can visit its home page and read instructions how to install. Also the project contains mvnw wrapper which can download maven automatically.
Build and start
To get compiled example Golang application you should make listed steps:
What to do if I want to use pre-installed Golang SDK?
In the case just define <goRoot> in plug-in configuration
<goRoot>some/folder/where/go</goRoot>
and plug-in will be using already installed distributive
I want to export already presented environment variables $GOROOT and $GOPATH
By defaut the plug-in using only parameters defined in its configuration, if you want to enable import of environment parameters $GOROOT, $GOOS, $GOARCH and $GOROOT_BOOTSTRAP (if they defined), then just add flag <useEnvVars>into plug-in configuration
<useEnvVars>true</useEnvVars>
About
Example application "Hello World" with the mvn-golang-wrapper plugin