Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Wednesday, April 25, 2012

P2 support for Nexus OSS


 
Working with latest OSGi technology I use Tycho + Maven for my CI builds. This makes it necessary to deal with P2. To speed things up it is a good idea to proxy your P2 repositories. You can easily achieve this by "upgrading" Sonatype Nexus OSS edition to provide P2 capabilities.

Go to the Sonatype RSO repository and download the following bundles:
  • nexus-p2-repository-plugin
  • nexus-p2-bridge-plugin
If necessary also download a recent version of the nexus-capabilities-plugin.
Stop your Nexus instance and copy the downloaded bundles to NEXUS_HOME/nexus/WEB-INF/plugin-repository

Now you are done and can startup Nexus and will have P2 support.
As a first step I highly recommend to mirror/proxy the Eclipse P2 repository:
http://download.eclipse.org/releases/indigo/

Tuesday, February 28, 2012

Learning Go

Go is the new kid in town which wants to superseed the programming language C.

So let's have a brief overview of what Go brings to the table:
  • typesafety
  • garbage collection
  • concurrency
  • clean and concise syntax
  • error handling via panic/recover
Let's take a ride with Go on Debian GNU/Linux with Eclipse:

sudo apt-get install golang-weekly

I assume you have already installed Eclipse. Go is supported with Eclipse via the Goclipse plugin.

Install Goclipse via the following update site:
http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/

Now hook your Go installation up with the Goeclipse plugin goto Window>Preferences>Go and apply the following path settings:

Now we are ready to create a classical hello world.
  • change to Go perspective
  • create a new Go Project and name it HelloGo
  • within HelloGo/src/cmd create a new main.go (see content below)
  • now run main.go(right click Run As>Run Go Application)

package main

import (
 "fmt"
)

func main() {
 fmt.Printf("Hello World!")
}

So that's it for now have fun :-)