maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milos Kleint" <mkle...@gmail.com>
Subject Re: [Archetypes] plugin proposition
Date Sun, 01 Apr 2007 10:49:04 GMT
On 3/31/07, Heinrich Nirschl <heinrich.nirschl@gmail.com> wrote:
> On 3/31/07, Jason van Zyl <jason@maven.org> wrote:
> >
> > On 31 Mar 07, at 12:08 PM 31 Mar 07, Heinrich Nirschl wrote:
> >
> > > On 3/31/07, Jason van Zyl <jason@maven.org> wrote:
> > >>
> > >> On 31 Mar 07, at 10:07 AM 31 Mar 07, Raphaël Piéroni wrote:
> > >>
> > >> > Hi here comes a new proposition for the future descriptor.
> > >> >
> > >> > I made it the most simpler i can think.
> > >> >
> > >> > Please comment it.
> > >> >
> > >>
> > >> I think it duplicates too much that's in the POM. The POM should be
> > >> the model that used for Archetype wherever possible and an ancillary
> > >> model should only be used where absolutely necessary. But as far as
> > >> any sources, resources and any filtering what is done in the POM for
> > >> the Archetype project is how the prototype generated from that
> > >> Archetype should end up.
> > >
> > > I don't think it is feasible in all cases to take out the information
> > > from the pom.
> >
> > I didn't say in all cases.
> >
> > > For example, the archetype author may want to put some
> > > resources into the specified package, while others have already the
> > > correct place. The pom does not allow to express this.
> >
> > Sorry, I don't grok this sentence. Give me an example.
>
> Some resources should have an absolute position in the classpath, an
> example being log4j.properties which is normally in the root of the
> classpath (default package).
> Other resources, like for example hibernate mappings, should be in the
> same package as the class they belong to.
> This means, in an archetype it must be possible to control which
> resource files get prefixed by the package and which don't. It is
> hard, if not impossible, to make the decision automatically.
>

exactly this is a showstopper for me in the current archetype when I
attempted to create an archetype for netbeans module development. I
need to place Bundle.properties and layer.xml file in resources into
the proper package.

Milos

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


Mime
View raw message