> -----Original Message-----
> From: Peter Bright [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 12:14 PM
> To: 'Maven Users List'
> Subject: RE: Xdoclet & Eclipse
> 
> 
> Without some kind of defined (and widely used!) mechanism for
> source-modifying plugins to do their thing, it's not clear 
> how they have any
> real choice in the matter.  Does there exist a better way 
> that works right
> now?
I agree with  Vicent that pre/post Goals should be not used by plugins. 

At the moment common pratice is to have a maven.xml file with something
like:

<project>
    <preGoal name="java:compile">
        <attainGoal name="javacc"/>
    </preGoal>
</project>

in it

and unfortunatly plugins like eclipse, javadocs etc. are not seeing yet that
there are seeing that some java sources were generated

We have dissussed this issue sometime ago and if I remember we were close to
agreeing that we should add to POM
a tag <generatedSourceDirectory> which can be used by all plugins. 

Later on we can even think about adding other tags like <webSourceDirectory>
or <codeGenerator> 
(e.g <codeGenerator>javacc</codeGenerator> or
<codeGenerator>xdoclet</codeGenerator>)
etc once we will be able disovered some common patters and generalize them. 

In an case no change in POM structure is planned for 1.0 release.

Michal

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

Reply via email to