how do i create derived required properties for maven archetypes during generation

375 Views Asked by At

I need to provide derivative custom required properties for during archetype:generation when using an archetype. Maven already supports custom required properties that derive from buit-in properties like artifactId and rootArtifactId. But due to some long-standing evaluation ordering issues, it is not possible to reliably derive from custom properties.

I found a solution that might work, using the groovy maven plug-in here.

The problem with that proposed solution is that the initialization phase does not apply for non-POM uses like archetype generation. My question is how can I use the groovy maven plugin during archetype:generate? I cannot seem to get it to be invoked. I cannot figure out what phase value to use.

0

There are 0 best solutions below