请稍等 ...
×

采纳答案成功!

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

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

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


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

5回答

moocer 2017-05-05 08:35:32

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

0 回复 有任何疑惑可以回复我~
  • 这个问题如何解决?
    没有找到空文件夹
    回复 有任何疑惑可以回复我~ 2017-08-27 13:10:20
慕村6218792 2017-08-27 20:20:51

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

1 回复 有任何疑惑可以回复我~
moocer 2017-09-11 20:16:46

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

按图片中修改试一下

0 回复 有任何疑惑可以回复我~
慕村6218792 2017-08-27 12:57:12

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

0 回复 有任何疑惑可以回复我~
慕瓜2904499 2017-08-24 00:00:16

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

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信