You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "nicolas de loof (JIRA)" <ji...@codehaus.org> on 2007/12/14 16:26:57 UTC

[jira] Commented: (MECLIPSE-37) eclipse:eclipse should execute in a later phase than "generate-sources"

    [ http://jira.codehaus.org/browse/MECLIPSE-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116824 ] 

nicolas de loof commented on MECLIPSE-37:
-----------------------------------------

Simply moving the generate-* phases prior to compile doesn't fully solve issues with the eclipsePlugin. Any generate plugin that requires dependencyResolution (example : maven-ear-plugin) will require other project artifacts present in the local repo to create the eclipse configuration.

In such case, there is no way to configure eclipse to fix a broken project.

A complete fix would require a new early phase for plugins to DECLARE generated source folders. This would change the default lifecycle and requires many plugins updates.

Another option could be that the reactor automagically registers modules as pseudo-artifacts and ignores them during dependency resolution. There would still be an issue with projects that have attached artifacts (example : test-jar) that may be set as dependencies on other modules. In such case the reactor should also ignore type and classifier...

> eclipse:eclipse should execute in a later phase than "generate-sources"
> -----------------------------------------------------------------------
>
>                 Key: MECLIPSE-37
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-37
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Dependencies resolution and build path
>    Affects Versions: 2.0
>            Reporter: Mark Donszelmann
>            Assignee: fabrizio giustina
>
> the eclipse:eclipse goal should run in a later phase than it currently does (generate-sources)
> as user defined plugins may add to the compileSourceRoots and testCompileSourceRoots.
> If it runs later, added paths will be written correctly to the .classpath.
> Suggested phase is "test"

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