In the example we will start tomcat 7 using maven plugin, optionally add user/password protection for REST end point. Also adding feature of building war.
Add below section in plugin section of pom for tomcat
<plugin>
<groupId>org.apache.tomcat.maven</g...