You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien HENRY (JIRA)" <ji...@codehaus.org> on 2009/04/08 11:50:19 UTC

[jira] Updated: (MECLIPSE-549) Generated source folder is not added as eclipse source folder (using xmlbeans)

     [ http://jira.codehaus.org/browse/MECLIPSE-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien HENRY updated MECLIPSE-549:
----------------------------------

    Attachment: test-eclipse-xmlbeans.zip

This is a small test project to reproduce the issue.

Step to reproduce:

1) mvn clean install eclipse:clean
2) mvn eclipse:eclipse

I suspect the bug is not on the eclipse plugin side but instead on the xmlbeans side. When step 1) is executed, xmlbeans generates sources in generated-source folder. But when step 2 is executed, I can see:

{code}
[INFO] Preparing eclipse:eclipse
[INFO] [xmlbeans:xmlbeans {execution: default}]
[INFO] All schema objects are up to date.
[INFO] [eclipse:eclipse]
...
{code}

The "All schema objects are up to date." makes me think that because sources were already generated during step 1, xmlbeans doesn't generate them again, but probably also forgot to register generated-source folder as a maven source folder.

> Generated source folder is not added as eclipse source folder (using xmlbeans)
> ------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-549
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-549
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Dependencies resolution and build path (.classpath)
>    Affects Versions: 2.6
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_12
> Java home: C:\Program Files\Java\jdk1.6.0_12\jre
> Default locale: fr_FR, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Julien HENRY
>            Priority: Critical
>         Attachments: test-eclipse-xmlbeans.zip
>
>
> My build use xmlbeans to generate Java sources and .class from XSD.
> With previous version of the plugin it mostly worked (I only had a problem because .class generated by xmlbeans were overriden by Eclipse automatic recompilation).
> With latest plugin version, generated source folder is not added anymore to the eclipse classpath.
> I've tested with another build using the exec-maven-plugin with a <sourceRoot> element and this additional source is correctly added. So the problem may be specific to xmlbeans plugin.

-- 
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