apennebaker
apennebaker

Reputation: 681

How can I define a standalone goal in Maven pom.xml?

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

Answers (1)

user1134181
user1134181

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

Related Questions