9.5.2. Deploy the CarMart Quickstart to Tomcat
The following procedure outlines how to deploy the CarMart quickstart to Tomcat 7:
Prerequisite
The CarMart quickstart must be built to be deployed.
Procedure 9.5. Deploy the CarMart Quickstart to Tomcat
Edit Server Credentials
Add theserver
element in your Mavensettings.xml
file (located in your Maven installation'sconf
directory) with the required credentials:<server> <id>tomcat</id> <username>admin</username> <password></password> </server>
Deploy your Application
Use Tomcat's Maven plugin to deploy the application as follows:$ mvn tomcat:deploy -Plibrary-tomcat
View your Application
To view the application, use your browser to navigate to the following link:http://localhost:8080/carmart-quickstart