Required Software
- Java 1.6+
- Maven 3.0.3+
- Git (not ancient...)
- Eclipse for Java EE developers (I used 3.7 Juno)
For ubuntu the first last three are easy. Well, Sun Sun Java can be a bit tricky in the newer versions, but there are already plenty of guides about how to do that on the internet. Specifically, I used this one: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/
Also, if after you install maven you get an error that looks something like this:
Code Block |
---|
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher |
Then chances are good that, like me, your M2_HOME environment variable is set to the wrong place. To find the right place execute:
Code Block |
---|
find /usr -type d -name maven |
On my machine it was /usr/share/maven
Eclipse is also easy, just download and unzip.
...
- m2e url: http://download.eclipse.org/technology/m2e/releases
- gwt url: http://dl.google.com/eclipse/plugin/3.7
- (optionally) egit url: http://download.eclipse.org/releases/juno
- note that I don't use the eclipse git integration so I can't speak to it's stability, usability etc.
...