On Fri, 2004-01-09 at 03:06, Maczka Michal wrote:
> > There will always be some hairy cases where something Maven does isn't
> > compatible with a given method but the
> > <generatedSourceDirectory/> would
> > go a long way to making things better. In the cases where things are
> > hairy, as John said, you can always whip something together in your
> > maven.xml file.
> >
> > --
> > jvz.
> >
> >
> -1 for <generatedSourceDirectory/>
>
>
> <sourceDirectory> and other things in POM exists only because maven cannot
> (yet :) ) impose common
> directory structure of projects (e.g. where sourceDirectory is fixed to
> location like src/main/java)
> But nothing on Earth can stop us from doing things in standard way inside
> "target" directory!!!
Yes, but this is exactly why at first you can't just pick a hard wired
spot to begin because we really have no idea how it will be used.
You know that I personally am all for locking things down but this can
only happen over time. I would tend to agree that a single location for
generated sources would probably work. It well may turn out that it
doesn't and specifying <generatedSourceDirectory/> at least provides a
consistent way for the entity to be used in plugins.
> and we are free to do whatever we want inside "target" directory and force
> plugins to cooperate
> via well defined directory structure.
Having ${pom.build.generatedSourceDirectory} would provide a way for
plugins to cooperate. And I believe the explicit declaration is a good
thing. Even if it eventually happens to be in a POM that all projects
inherit.
>
> For example the following rules can be imposed on plugins the following
> rules on plugins:
>
> a) All artifacts generated by project are put to
> /target/repository/${artifact_path} where ${artifact_path} matches
> artifact path in local/remote repository
> b) All Java source code generator generate their stuff into
> /target/generated/java
I don't think you can impose the rules yet until you let people use it
for a while. I'm all for locking things down over time but I honestly
don't do a lot of source generation so I don't really know how it would
play out.
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]