On 7/20/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> John Fallows wrote:
> 
> >If the PLUGIN-NAME is the plugin artifactId, doesn't this lead to
> >collisions when plugins only differ by groupId?
> >
> >
> It's actually whatever the plugin wants to call itself, and you can
> override it with your own setting if you prefer to share a single
> directory or want to call it something else.

Understood.

> I think it is worth separating them by default since it doesn't impose
> any extra burden on your build process (all the plugins, including IDE
> project generation, are aware of a list of source roots) and makes it
> easy to differentiate. That said, I'd personally avoid more than one
> code generation plugin in a single project if possible.

Sorry, I don't (yet) understand the benefit of separation by plugin.  
Is it important to be able to differentiate?

IMHO, using one or more code generation plugins in a single project is
a question of using the right tool(s) for the job.  If there is a
requirement to maintain a single source of truth for more than one
type of generated source, then more than one codegen plugin should be
used in the project.

> It's also possible some plugins are targetting different phases, so you
> wouldn't want to generate them into the same tree as the ones that would
> be used in main. There could be more scenarios than just main and test,
> so it is best to separate by plugin.

I completely agree that there might easily be more cases than just
main and test, for example site or itest (integration test).  I was
trying to convey that point with the "etc" at the end of the directory
listing in the original email, but should have been more clear.

It seems that classification of these sources into main, test, site,
itest, etc, would already be well-defined for checked in sources under
${basedir}/src, and the fact that they are generated does not change
the classification.

IMHO, it makes sense to replicate the ${basedir}/src subdirectory
structure under ${basedir}/target/generated-src because all these
files would be checked in under ${basedir}/src if they were not being
generated.

As a very minor point, I suppose the number of independent sourcePath
roots has a non-zero impact compilation speed.

Kind Regards,
John Fallows.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to