The enhancement causes the code to be compiled twice
----------------------------------------------------

                 Key: MOPENJPA-8
                 URL: http://jira.codehaus.org/browse/MOPENJPA-8
             Project: Maven 2.x OpenJPA Plugin
          Issue Type: Bug
         Environment: maven 2.1 / Windows XP
            Reporter: Yann Andenmatten


We are using you plugin to enhance JPA classes generated by our soft. The 
generation process takes some time and we noticed it was triggered twice. 

Doing a quick analysis to the mojo, it seams to be related to the tag 
@execute="compile" in the OpenJPAEnhancer Maven Mojo. This tag usually is used 
to perform parallel build (for instrumenting by clover for example). Usually, 
when using this tag, the mojo should also declare a ${executedProject} 
parameter to be able to use this parallel project. In this case, it seems 
rather to be a bug since there is no ${executedProject} parameter. 

Starting a parallel full build cycle causes our generation be called twice as 
it is attached to the generate-sources phases.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to