Search code examples
javamavenmaven-3maven-pluginmaven-release-plugin

Can I run a custom maven plugin after the maven-release plugin?


Is it possible to call another maven plugin after the maven release plugin completes? I want to notify another service we have that a release has been made (with information about the code itself, specifically about classes that have a certain annotation).

I will need to create the custom plugin, which will call my service, but want to know how I can hook this into the deployment phase after the deployment of the release artifact has been made.


Solution

  • You can specify it in the command line, goals will be executed in the order they are declared:

    mvn release:perform my-plugin:my-goal