请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

兄弟出个教程怎么让项目跑起来

大概简明的讲一下啊。。。发现很多人项目都跑不起来

下了代码之后 执行maven build

INFO] Building groupon-site-web 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ groupon-site-web ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/yh/Documents/imoocmall/Site/Web/src/main/java
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ groupon-site-web ---
[INFO] No sources to compile
[INFO] 
[INFO] >>> maven-source-plugin:2.1:jar (default) > generate-sources @ groupon-site-web >>>
[INFO] 
[INFO] <<< maven-source-plugin:2.1:jar (default) < generate-sources @ groupon-site-web <<<
[INFO] 
[INFO] --- maven-source-plugin:2.1:jar (default) @ groupon-site-web ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] groupon ............................................ SUCCESS [  0.614 s]
[INFO] groupon-service .................................... SUCCESS [  1.520 s]
[INFO] groupon-site ....................................... SUCCESS [  0.004 s]
[INFO] groupon-site-controller ............................ SUCCESS [  2.458 s]
[INFO] groupon-site-web ................................... FAILURE [  0.058 s]
[INFO] groupon-admin ...................................... SKIPPED
[INFO] groupon-admin-controller ........................... SKIPPED
[INFO] groupon-admin-web .................................. SKIPPED
[INFO] groupon-image-server ............................... SKIPPED
[INFO] road-alipay ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.868 s
[INFO] Finished at: 2017-04-07T00:12:18+08:00
[INFO] Final Memory: 24M/274M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.1:jar (default) on project groupon-site-web: Error creating source archive: You must set at least one file. -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :groupon-site-web

所以 这个项目应该怎么跑起来.....对maven不是精通,折腾好几个小时了,还是不行,希望老师大概讲下怎么运行项目

正在回答 回答被采纳积分+3

3回答

moocer 2017-04-07 09:26:50
  1. 你这个问题应该是maven依赖的第三方插件没下载下来吧?

  2. maven的问题有太多种了,文档不能覆盖到全部,而且每个人的环境、maven版本不一致,可能出的问题更多。

  3. 现在你这个是maven的问题,不影响你通过IDEA+tomcat直接运行项目。

  4. maven的问题,需要看完整的配置才能有解决的思路。

  5. 视频3-4里有如何在IDEA里配置tomcat运行web项目的介绍。


0 回复 有任何疑惑可以回复我~
  • 一毛一样的问题。。。找到原因了么。。。
    回复 有任何疑惑可以回复我~ 2017-05-19 16:14:03
moocer 2017-09-11 20:18:12

https://img1.sycdn.imooc.com/szimg//59b67ef60001975425120802.jpg

试试按图中的方式修改一下

0 回复 有任何疑惑可以回复我~
慕瓜2904499 2017-08-25 22:28:20

我这卡了好多天,这么多人出这问题,老师能不能给个明确的指导

0 回复 有任何疑惑可以回复我~
  • moocer #1
    这个问题我搞个视频或者文档说明怎么解决
    回复 有任何疑惑可以回复我~ 2017-08-30 15:01:21
  • car #2
    这个老师感觉说不清楚,虽有技术,但表达能力不好
    回复 有任何疑惑可以回复我~ 2017-10-04 13:27:10
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信