启动子容器失败:A child container failed during start

来源:互联网 发布:windows 虚拟机下载 编辑:程序博客网 时间:2024/06/05 06:58

从经理给你项目让你跑,第一反应是命令:tomcat7:run,会出现结果:

[ERROR] No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (D:\repo), alimaven (http://maven.aliyun.com/nexus/content/groups/public/)] -> [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/NoPluginFoundForPrefixException


然后你就认为是因为pom.xml中没有tomcat插件,所以你去下载了并添加了依赖,再次运行就是:A child container failed during start,或是jar包找不到的异常


如果出现以上情况,我的建议,我最后的正确结果,分析就不分析为什么这样了


直接在servers中启动服务,你就会发现没问题了



然后就是访问路径了,不知道就找别人要,要不就是在这:





原创粉丝点击