Tomcat 7.0.32 & Tomcat Maven Plugin

I am using the Tomcat Maven Plugin by Codehaus. Here is an excerpt from my pom.xml:

...
<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>tomcat-maven-plugin</artifactId>
	<version>1.1</version>
	<configuration>
		<server>tomcat_localhost</server>
		<url>http://localhost:8080/manager/html</url>
		<path>/ubicon-webapp</path>
	</configuration>
</plugin>
...

For Tomcat 6 one is supposed to use the URL http://localhost:8080/manager with a user assigned to the role manager. For Tomcat 7 one needs to use http://localhost:8080/manager/html with the role manager-gui. This does not work for Tomcat 7.0.32 (7.0.19 still worked). Here one needs to use http://localhost:8080/manager/text using a user with role manager-script. BTW I set the server's user name and password in Maven's .m2/settings.xml file like this:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <localRepository />
        <interactiveMode />
        <usePluginRegistry />
        <offline />
        <pluginGroups />
        <servers>
                <server>
                        <id>tomcat_localhost</id>
                        <username>user</username>
                        <password>password</password>
                </server>
        </servers>
        <mirrors />
        <proxies />
        <profiles/>
        <activeProfiles/>
</settings>
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply