I have generated webapp using
maven:archetype selecting maven-archetype-webapp as template
and the below config inside build section of pom.xml
For
tomcat in tomcat-users.xml, inside tomcat-users section
and maven settings.xml
I have checked that I am able to go to localhost:8080/ and click on manager-app and able to see Tomcat Web Application Manager
But when I run
<code>mvn clean install tomcat7:deploy </code>
I am getting the below error
```
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project my-webapp: Cannot invoke Tomcat manager: Server returned HTTP response code: 40
5 for URL:
http://localhost:8080/manager/deploy?path=%2Fmy-webapp&war= -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
```
What I am trying to do is, get maven to copy the war file and deploy into tomcat-server
P.S I am using tomat 10