I am having trouble in deploying to remote machine with tomcat installed as aservice. My tomcat-users is as follows:
<tomcat-users> <role rolename="manager"/> <user username="admin" password="admin" roles="tomcat, admin, manager-gui, manager-script"/> </tomcat-users> My settings.xml is:
<settings> <pluginGroups> <pluginGroup>org.apache.tomcat.maven</pluginGroup> </pluginGroups> <servers> <server> <id>tomcat7</id> <username>admin</username> <password>admin</password> </server> </servers> </settings> And my pom.xml has the following:
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <configuration> <server>tomcat7</server> <url>http://localhost:8081/manager/text</url> <warFile>target/editor-${project.version}.war</warFile> </configuration> And I keep on getting the 401 Unauthorized on the output of maven console. Can you tell me what am I doing wrong?