I have a POM for my ejb project. In it I have added a maven-antrun-plugin execution step to build websphere ejb stubs during the verify phase. This works but is quite verbose, and as I need to add similiar steps to a number of other ejb projects I want to move the common section to a parent POM for all our ejbs.
My first try was to just move the entire build tag to the parent POM but this failed during install/deploy of the parent as the verify step was executed for the parent POM instead of just for the child POM.
My second try involved specifying ejb:verify for the phase. This partially succeeded in that the parent POM was deployable. However the verify step was not executed for the child POM.
I have tried several other variations including specifying a phase of ejb, ejb:ejb and specifying true in the plugin definition.
What is the correct way to do this?