生成jar包失败,总是报错

来源:8-4 第一扩展开发demo的实现

慕粉200202330

2019-03-03

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\Administrator\IdeaProjects\demo0303001\src\main\java\com\demo). Please verify you invoked Maven f
rom the correct directory. -> [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/MissingProjectException

写回答

1回答

慕粉200202330

提问者

2019-03-03

知道了哈,是因为执行命令mvn clean package的时候不是在根目录,当我切换到C:\Users\Administrator\IdeaProjects\demo0303001目录下再执行命令,就成功了

1
0

性能测试入门-Jmeter工具与监控

精选接口,数据库,服务器,大数据等性能测试,从认知到实际工作

2622 学习 · 366 问题

查看课程