Maven plugin prefix prefix not working properly

I created MOJO for the specific needs of the application. I followed the maven recommendations in the plugin name, so I didn't need to mention the full

mvn groupId:artifactId:version:goal

to execute my plugin (I named it according to the format $ {prefix} -maven-plugin). I even included the "goalPrefix" property in the POM configuration section of the plugin. Here's a sniff of what I did with my POM plugin:

<configuration>
  <goalPrefix>${prefix}</goalPrefix>
</configuration>

But I still cannot execute my plugin using mvn ${prefix}:goal, as it complains that it cannot find the plugin in any repository. I still had to use mvn groupId:artifactId:version:goalany idea why?

+5
source share
1 answer

Maven org.apache.maven.plugins org.codehaus.mojo. ( ), Maven:

<settings>
  ...
  <pluginGroups>
    <pluginGroup>the.groupid.of.my.plugin</pluginGroup>
  </pluginGroups>
  ...
</settings>

Maven Settings Reference .

+5

All Articles