maven的cargo插件启动错误,求帮助!

发布于 2021-11-24 22:24:11 字数 2640 浏览 745 评论 3

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com.somesky.proj:project:war:0.0.1-SNAPSHOT

[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING]

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building project Maven Webapp 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- cargo-maven2-plugin:1.0:start (default-cli) @ project ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.763s

[INFO] Finished at: Tue Sep 17 10:23:11 CST 2013

[INFO] Final Memory: 2M/15M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0:start (default-cli) on project project: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.0:start failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [Tomcat6x], type = [installed]], configuration type [standalone]). 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

秉烛思 2021-11-27 13:54:08

引用来自“傅星星”的评论

<plugin>
	<groupId>org.codehaus.cargo</groupId>
	<artifactId>cargo-maven2-plugin</artifactId>
	<version>1.1.3</version>
	<configuration>
	<!-- Container configuration -->
	<container>
		<containerId>tomcat7x</containerId>
		<home>D:apache-tomcat-7.0.47</home>
	</container>
	<configuration>
		<type>standalone</type>
		<home>${project.build.directory}/tomcat7x</home>
		<properties>
			<cargo.host>localhost</cargo.host>
			<cargo.servlet.port>7777</cargo.servlet.port>
		</properties>
	</configuration>
	</configuration>
</plugin>
根据自己的设置修改配置信息,然后运行下面的命令
1、cargo:stop maven clean package
2、cargo:start
2021-11-27 08:06:41
<plugin>
	<groupId>org.codehaus.cargo</groupId>
	<artifactId>cargo-maven2-plugin</artifactId>
	<version>1.1.3</version>
	<configuration>
	<!-- Container configuration -->
	<container>
		<containerId>tomcat7x</containerId>
		<home>D:apache-tomcat-7.0.47</home>
	</container>
	<configuration>
		<type>standalone</type>
		<home>${project.build.directory}/tomcat7x</home>
		<properties>
			<cargo.host>localhost</cargo.host>
			<cargo.servlet.port>7777</cargo.servlet.port>
		</properties>
	</configuration>
	</configuration>
</plugin>
根据自己的设置修改配置信息,然后运行下面的命令
1、cargo:stop maven clean package
2、cargo:start
终止放荡 2021-11-26 16:17:35
<plugin>
	<groupId>org.codehaus.cargo</groupId>
	<artifactId>cargo-maven2-plugin</artifactId>
	<version>1.1.3</version>
	<configuration>
	<!-- Container configuration -->
	<container>
		<containerId>tomcat7x</containerId>
		<home>D:apache-tomcat-7.0.47</home>
	</container>
	<configuration>
		<type>standalone</type>
		<home>${project.build.directory}/tomcat7x</home>
		<properties>
			<cargo.host>localhost</cargo.host>
			<cargo.servlet.port>7777</cargo.servlet.port>
		</properties>
	</configuration>
	</configuration>
</plugin>
根据自己的设置修改配置信息,然后运行下面的命令
1、cargo:stop maven clean package
2、cargo:start
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文