Skip to content

Instantly share code, notes, and snippets.

@rhuss
Last active September 9, 2015 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhuss/72453bfce7b2997eb88d to your computer and use it in GitHub Desktop.
Save rhuss/72453bfce7b2997eb88d to your computer and use it in GitHub Desktop.

gofabric8 IDE setup for IntelliJ IDEA

In Shell:

  • export $GOPATH=~/go/workspace
  • mkdir -p $GOPATH
  • export PATH=$PATH:$GOPATH/bin
  • cd ~/go
  • rm -rf workspace/*
  • go get github.com/tools/godep
  • git clone git@github.com:rhuss/gofabric8.git
  • mkdir -p workspace/src/github.com/fabric8io/
  • ln -s $(pwd)/gofabric8 workspace/src/github.com/fabric8io/
  • cd gofabric8
  • mv pom.xml pom.xml.back # don't know whether this is needed, just be to sure not to confuse IDEA

In IDEA:

  • Go-Plugin Version 0.9.485
  • New --> Project from Existing Sources ...
  • Select ~/go/gofabric8
  • Preferences --> Language & Frameworks --> Go --> Go Libraries
  • Check "Use GOPATH ..."
  • Add to "Project Libraries" --> ~/go/gofabric8/Godeps/_workspace/src

Bingo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment