Maven Unable to deploy from within Eclipse (Mars)

I’m new to maven, but I have been able to figure out enough to be able to build and deploy my application from the command line with the following command:

mvn clean dependency:tree tomcat6:undeploy tomcat6:deploy

Running this command, builds and deploys my application without issue.

When I attempt to run the same command from within Eclipse (Mars), I get the following error:

[INFO] --- tomcat6-maven-plugin:2.2:undeploy (default-cli) @ myapp ---
[INFO] Undeploying application at http://localhost:8080/myapp-2.3.4-SNAPSHOT
[ERROR] Tomcat return http status error: 401, Reason Phrase: Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

I suspect that the issue is because outside of Eclipse on I’m not using the same instance of tomcat or something…

Note: I have two instances of tomcat running on my box within eclipse for development/integrated with Eclipse(port 8080), and external/stand alone(9080).

pom.xml includes:


maven settings.xml includes:


And I’ve copied the contents of


<role rolename="admin"/>
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="tomcat" roles="tomcat,manager,admin,manager-gui,manager-script"/>

Any assistance in resolving this issue would be greatly appreciated.