Reputation: 4418
I want to configure maven in such a way that, whenever, the compile
goal is executed some custom goal hostcopy
from my custom plugin host-config
should be triggered automatically.
Is there any way to achieve this functionality?
Upvotes: 2
Views: 224
Reputation: 31795
First of all, compile is a build life cycle phase. The maven compiler plugin s bound to compile phase by default. You can do the same with your custom plugin, using plugin descriptor to set defaults, or in plugin declaration in pom file using execution element of plugin declaration.
Upvotes: 1