You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ole Ersoy <ol...@yahoo.com> on 2006/07/08 05:27:47 UTC

Archetype Component Development Questions

Hi,

It looks like the Archetype component is pluggable,
since there's one named DefaultArchetype?  Is there
any documentation that describes how to make the
substitution happen?

I need to make one that I can substitute for the
default, such that a multi project archetype istance
can be created.

So it will create both the parent project and the
child projects.

Is anyone working on something like this already?

I tried using the same dependencies as the
maven-archetype-core project, but they are not
fetchable from the repository.

Should I just install them manually?

Thanks,
- Ole

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Archetype Component Development Questions

Posted by Rinku <ra...@gmail.com>.
Hi,

You should be able to create your own implementation of for Archetype 
ROLE and assign it a 'role-hint'.

And, then use that 'role-hint' to obtain your custom implementation from 
the container.

See sources for Plexus archiver - how DefaultArchiverManager performs 
component look up based on the role-hint and how different archiver 
implementations are set up in components.xml.


http://svn.codehaus.org/plexus/trunk/plexus-components/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/manager/DefaultArchiverManager.java


HTH,
Rahul

----- Original Message ----- 
From: "Ole Ersoy" <ol...@yahoo.com>
To: <de...@maven.apache.org>
Sent: Saturday, July 08, 2006 3:27 PM
Subject: Archetype Component Development Questions


> Hi,
>
> It looks like the Archetype component is pluggable,
> since there's one named DefaultArchetype?  Is there
> any documentation that describes how to make the
> substitution happen?
>
> I need to make one that I can substitute for the
> default, such that a multi project archetype istance
> can be created.
>
> So it will create both the parent project and the
> child projects.
>
> Is anyone working on something like this already?
>
> I tried using the same dependencies as the
> maven-archetype-core project, but they are not
> fetchable from the repository.
>
> Should I just install them manually?
>
> Thanks,
> - Ole
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org