maven利用cargo配置tomcat7x报错,求会的朋友帮忙看下
错误如下:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HelloWeb 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- cargo-maven2-plugin:1.2.3:run (default-cli) @ HelloWeb ---
[INFO] Downloading: https://repo.maven.apache.org/maven2/xmlunit/xmlunit/1.2/xmlunit-1.2.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/jmock/jmock/1.2.0/jmock-1.2.0.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/jmock/jmock-cglib/1.2.0/jmock-cglib-1.2.0.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/commons-vfs/commons-vfs/1.0/commons-vfs-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.946 s
[INFO] Finished at: 2014-10-23T12:45:30+08:00
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run (default-cli) on project HelloWeb: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run failed: Cannot create configuration. There*s no registered configuration for the parameters (container [id = [tomcat7x], type = [installed]], configuration type [existing]). Actually there are no valid types registered for this configuration. Maybe you*ve made a mistake spelling it? -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
pom.xml核心配置如下:
<build>
<finalName>hw</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.3</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<home>D:\tomcat7.0.52</home>
</container>
<configuration>
<type>existing</type>
<home>D:\tomcat7.0.52</home>
</configuration>
</configuration>
</plugin>
</plugins>
</build>