Eclipse 3.5 is out in the wild for some days now and as always I downloaded the newest version as fast as possible. After installing the first plugins I was struggling with the following problem when I wanted to change the embedded maven to my installed version under the directory /usr/local/maven on my MacBook Pro.
In the former version of Eclipse (3.4.2) which I’m using in my daily business it was no problem to select in this directory in the dialog which is popping up when you select in the eclipse preferences maven->installations->add.
It looks like this – the folder /usr/local/maven is accessible by clicking on it

File choosing dialog with Eclipse 3.4.2

But when I do the same with Eclipse 3.5 I get the following dialog

File choosing dialog with Eclipse 3.5

A lot of directories does not appear anymore… :( after searching a lot I found the really simple solution…

Just click on “new folder” (“neuer Ordner” in german) then you get a new little dialog where you can enter the path to your maven installation by hand… in my case /usr/local/maven… If you start typing in this dialog the little dialog switches again to an other dialog which is shown in the next screenshot (titled switch to folder/gehe zu Ordner)

File choosing dialog with Eclipse 3.5 after click on new folder/neuer Ordner

If you klick start you get the following result… the dialog is now in your directory you wanted to select and you can select it at the end :)

File choosing dialog with Eclipse 3.5 result

I checked this behavior with other dialogs in the Eclipse 3.5 preferences like Java->Code Style->Code Templates->Import… There it’s also not possible to navigate like in the dialog in Eclipse 3.4.2

So I hope this saves someone a bit of searching time :)

… erstmal ganz erfreulich die Installation unter Mac OS X – wie immer eben ;) . Downloaden, Auspacken und Starten. Fertig? Nein. Denn blöderweise sind nicht die aktuellen Repository Adressen in der ausgelieferten Version 1.3.4 enthalten, was zu dem hier beschriebenen Problem führt. ReIndex hat keinerlei Wirkung – es passiert einfach gar nichts. Am besten die bereits konfigurierten Repositories löschen und die Repositories neu anlegen (mit korrekter URL!) wichtig beim ausführen des ReIndex – das dauert etwas – also kurz warten.

Ansonsten beschreibt das Vimeo auf dieser Seite die Installation sehr gut. Und das downloaden der Artefakte beschleunigt sich erheblich!

Noch ein kurzer Nachtrag:
Nach ein Paar Tagen ging’s mir ziemlich auf den Keck’s den Nexus immer von Hand starten zu müssen. Daher hier noch der Tipp wie man den Nexus unter OS X auf dem Mac beim einloggen hochfahren kann.

Als erstes brauchen wir hierzu eine .plist Datei

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>Label</key>
		<string>sonatype.nexus</string>
		<key>Program</key>
		<!-- Enter the path to your nexus installation here -->
		<string>/usr/local/nexus/nexus-current/bin/jsw/macosx-universal-32/nexus</string>
		<key>ProgramArguments</key>
		<array>
			<string>nexus</string>
			<string>start</string>
		</array>
		<key>RunAtLoad</key>
		<true/>
	</dict>
</plist>

Diese speichern wir unter dem Verzeichnis
~/Library/LauchAgents/sonatype.nexus.plist
Als Nächstes tragen wir das Ganze mit dem launchctl Kommando auf der Console ein
launchctl start sonatype.nexus

Das war’s dann auch schon. Ab jetzt sollte nach dem einloggen des Users im Browser unter localhost:8081/nexus die Adminconsole von Nexus erscheinen.

Die Idee hab ich übrigens von hier. Aber die .plist Datei von dort funktioniert absolut nicht – sieht auch sehr experimentell aus. Würd’ dem Autor auch gern in seinem Blog schreiben, aber extra dafür anmelden??? :s

Follow

Bekomme jeden neuen Artikel in deinen Posteingang.