On Sat, Jul 10, 2004 at 01:33:30PM +0100, Eric Pugh wrote:
> Hi all,
> 
> Can we add maven.gen.src=${maven.build.dest}/generated-sources?

Where would you like to add this? 
Which plugins would be affected/need up be updated.

> 
> I've been doing a bunch of work with the Hibernate, Xdoclet, and Eclipse
> plugins for a client.  One of the challenges we had was getting source code
> generated via the Xdoclet and Hibernate plugins to play nice w/ a normal
> Maven build as well as using it within Eclipse.  Eclipse is their primary
> environment for their developers, so Maven had to play nice with Eclipse.
> 
> The biggest challenge was getting various generated code bits into the
> /target directory.  When we put files in /target/classes and then ran builds
> in Eclipse the /target/classes directory would be completely cleaned, and
> wiped out the generated code that was needed.
> 
> After chatting with JvZ, I added to the Eclipse plugin the ability to add as
> seperate source directories anything in ${maven.gen.src}.  So, after
> generating hibernate mapping files and a ddl I would have:
> /target/generated-sources/xdoclet
> /target/generated-sources/schema
> 
> and they would each be a source folder in Eclipse.  Works great.  However,
> because maven.gen.src is defined in the Eclipse plugin only, you have to
> specify for the hibernate and xdoclet plugins the full path to generate
> source into.  It would be much simpler if maven.gen.src worked the same way
> that maven.build.dest and other properties like that work.
> 
> Eric
> 

As dIon said I don't think we should make changes like this before 1.0 but
I'm +1 for this after a Maven 1.0 release.

--
Trygve

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

Reply via email to