tag:blogger.com,1999:blog-21287567465832395652024-03-14T03:35:39.338-07:00Spring MavericksAnonymoushttp://www.blogger.com/profile/08693052642951710120noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2128756746583239565.post-92083465559143368572015-05-11T12:16:00.001-07:002015-06-10T20:05:31.756-07:00<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGetVPco6wmGYZPpv9By7h-JXw4jwBpPY_AiE3hOyVEXF7aKfqua6z4mKaHXAdY79E71GtJNd744hYxdhQ5jCmrjqYy9CHxR4_1z-RGRnkO9mX8588axqNY1yLsCG_k6JRPO1A_-YoAJud/s1600/Liveworx2015Hackathon.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGetVPco6wmGYZPpv9By7h-JXw4jwBpPY_AiE3hOyVEXF7aKfqua6z4mKaHXAdY79E71GtJNd744hYxdhQ5jCmrjqYy9CHxR4_1z-RGRnkO9mX8588axqNY1yLsCG_k6JRPO1A_-YoAJud/s320/Liveworx2015Hackathon.jpg" width="320" /></a></div>
<div>
<br /></div>
What an experience that week at the Liveworx Hackathon was! All told, I was transported into the Internet of Things (IoT) future and back again several times over. Not only did my team stay up all night Saturday hacking on what turned out to be a killer piece of software, but we ultimately ended up winning our Smart City division and later had the opportunity to meet and pose with Steve Wozniak on the Liveworx stage!<br />
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/08693052642951710120noreply@blogger.com0tag:blogger.com,1999:blog-2128756746583239565.post-80688573799558402182014-02-23T12:51:00.001-08:002014-02-23T12:54:49.933-08:00Review of STS 3.5.0.M2<div class="p1">
STS 3.5.0.M2 experience so far</div>
<div class="p1">
<br /></div>
<div class="p1">
After a weekend of grueling frustration trying to convert a Spring Boot application to a war file so as to be able to deploy it to a normal (as opposed to embedded) Tomcat server using STS 3.0.4 release, I was nearly ready to give up and seek out another IDE when I suddenly noticed that Pivotal had just announced the release of STS version 3.5.0.M2. I figured I had nothing to lose, so why not try it?</div>
<div class="p1">
<br /></div>
<div class="p1">
What follow are my impressions so far based on some very short (under 1 hour) experiences, and for those who want to cut to the chase, I will just say that my entire weekend of frustration was just *vanquished* within ten minutes of starting STS 3.5.0.M2!!!</div>
<div class="p2">
<br /></div>
<div class="p2">
I began by testing the critical application I was stuck on all weekend using STS 3.0.4:</div>
<div class="p2">
<br /></div>
<div class="p1">
gs-convert-jar-to-war</div>
<div class="p2">
<br /></div>
<div class="p1">
<span class="Apple-tab-span"></span>First I added the [new] source from the new dashboard via “Import Getting Started Guide”</div>
<ul class="ul1">
<ul class="ul1">
<li class="li1">chose maven as project type since gradle seemed greyed out</li>
</ul>
</ul>
<ol class="ol1">
<li class="li1">Run--> Maven install</li>
</ol>
<div class="p1">
<span class="Apple-tab-span"> </span>BUILD SUCCESS. . . but</div>
<div class="p1">
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.</div>
<div class="p1">
<br /></div>
<div class="p1">
<span class="Apple-tab-span"> </span>SUCCESS! </div>
<div class="p3">
<span class="Apple-tab-span"> </span>Davids-MacBook-Pro:gs-convert-jar-to-war-complete dave$ find . -name "gs-convert*.?ar" -print</div>
<div class="p3">
<span class="Apple-tab-span"> </span>./target/gs-convert-jar-to-war-0.1.0.war</div>
<div class="p2">
<br /></div>
<ol class="ol1">
<li class="li1">Run As—> Spring Boot (Hello World runs as expected).</li>
<li class="li1">Deploy war onto Tomcat on another server - works as expected:</li>
</ol>
<br />
<div class="p1">
<span class="Apple-tab-span"> </span><a href="http://davemclure.myeffect.net/gs-convert-jar-to-war-0.1.0">http://davemclure.myeffect.net/gs-convert-jar-to-war-0.1.0</a></div>
<div class="p1">
<br /></div>
<div class="p1">
I am still savoring this! Meanwhile, no time to waste - I am back to tinkering. More reports to follow, but just know that you should definitely not wait to download STS 3.5.0.M2!</div>Anonymoushttp://www.blogger.com/profile/08693052642951710120noreply@blogger.com0tag:blogger.com,1999:blog-2128756746583239565.post-63480459738121650842014-02-16T15:31:00.001-08:002014-02-17T04:36:33.180-08:00Loading Spring Tool Suite (STS) onto OSX 10.9.1<br />
This is my first episode in what hopes to be a series - good for either learning about Spring on a Mac from the Mac Noob point of view, or as a substitute for counting sheep (or both).<br />
<br />
Loading Spring Tool Suite (STS) onto OSX 10.9.1<br />
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
As I began to install the Java SDK in my usual way - which is to simply download the zip file, extract it somewhere, and point to it with a JAVA_HOME environment variable, I began to think that maybe I ought to check out the Java Development Guide for Mac, which seems a little dated and has lots of broken links:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="https://developer.apple.com/library/mac/documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://developer.apple.com/<wbr></wbr>library/mac/documentation/<wbr></wbr>Java/Conceptual/<wbr></wbr>Java14Development/02-<wbr></wbr>JavaDevTools/JavaDevTools.html</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
After bumping around through the preceding Apple site for a while, I finally opted to seek out Java assistance elsewhere.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
I seemed to encounter two schools of thought for Installing the Java SDK on a Mac: a. Oracle or b. OpenJdk :</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
------------------------------<wbr></wbr>------------------------------<wbr></wbr>-------------</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
a. Oracle (v7.51)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://docs.oracle.com/<wbr></wbr>javase/7/docs/webnotes/<wbr></wbr>install/mac/mac-jdk.html</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
b. OpenJdk (Open Source - to basically roll your own custom SDK)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="https://github.com/hgomez/obuildfactory/wiki" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://github.com/hgomez/<wbr></wbr>obuildfactory/wiki</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing" saprocessedanchor="true" style="color: #1155cc;" target="_blank">. Install MacPorts</a> (<a href="http://www.macports.org/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://www.macports.org/</a>)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.x11" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.1. Install X11</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.xcode" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.2. Install Xcode</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.macports" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.3. Install MacPorts</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.macports.upgrade" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.4. MacPorts Upgrade</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.macports.uninstalling" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.5. Uninstall</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://guide.macports.org/#installing.shell" saprocessedanchor="true" style="color: #1155cc;" target="_blank">2.6. MacPorts and the Shell</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
. Install git and mercurial (hg) from <a href="http://www.macports.org/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://www.macports.org/</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
. etc. etc.… (I chose option a)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Java Documentation:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
------------------------------<wbr></wbr>------------------------------<wbr></wbr>-------------</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://java.sun.com/reference/docs/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://java.sun.com/<wbr></wbr>reference/docs/</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>1. Setting up JAVA_HOME for version 1.7:</b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
——————————————————————————————<wbr></wbr>——————</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
a. Edit .bash_profile (or .profile) and add these two lines:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
export JAVA_HOME=`/usr/libexec/java_<wbr></wbr>home -v 1.7`</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
export PATH=$JAVA_HOME/bin:$PATH;</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
b. Source the .bash_profile to activate the new environment variables in your bash shell.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
. ~/.bash_profile</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="https://developer.apple.com/library/mac/qa/qa1170/_index.html#//apple_ref/doc/uid/DTS10001702" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://developer.apple.com/<wbr></wbr>library/mac/qa/qa1170/_index.<wbr></wbr>html#//apple_ref/doc/uid/<wbr></wbr>DTS10001702</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://liberalsprouts.blogspot.com/2012/12/how-to-install-jdk-7-and-set-up.html" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://liberalsprouts.<wbr></wbr>blogspot.com/2012/12/how-to-<wbr></wbr>install-jdk-7-and-set-up.html</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>2. STS (for MAC)</b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
------------------------------<wbr></wbr>------------------------------<wbr></wbr>-------------</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://download.springsource.com/release/STS/3.4.0/dist/e4.3/groovy-grails-tool-suite-3.4.0.RELEASE-e4.3.1-macosx-cocoa-x86_64-installer.dmg" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://download.springsource.<wbr></wbr>com/release/STS/3.4.0/dist/e4.<wbr></wbr>3/groovy-grails-tool-suite-3.<wbr></wbr>4.0.RELEASE-e4.3.1-macosx-<wbr></wbr>cocoa-x86_64-installer.dmg</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>Problem:</b> STS installer currently requires Java SE 6 (on Mavericks OSX 10.9 anyway)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://forum.spring.io/forum/spring-projects/springsource-tool-suite/124231-trying-to-install-sts-3-1-0-in-os-x-10-8-jdk-situation" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://forum.spring.io/forum/<wbr></wbr>spring-projects/springsource-<wbr></wbr>tool-suite/124231-trying-to-<wbr></wbr>install-sts-3-1-0-in-os-x-10-<wbr></wbr>8-jdk-situation</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>Solution:</b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
a. Download the <span style="color: #252c2f; font-family: Helvetica, Arial, Verdana, sans-serif;">tar.gz-Version of STS, extract that, and go from there:</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="color: #252c2f; font-family: Helvetica, Arial, Verdana, sans-serif;"><a href="http://download.springsource.com/release/STS/3.4.0/dist/e4.3/spring-tool-suite-3.4.0.RELEASE-e4.3.1-macosx-cocoa.tar.gz" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://download.springsource.<wbr></wbr>com/release/STS/3.4.0/dist/e4.<wbr></wbr>3/spring-tool-suite-3.4.0.<wbr></wbr>RELEASE-e4.3.1-macosx-cocoa.<wbr></wbr>tar.gz</a></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="color: #252c2f; font-family: Helvetica, Arial, Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="color: #252c2f; font-family: Helvetica, Arial, Verdana, sans-serif;"> b. Choose a destination directory like a file folder on the Desktop, and un-tar the package there:</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
tar zxf spring-tool-suite-3.4.0.<wbr></wbr>RELEASE-e4.3.1-macosx-cocoa-<wbr></wbr>x86_64.tar.gz</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
c. Create a desktop icon (alias) pointing to <dest directory>/springsource/sts-3.<wbr></wbr>4.0.RELEASE/STS using Finder and drag it to the Desktop for easy access.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
d. [optional] Create another Desktop folder called workspaces</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
e. Click the new STS icon on the Desktop to run STS</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
1. At startup, choose a workspace location (Note: leave the "Use this as the default and do not ask again icon" unchecked for easier access to other workspaces at next startup).</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
(for more details, see <a href="http://forum.spring.io/forum/spring-projects/springsource-tool-suite/724671-sts-3-4-fails-on-mac-osx-mavericks" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://forum.spring.io/<wbr></wbr>forum/spring-projects/<wbr></wbr>springsource-tool-suite/<wbr></wbr>724671-sts-3-4-fails-on-mac-<wbr></wbr>osx-mavericks</a>)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
---</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Browse run the Spring Guides on <a href="http://spring.io/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://Spring.io</a> - when ready, take the Tutorials to learn best practices on designing Spring applications. </div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Most of the projects can be built with maven, but some also require Gradle. You can download Gradle from: <a href="http://www.gradle.org/downloads" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://www.gradle.org/<wbr></wbr>downloads</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
f. Install Gradle</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
For a very simple example project which is built using Gradle, as well as instructions for installing Gradle, see the following Guide:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
1. From The STS Dashboard, choose "Guides> Building Java Projects With Gradle"</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://spring.io/guides/gs/gradle/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://spring.io/guides/gs/<wbr></wbr>gradle/</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
(your mileage may vary - I got Permission errors trying to run the Gradle binaries straight up, so rather than hack the file system with chmod and chown, etc., I chose to look elsewhere to see whether maybe I was simply doing it wrong).</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
It was then that I found an alternate gradle install method using HomeBrew documented here :</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://www.tristanwaddington.com/category/blog/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://www.tristanwaddington.<wbr></wbr>com/category/blog/</a></div>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
</h2>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
3. Install Homebrew</h2>
<div>
Note: here is where things get a little nasty, so read through this section first to see what *not* to do, then at the end I summarize a little in the "Lessons Learned" section. I thought of editing this as a more straight forward set of steps, but I wanted to record what really happened too - in hopes of helping the Xcode and HomeBrew developers in smoothing out the Noob user experience. Ideally, I'd like to get some feedback to see if together, we can't eventually put together a cleaner version of this particular section.</div>
<div>
<br /></div>
<div>
So here is the ruby command which supposedly solves world peace:</div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div original_target="https://raw.github.com/homebrew/homebrew/go/install" style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; vertical-align: baseline; width: 627.53125px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 627px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; vertical-align: top !important;"><pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"> $ <span style="font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;">ruby </span><span style="border: 0px; color: #660033; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-e</span><span style="font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;"> </span><span style="border: 0px; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"<span style="border: 0px; color: #007800; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">$(curl -fsSL <a href="https://raw.github.com/Homebrew/homebrew/go/install" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://raw.github.com/<wbr></wbr>Homebrew/homebrew/go/install</a>)</span>"</span></pre>
</td></tr>
</tbody></table>
</div>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="font-weight: normal;">But, if you are like me and don't already have Xcode installed, the Xcode installer is invoked during the Homebrew install and according to all of the reviews (including this one too now apparently), it can be a little tricky - depending upon what you might already have installed. In my case, on a new Mavericks Mac (OSX 10.9.1), I didn't yet have Xcode, so on the Popup with three buttons: "Get Xcode" "Cancel" and "Install", I chose "Get Xcode", then on the popup AppStore splash page which appears to be customized for Xcode, I clicked the "Free", followed by "Install", followed by AppStore payment setup with handshakes back and forth to Paypal, etc. (my billing choice in this case)... eventually landing me back in the AppStore without any clue as to what happened with the Xcode installation. Rather than aborting the ruby command from the terminal window (which was my first impulse), I then did a search on "xcode" in the AppStore, and retried the Xcode install, this time from the normal Appstore menu grid of apps, again pressing "Free" and then "Install App" on the Xcode app, and this seemed to launch the expected rocket launcher icon which then proceeded to download all 2.09 Gig of the Xcode app as expected (time for a lunch break - as this is a *big* download!). When finished, the Xcode App icon in the AppStore </span><span style="font-weight: normal;">also </span><span style="font-weight: normal;">read "Installed" as expected. Back to the terminal window to press a key to continue... and everything seemed fine, but then I noticed a little comment towards the end of the install console log: "</span><span style="font-family: arial; font-size: x-small; font-weight: normal; line-height: normal;">Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.</span><span style="font-weight: normal;">"</span></h2>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Here is the whole terminal session log:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div original_target="https://raw.github.com/homebrew/homebrew/go/install" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Davids-MacBook-Pro:proggies dave$ ruby -e "$(curl -fsSL <a href="https://raw.github.com/Homebrew/homebrew/go/install" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://raw.github.com/<wbr></wbr>Homebrew/homebrew/go/install</a>)"<br />
<b>==></b><b> This script will install:</b><br />
/usr/local/bin/brew<br />
/usr/local/Library/...<br />
/usr/local/share/man/man1/<wbr></wbr>brew.1<br />
<br />
Press RETURN to continue or any other key to abort<br />
<b>==></b><b> Installing the Command Line Tools (expect a GUI popup):</b><br />
<b>==></b><b> /usr/bin/sudo /usr/bin/xcode-select --install</b><br />
Password:<br />
xcode-select: note: install requested for command line developer tools<br />
Press any key when the installation has completed.<br />
<b>==></b><b> Downloading and installing Homebrew...</b><br />
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.<br />
<b>==></b><b> Installation successful!</b><br />
You should run `brew doctor' *before* you install anything.<br />
Now type: brew help<br />
------------------------------<br />
<br />
... which is a little odd, since it did prompt me for a password part way through the Xcode install (as shown in the log)? Anyway, running "brew doctor" to be safe... I get the same error. So now I try "sudo su -" and re-run brew doctor as root...<br />
<br />
Davids-MacBook-Pro:~ root# <b>brew doctor</b><br />
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.<br />
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.<br />
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.<br />
Warning: No developer tools installed.<br />
You should install the Command Line Tools.<br />
Run `xcode-select --install` to install them.<br />
Warning: You have not agreed to the Xcode license.<br />
Builds will fail! Agree to the license by opening Xcode.app or running:<br />
<br />
xcodebuild -license</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
------------------------------<wbr></wbr>-</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
...so at this point I am feeling pretty silly as it looks like maybe I should have really done the original curl command as root to begin with (but don't bother trying that approach as you will see below).</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Instead, I try the suggested command in the error message above "sudo xcodebuild -license" - typing "agree" at the end. And then the suggested command "xcode-select --install"...</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div original_target="http://developer.apple.com" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Davids-MacBook-Pro:~ root#<b> xcode-select --install</b><br />
xcode-select: error: no developer tools were found, and no install could be requested (perhaps no UI is present), please install manually from '<a href="http://developer.apple.com/" saprocessedanchor="true" style="color: #1155cc;" target="_blank">developer.apple.com</a>'.<br />
------------------------------<wbr></wbr>-</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
So here is where I get frustrated and start over as root with the curl command:</div>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; color: #110000; font-size: 12px !important; font-weight: normal; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"><span style="background-color: transparent; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
</span></pre>
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; color: #110000; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"><span style="background-color: transparent; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">Davids-MacBook-Pro:~ root# ruby -e "$(curl -fsSL <a href="https://raw.github.com/Homebrew/homebrew/go/install" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://raw.github.com/<wbr></wbr>Homebrew/homebrew/go/install</a>)"</span>
</pre>
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; color: #110000; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;">Don't run this as root!
<div style="color: #222222; font-family: arial; font-size: small; line-height: normal; white-space: normal;">
<div style="font-weight: normal;">
------------------------------<wbr></wbr>-</div>
<div style="font-weight: normal;">
</div>
<div style="font-weight: normal;">
OK, so how about logging out of root and trying the curl with sudo?</div>
<div original_target="https://raw.github.com/homebrew/homebrew/go/install">
<div style="font-weight: normal;">
</div>
<span style="font-weight: normal;">Davids-MacBook-Pro:proggies dave$</span> sudo ruby -e "$(curl -fsSL <a href="https://raw.github.com/Homebrew/homebrew/go/install" saprocessedanchor="true" style="color: #1155cc;" target="_blank">https://raw.github.com/<wbr></wbr>Homebrew/homebrew/go/install</a>)"<br />
<span style="font-weight: normal;">Password:</span><br />
<span style="font-weight: normal;">Don't run this as root!</span></div>
</div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
</div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
------------------------------<wbr></wbr>-</div>
<div style="font-weight: normal;">
</div>
<div style="font-weight: normal;">
...and then, just as I was about to give up and start over from scratch, I tried this:</div>
<span style="font-weight: normal;">
</span><div>
<span style="font-weight: normal;">Davids-MacBook-Pro:proggies dave$</span> sudo xcode-select --install<br />
<span style="font-weight: normal;">xcode-select: note: install requested for command line developer tools</span><br />
<div style="font-weight: normal;">
</div>
<span style="font-weight: normal;">...eh Voila! I got a GUI popup which installed the Xcode app in about 2 minutes!</span></div>
<div style="font-weight: normal;">
So now I try this:</div>
<span style="font-weight: normal;">
</span><div>
<span style="font-weight: normal;">Davids-MacBook-Pro:proggies dave$</span> sudo brew doctor<br />
<span style="font-weight: normal;">Password:</span><br />
<span style="font-weight: normal;">Your system is ready to brew.</span><br />
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"><div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
------------------------------<wbr></wbr>-</div>
<div>
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"><div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px;">
</span></div>
<div style="color: #222222; font-family: arial; font-size: small; line-height: normal; white-space: normal;">
<span style="background-color: transparent; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px;">Lessons learned...</span></div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px;">
</span></div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px;">I think I could have skipped the last few steps and simply used "sudo </span><span style="background-color: transparent;">xcode-select --install" after to agreeing to the license to begin with! The problem is that none of the instructions say to use sudo on the </span><span style="background-color: transparent;">xcode-select --install command </span><span style="background-color: transparent;">- they just say do this with and do that without sudo, so it's a little like playing Simon says.</span></div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent;">
</span></div>
<div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent;">Of course, this might have also gone a little smoother if I had simply installed Xcode first to begin with, then installed HomeBrew... but the blog entry I found didn't seem to mention this (or maybe it simply assumed that everyone already has Xcode installed?)</span></div>
<span style="font-weight: normal;">
</span><div style="color: #222222; font-family: arial; font-size: small; font-weight: normal; line-height: normal; white-space: normal;">
<span style="background-color: transparent;">------------------------------<wbr></wbr>-</span></div>
</pre>
</div>
<div style="font-weight: normal;">
Anyway, so now, finally I can install maven and gradle (here I first attempted to use sudo on this brew install as well, but I was scolded severely for trying - go figure!):</div>
</pre>
</div>
</pre>
</h2>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
4. Install Maven</h2>
<div style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; vertical-align: baseline; width: 627.53125px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 627px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; vertical-align: top !important;"><pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"> $ brew <span style="border: 0px; color: #c20cb9; font-family: inherit; font-style: inherit; font-weight: bold; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">install</span> maven</pre>
</td></tr>
</tbody></table>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Davids-MacBook-Pro:proggies dave$ brew install maven</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>==></b><b> Downloading <a href="http://www.apache.org/dyn/closer.cgi?path=maven/maven-3/3.1.1/binaries/a" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://www.apache.org/dyn/<wbr></wbr>closer.cgi?path=maven/maven-3/<wbr></wbr>3.1.1/binaries/a</a></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>==></b><b> Best Mirror <a href="http://mirrors.gigenet.com/apache/maven/maven-3/3.1.1/binaries/apache-ma" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://mirrors.gigenet.com/<wbr></wbr>apache/maven/maven-3/3.1.1/<wbr></wbr>binaries/apache-ma</a></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
##############################<wbr></wbr>##############################<wbr></wbr>############ 100.0%</div>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="font-family: arial; font-size: x-small; font-weight: normal; line-height: normal;">🍺</span><span style="font-family: arial; font-size: x-small; font-weight: normal; line-height: normal;"> </span><span style="font-family: arial; font-size: x-small; font-weight: normal; line-height: normal;">/usr/local/Cellar/maven/3.1.1: 61 files, 6.3M, built in 11 seconds</span></h2>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; color: #110000; font-size: 12px; font-weight: normal; line-height: 16px; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"><div style="color: #222222; font-family: arial; font-size: small; line-height: normal; white-space: normal;">
------------------------------<wbr></wbr>-</div>
<div>
<pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"></pre>
</div>
</pre>
</h2>
<h2 style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 0.8125em; outline: 0px; padding: 0px; vertical-align: baseline;">
5. Install Gradle</h2>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="font-size: x-small;">Note: As of May, 2013, the new Android build system only supports Gradle versions 1.3/1.4. This means it won’t work with the latest version of Gradle. You’ll have to follow the instructions at <a href="http://www.gradle.org/installation" saprocessedanchor="true" style="border: 0px; color: #1982d1; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank">gradle.org/installation</a> to install a prior version of Gradle. Otherwise you could simply install the latest version using Homebrew.</span></div>
<div style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; vertical-align: baseline; width: 627.53125px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 627px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; vertical-align: top !important;"><pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"> $ brew <span style="border: 0px; color: #c20cb9; font-family: inherit; font-style: inherit; font-weight: bold; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">install</span> gradle</pre>
</td></tr>
</tbody></table>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Davids-MacBook-Pro:proggies dave$ brew install gradle</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>==></b><b> Downloading <a href="http://services.gradle.org/distributions/gradle-1.11-bin.zip" saprocessedanchor="true" style="color: #1155cc;" target="_blank">http://services.gradle.org/<wbr></wbr>distributions/gradle-1.11-bin.<wbr></wbr>zip</a></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
##############################<wbr></wbr>##############################<wbr></wbr>############ 100.0%</div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;">🍺</span><span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;"> </span><span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;">/usr/local/Cellar/gradle/1.11: 153 files, 44M, built in 2.8 minutes</span></div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
Need to set up a GRADLE_HOME to point to <span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;">/usr/local/Cellar/gradle/1.<wbr></wbr>11</span>. Add this to .bash_profile:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
export GRADLE_HOME=/usr/local/Cellar/<wbr></wbr>gradle/1.11;</div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;">export PATH=$JAVA_HOME/bin:$GRADLE_<wbr></wbr>HOME/bin:$PATH;</span></div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
Then activate the new environment variables by sourcing the .bash_profile:</div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #222222; font-family: arial; font-size: x-small; line-height: normal;">Davids-MacBook-Pro:proggies dave$ . ~/.bash_profile</span></div>
<div style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
You can verify you have the correct version of Gradle installed using the following command:</div>
<div style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px; vertical-align: baseline; width: 627.53125px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 627px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; vertical-align: top !important;"><pre style="background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: auto !important;"> $ gradle <span style="border: 0px; color: #660033; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-v</span></pre>
<div>
<span style="border: 0px; color: #660033; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><br /></span></div>
</td></tr>
</tbody></table>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<span style="font-size: x-small;">Davids-MacBook-Pro:proggies dave$<b> gradle -v</b></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">------------------------------<wbr></wbr>------------------------------</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Gradle 1.11</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">------------------------------<wbr></wbr>------------------------------</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Build time: 2014-02-11 11:34:39 UTC</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Build number: none</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Revision: a831fa866d46cbee94e61a09af15f9<wbr></wbr>dd95987421</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Groovy: 1.8.6</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">Ivy: 2.2.0</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">JVM: 1.7.0_51 (Oracle Corporation 24.51-b03)</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif;">
<b><span style="font-size: x-small;">OS: Mac OS X 10.9.1 x86_64</span></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b>SUCCESS !!!</b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<b><br /></b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Now my STS installation will be cooking with fire!</div>
<div>
<br /></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/08693052642951710120noreply@blogger.com0tag:blogger.com,1999:blog-2128756746583239565.post-84732882990951700282014-02-16T14:32:00.003-08:002014-02-16T14:38:59.625-08:00So Begins the Battle!Having finally taken the plunge after about a million years worth of false starts and regrets, I finally went out and purchased a new MacBook Pro Mavericks laptop. My first application to tackle was the Spring Tool Suite (STS) from the wonderful people at Pivotal, a tool which I have always traditionally used on either a PC or a Linux workstation.<br />
<br />
After seeing that there seemed to be a mix of opinions on how to go about installing STS on a Mac, I decided to take notes. Hopefully these notes might help someone else out there who is also struggling, as after a day and a half of battling what seems to be an Apple snub of Java and/or Oracle, combined with my own Mac noobism, I seem to have conquered the fud and at last I am declaring victory!<br />
<br />
Enjoy!<br />
<br />
Dave McLure<br />
<br />Anonymoushttp://www.blogger.com/profile/08693052642951710120noreply@blogger.com0