Maven插件我正在开发Maven插件如何运行控制台
<modelVersion>4.0.0</modelVersion>
<groupId>com.breedish.cfit</groupId>
<artifactId>maven-cfitautomator-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>cfitautomator</name>
但我怎么可以从控制台运行呢? 如果我运行com.breedish.cfit:Maven的cfitautomator-插件:1.0快照:运行目标,它总是说:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: run-goal. It requires a project with an existing pom.xml, but the build is not using one.
看起来你正在从错误的目录运行你的mvn命令。确保你和你的pom文件位于同一个目录并从那里运行它。 – DaveRlz