生成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目录下再执行命令,就成功了
10
相似问题