Actually, this is something that I have on my todo list. Probably will get to 
it next week. Please post if you find the answer outside the forum.




 --- On Thu 08/03, Adam Leggett < [EMAIL PROTECTED] > wrote:
From: Adam Leggett [mailto: [EMAIL PROTECTED]
To: [email protected], [EMAIL PROTECTED]
Date: Thu, 3 Aug 2006 14:52:19 +0100
Subject: RE: [m2] Overriding default components

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

Reply via email to