maven 项目提交运行报错不知道怎么去改求大神指导

hy18840828699 2015-11-26 04:46:33
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.eling:com.eling.elcms.home:war:1.3.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ com.eling:elcms.pom:1.6.0, C:\Users\Administrator\.m2\repository\com\eling\elcms.pom\1.6.0\elcms.pom-1.6.0.pom, line 66, column 12
[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] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.153s
[INFO] Finished at: Thu Nov 26 16:20:34 CST 2015
[INFO] Final Memory: 4M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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/NoGoalSpecifiedException
...全文
4094 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hy18840828699 2015-11-27
  • 打赏
  • 举报
回复
第一;首先确定自己的maven,eclipse,tomcat版本位数与机型都兼容,最好选择和机型相同的版本位数! 第二:确认自己的系统环境和用户环境都配置正确,完整。这个也是一个重点。http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html这个是java配置环境的具体步骤和操作,需要的可自行查看,不再赘述 第三:在先不加载的情况下看看单独运行tomcat服务器是否能正常启动,如果是使用maven的话,检查下 maven repository是不是有文件损坏,删除maven repository重新更新下试试,也要确定下是不是自己加载的项目代码就有问题,一般来说没有,但是确认一下 第四:因为maven库有可能会腐败,所以删除maven库试试具体实现是在http://www.4byte.cn/question/341777/eclipse-tomcat-7-java-lang-indexoutofboundsexception-on-publish.html
hy18840828699 2015-11-27
  • 打赏
  • 举报
回复
嗯,今天调试成功了,maven的项目也导入进来了,并且加载运行成功了。总结了一下也在汇总了一下我在百度等众多网站上查到的资料,总体来说汇总了一下:Eclipse - Tomcat 7 - java.lang.IndexOutOfBoundsException on publish这个错误等等,下个楼层我会把具体解决办法写下来
街头小贩 2015-11-26
  • 打赏
  • 举报
回复
pom.xml文件中有错误

10,613

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧