Dennis, Thanks for the reply, but maybe I need to elaborate further.
Im attempting to override the default behaviour of the archetype:create-from-project mojo. The docs for this are here http://people.apache.org/~oching/maven-archetype-plugin/create-from-proj ect-mojo.html. One of the listed optional params is archetypeCreator Maven ArchetypeCreator * Type: org.apache.maven.archetype.ArchetypeCreator * Required: No I took this to mean that I could provide my own impl of the ArchetypeCreator interface and force the archetype mojo to invoke this other than its default ( org.apache.maven.archetype.DefaultArchetypeCreator ). I am assuming that I need to 1) Define my own class as a plxus component using @plexus.component in my doc comments 2) specify a plexus xml file to define my component role and impl In order to force the plugin mojo to invoke my component and not its default. Hope this clarifies Thanks, Adam -----Original Message----- From: Dennis Klavans [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 2:28 PM To: [email protected] Subject: RE: [m2] Overriding default components If I understand the request correctly... I have been working with the surefire test plugin and needed to override several settings. Here is the reference with some examples: http://maven.apache.org/plugins/maven-surefire-plugin/howto.html. In general I found the syntax to be the same for other plugins. The only difference is the elements within the configuration section. The part I really love is where the bottom of the page talks about all the different settings but doesn't actually list them. While you can find this information if you look hard enough, the following command will provide it for you. This example is for the surefire plugin: mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-surefire-plugin -Dfull=true Good luck. --- On Thu 08/03, Adam Leggett < [EMAIL PROTECTED] > wrote: From: Adam Leggett [mailto: [EMAIL PROTECTED] To: [email protected] Date: Thu, 3 Aug 2006 13:54:41 +0100 Subject: [m2] Overriding default components Hi all,<br><br>I have noticed on a number of plugins that some of the supplied<br>parameters are discovered and or optional.<br>I am assuming that the discovery mechanism is via a plexus configuration<br>file. Can anyone point me to an example that overrides default plugin<br>behaviour using discovered/optional params? If it is done by plexus, how<br>do I configure m2 to read my custom config?<br><br>TIA<br><br>Adam<br><br>Adam Leggett <[EMAIL PROTECTED]><br>Senior Consultant<br>UPCO<br>Direct Line: 0113 20 10 631<br>Fax: 0113 20 10 666<br><http://www.upco.co.uk><br><br><br><br><br>====================== =====================================================<br>The contents of this email are intended for the named addresses and may <br>contain confidential and/or privileged material. If received in error, <br>please contact UPCO head office on +44(0)113 201 0600 and then delete <br>the entire mail from your system. Unauthorised review, distribution, <br>disclosure or other use of information could constitute a breach of <br>confidence. Your co-operation in this matter is greatly appreciated.<br><br>Every effort has been taken to ensure that this email and any <br>attachments are virus-free. However, UPCO does not make any warranty <br>to this effect, and is not liable for any damage done by an infected <br>email message or attachment. UPCO recommends that all emails and <br>attachments are checked before opening.<br><br>All views or opinions expressed in this electronic message and its <br>attachements are those of the sender and do not necessarily reflect <br>the views and opinions of The Ultimate People Company Ltd.<br>================================================================ ===========<br><br><br><br>--------------------------------------------- ------------------------<br>To unsubscribe, e-mail: [EMAIL PROTECTED]<br>For additional commands, e-mail: [EMAIL PROTECTED]<br><br> _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] =========================================================================== The contents of this email are intended for the named addresses and may contain confidential and/or privileged material. If received in error, please contact UPCO head office on +44(0)113 201 0600 and then delete the entire mail from your system. Unauthorised review, distribution, disclosure or other use of information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. Every effort has been taken to ensure that this email and any attachments are virus-free. However, UPCO does not make any warranty to this effect, and is not liable for any damage done by an infected email message or attachment. UPCO recommends that all emails and attachments are checked before opening. All views or opinions expressed in this electronic message and its attachements are those of the sender and do not necessarily reflect the views and opinions of The Ultimate People Company Ltd. =========================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
