【发布时间】:2020-02-14 23:30:37
【问题描述】:
使用archetype:generate 以与Maven in 5 Minutes 中所述相同的方式创建项目。
收到此错误:
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/mnt/c/Users/etomort/quartz-poc). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/mnt/c/Users/etomort/quartz-poc). Please verify you invoked Maven from the correct directory.
既然是这么基本的东西,我就糊涂了……
我检查了这两个问题:
- Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command
- maven generating pom file
但接受的答案都没有解决问题。
所以,我正在创建这个问题,以防有人一开始就没有得到它。
顺便说一下,输入的Maven命令是:
mvn archetype:generate -DgroupId=com.mycompany -DartifactId=quartz-poc -DarchetypeArtifactId= maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
【问题讨论】:
标签: bash maven maven-archetype