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

傅星星 发布于 2013/09/17 10:27
阅读 3K+
收藏 0

如何使用英特尔®oneAPI工具实现PyTorch 优化,直播火热报名中>>>

[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

加载中
0
heavan2010
heavan2010
<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
0
傅星星
傅星星

引用来自“heavan2010”的答案

<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
谢谢!
0
蜗牛ig
蜗牛ig

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

引用来自“heavan2010”的答案

<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
谢谢!
请问用existing模式的怎么不行啊,配置如下:
<plugin>
    <groupId>org.codehaus.cargo</groupId>
    <artifactId>cargo-maven2-plugin</artifactId>
    <version>1.1.3</version>
    <configuration>
        <container>
            <containerId>tomcat7x</containerId>
            <home>/home/qfguo/application/apache-tomcat-7.0.47</home>
        </container>
        <configuration>
            <type>existing</type>
            <home>/home/qfguo/application/apache-tomcat-7.0.47</home>
            <properties>
                <cargo.host>localhost</cargo.host>
                <cargo.servlet.port>8888</cargo.servlet.port>
            </properties>
        </configuration>   
    </configuration>  
</plugin>
也报和楼主一样的错误啊
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部