Firstly we need an application…
Using Spring STS we can easily create a Spring MVC based project that we think will take over the world….
STS makes it incredibly easy to create a new web based Spring MVC application and the rest of the blog posts will be based upon a Spring MVC application.
The application provides one screen that allows a user to enter two numbers and adds the two numbers together providing the answer. Its ground breaking stuff I know!
To grab the application in its current form you can simply clone it using Git or if you haven’t used git before you can download phase 1 of the application as a zip file.
Phase 1 of the application has been tagged with ‘v1.0′ for those comfortable with git.
Assuming you are using STS and running tcServer or something similar like Tomcat on port 8080, once you have the application compiled and built the application should be able to run it by visiting:
http://localhost:8080/springciexample
In order to build that application we have to manually invoke our maven compile process with something like:
mvn clean compile war:war |
That concludes phase 1 of the series in which we have met phase 1 of the seven phases of CI by having an application with no build server.
Next we need to bring in a build server