How To: Install Eclipse, STS, SVN and MVN on OSX Mavericks
In a previous post, I wrote about installing Alfresco (Community Edition) on OSX Mavericks in order to take a look at the new features in Alfresco version 5 (5.0.a).
Now that I have Alfresco 5 up and running there are a few more tasks that I need to complete in order to build Alfresco using Maven.
In this post, we'll install:
- The Eclipse IDE for Java EE Developers
- The Spring Tool Suite
- Subversion
- Subclipse
- Maven
Prerequisites
Install Eclipse
First, we need to download Eclipse:
I downloaded the Eclipse IDE for Java EE Developers for Mac OS X 64 Bit (Luna 4.4):
eclipse-jee-luna-R-macosx-cocoa-x86_64.tar.gz
Now, we just need to unpack (open with the Archive Utility) the file, and move the eclipse
folder into the Applications folder:
For easy access to Eclipse, open the eclipse
folder and drag the Eclipse application to the Dock:
Launch Eclipse, go to Preferences and choose the default JRE for your project:
Install the Spring Tool Suite
We've already installed Eclipse, so the quickest way to install the Spring Tool Suite (STS) is to download an archived version of the STS update site:
I downloaded the Spring Tool Suite update site archive for Eclipse 4.4:
springsource-tool-suite-3.6.0.RELEASE-e4.4-updatesite.zip
Go to Help -> Install New Software and click the ‘Add’ button:
Enter a name (e.g., 'STS Update Site Archive’), click the ‘Archive’ button, select the file that you just downloaded and then click OK.
Check the items that you want to install, then click Finish. When prompted, accept the confirmations and then restart Eclipse.
And, take a look at the Spring Perspective.
Install Subversion
I used brew to install Subversion:
brew install --universal --java subversion
Now, we need to check which version brew installed:
java -version
You should see output like:
svn, version 1.7.10 (r1485443)
Install Subclipse
Brew installed version 1.7 of Subversion which means we need to install Subclipse version 1.8. The quickest way to install Subclipse is to download an archived version of the Subclipse update site.
Note: In Eclipse (Luna 4.4), you can see which software you have installed (and uninstall software) if you go to Help -> Installation Details.
I downloaded the update site archive for Subclipse 1.8.22:
site-1.8.22.zip
Go to Help -> Install New Software and click the ‘Add’ button. Enter a name (e.g., 'Subclipse Update Site Archive’), click the ‘Archive’ button, select the file that you just downloaded and then click OK. Check the items that you want to install, then click Finish. When prompted, accept the confirmations and then restart Eclipse.
Then, go to Preferences -> Team -> SVN and make sure that the SVN interface is set to SVNKit:
Install Maven
I used brew to install Maven:
brew install maven
Check which version brew installed:
mvn -version
You should see output like:
Apache Maven 3.2.2
Maven home: /usr/local/Cellar/maven/3.2.2/libexec
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"
What's Next
In the next post, we'll build Alfresco using Subclipse and Maven.