[Tomcat] Impossible de déployer "erreur 403 [Eclipse + Tomcat 7]"
Bonjour.
J'ai configuré mon projet maven afin de faire un déploiement automatique sur le serveur tomcat en local sur mon poste.
A chaque fin de build il me lance une erreur :
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project games-crafts: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: http://127.0.0.1:8080/manager/deploy?path=%2F...
Je crois avoir pourtant bien réalisé mon installation. Voici mon parametrage
Dans mon pom.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <build>
<finalName>projet</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://127.0.0.1:8080/manager</url>
<server>TomcatServer</server>
<path>/projet</path>
</configuration>
</plugin>
</plugins>
</build> |
mon settings.xml
Code:
1 2 3 4 5 6 7 8 9 10
| <settings>
<localRepository>F:\DEV\TOOLS\MAVEN\REPOSITORY</localRepository>
<servers>
<server>
<id>TomcatServer</id>
<username>admin</username>
<password>lagoon</password>
</server>
</servers>
</settings> |
dans mon tomcat-users.xml (j'arrive bien à aller dans la zone manager-gui en accès par tomcat)
Code:
1 2 3 4 5 6
| <?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="lagoon" roles="manager-gui"/>
</tomcat-users> |
et enfin la ligne de code lancée dans Eclipse :
clean install tomcat:deploy
Alors auriez-vous une idée du problème ?