I’m developing maven plugin
<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>
But how i can run it from console?
if i run com.breedish.cfit:maven-cfitautomator-plugin:1.0-SNAPSHOT:run-goal it is always saying:
[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.
Take a deep look at the maven-invoker-plugin which can support you in developing Maven plugins with integration tests with environment etc. So you don’t need to manually install that plugin and test it by hand.