1

I'm trying to deploy application using tomcat7-maven-plugin with this configuration

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.0</version>
    <configuration>
        <url>http://127.0.0.1:8080/manager/text</url>
        <server>TomcatServer</server>
        <path>/Ohta</path>
        <username>tomcat</username>
        <port>8080</port>
        <password>s3cret</password>
    </configuration>
</plugin>

I get the folowing error

[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project ohta: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1]

As I understand maven tries to use org.codehaus.mojo:tomcat-maven-plugin instead of specified and can't find configuration, but why it is so?

4

1 回答 1

2

这个链接包含一个关于Maven Tomcat 插件的好教程。使用插件查看从原型创建到部署的整个过程可能很有用。

于 2014-04-13T19:33:24.683 回答