Thursday, 21 February 2008

Annoying issue with Maven Archetype plug-in

I've just spent an annoying fifteen minutes battling with trying to get Maven to download and use one of the ServiceMix archetypes. After some battling, it transpired that there's a bug in version 2.0-alpha-1 of the Maven archetype plug-in (or at the very least, there's a change in there that upsets the apple cart as far as the current repository goes).
The solution seems to be to force Maven to use version 1.0-alpha-7 of the plug-in by either manually running:

... or if you're using ServiceMix like me, editing your smx-arch.bat or smx-arch.sh file to include a similar change.
This does all rather make me think that the Maven guys need to concentrate a little more on governance of change to their plug-ins. Replacing a plug-in that works with a plug-in that doesn't, and making the whole world adopt it by default is not a good way to make friends and influence people.