Reputation: 681
I would like to define a completely standalone goal in my pom.xml
, that can be invoked manually, like mvn mygoal:mygoal
, that is never run automatically by any of the regular Maven phases. Is this possible to do in a pom file, or would I have to make a whole Maven plugin? (I'd prefer not to, if at all possible.)
Upvotes: 9
Views: 10571
Reputation:
As far as I know, the goal
- an action that the plugin can perform. So you have to make a plugin.
See also:
Upvotes: 3