I'm trying to deploy a war with mvn tomcat:deploy
and I get
Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project navigator-native: Cannot invoke Tomcat manager: Server returned HTTP response code: 401 for URL: ...//localhost:8080/manager/deploy? ...
I've already added the roles to tomcat-users.xml :
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="password" roles="admin,manager"/>
But don't want to modify the project's POM.xml, so what is the default server used for the plugin? I've tried adding
<server>
<id>localhost</id>
<username>admin</username>
<password>password</password>
</server>
but it doesn't work
http://localhost:8080/manager
per tomcat 6 maven plugin docs. Not sure if it's the same for tomcat 7. – user944849