For all intents, you cannot use another plugin directly. But most plugins have extracted the useful bits into components which you CAN use.
That it what i am trying to do. In the source code, i try to use the org.apache.maven.archetype.generator.ArchetypeGenerator component, found in maven-archetype-plugin or archetype-common (don't remember which one).
It might be simplest to just copy the archetype plugin source code, rename the groupId and artifactId (etc) in the pom, and use that as a base for your own plugin. What exactly are you trying to do in your plugin?
The plugin i write wraps the archetype creation with some checks and some information retrieval. I already have an "working" version that calls mvn archetype from the command line, but it is fragile when it passes the properties as -D...=... Thus i would prefer to call the ArchetypeGenerator directly.
Also i am interrested in knowing why the component cannot be created in my example ;-)
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
