为什么这里总是编译不过呢,报需要设置一个文件,晕圈了,在网上也没有找到答案

来源:3-2 工程创建和插件安装

qq_下一刻的旅途_03214792

2017-05-04

F:\project\business\Groupon\Site\Web>mvn install

[INFO] Scanning for projects...

[INFO]

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

[INFO] Building groupon-site-web 1.0-SNAPSHOT

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

[WARNING] The POM for com.tortuousroad:groupon-site-controller:jar:1.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ groupon-site-web ---

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory F:\project\business\Groupon\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]

[INFO] --- maven-source-plugin:2.1:jar (default) @ groupon-site-web ---

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 1.968 s

[INFO] Finished at: 2017-05-04T22:46:18+08:00

[INFO] Final Memory: 10M/155M

[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


写回答

5回答

moocer

2017-05-05

Error creating source archive: You must set at least one file.可能有文件夹是空的,删了或者加个文件就行

0
1
慕村6218792
这个问题如何解决? 没有找到空文件夹
2017-08-27
共1条回复

慕村6218792

2017-08-27

问题解决了 把maven-source-plugin版本号改为2.4即可

1
0

moocer

2017-09-11

//szimg.mukewang.com/59b67e980001975425120802.jpg

按图片中修改试一下

0
0

慕村6218792

2017-08-27

我也这个问题,如何解决?

0
0

慕瓜2904499

2017-08-24


我也出了一样的问题,你的解决了吗

0
0

Java Spring带前后端开发完整电商平台

工具组件封装+支付回调扩展+电商设计思想经验分享

612 学习 · 186 问题

查看课程