1) JDK pre-requisite http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html (JRE is not enough)

2) Download Spring STS https://spring.io/tools/sts

3) Download Tomcat 7 from http://tomcat.apache.org/download-70.cgi

4) Extract to a Tomcat folder called Tools in Workspace

5) Setup Spring STS IDE

6) Click on Create New Server under Servers pane

7) Configure the location of Tomcat to the extracted location in Step 3

8) Download Maven https://maven.apache.org/download.cgi

9) Extract to a Maven folder called Tools in Workspace

10) On Mac edit the file /etc/paths and add the location of the maven folder (point to bin directory of Maven)

11) Restart Terminal

12) Test if maven is installed correctly. The following command will display the version number.

 $ mvn -v 

13) Setup Project using Maven. Go to workspace location and issue command 

$ mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2

Parameter values

Define value for property 'groupId': com.example
Define value for property 'artifactId': mymicroservice
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.example: :
Confirm properties configuration:
groupId: com.example
artifactId: mymicroservice
version: 1.0-SNAPSHOT
package: com.example
Y: : y

14) Set Targeted Runtimes after you open Spring STS to Apache Tomcat v7.0

15) Go to project folder and run following command in case you get java.lang.NoClassDefFoundError errors 

 $ mvn dependency:resolve

16) If you get invalid LOC header (bad signature) error go to /Users/<username>/.m2/ folder and remove the bad package folder.

Run

$ mvn dependency:resolve