You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2006/02/07 16:37:47 UTC

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

     [ http://jira.codehaus.org/browse/MECLIPSE-37?page=all ]
     
Kenney Westerhof reopened MECLIPSE-37:
--------------------------------------


The idea behind the eclipse plugin is that you can develop on a project.

Right now, I checked out a new version of a project I'm working on. Somebody messed it up
and now it doesn't compile. I want to edit the faulty classes in Eclipse but I don;t have any .project
files. So I run mvn eclipse:eclipse. That fails because the project doesn't compile.

Now I cannot fix the bugs because the plugin that should make metadata ABOUT the project
tries to compile it first which makes no sense.

I understand that test-resources should also be present in eclipse, but this solution limits
the usage of eclipse on maven projects and is not backwards compatible in my opinion.

I'd like to see this change reverted, and maybe add a comandline switch to include/exclude
test resources when generating project resources. Currently I think only a new mojo can do the trick
since the @execute phase is not runtime configurable.

Maybe it's time to review the generate-test-resource phase. Is it per definition necessary to have
compiled src/main sources present in this phase? If so, why? If not, shouldn't the generate-test-(re)sources
be run right after the process-resources? I.e. move them before the compile phase?

Another solution might be to make the @execute phase configurable somehow, and specify an option
to the eclipse:eclipse plugin to NOT generate test resources and stick with the generate-resources
phase.
the process-resources 

> 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
>         Type: Bug

>     Versions: 2.0
>     Reporter: Mark Donszelmann
>     Assignee: fabrizio giustina
>      Fix For: 2.1

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org