Bouiaw wrote:
Hi,

I don't really understand the default values for resource processing,
especially :
- why should we run process-test-resources and not process-resources
after a clean ?

m2e projects include both main and test classes/resources, so it is theoretically possible that some tests require processed test resources to run successfully. I agree that chances are slim, but overhead of running through couple of extra empty build phases is negligible.

- why process-test-resources is not needed after resource changes ?

We're trying to limit extent of possible changes done by maven during incremental build. process-test-resources generates sources, resource, compiles classes all of which take time to execute and potentially trigger other builders.


I know that we can cutomize these value, but as it is default value I
would like to understand how it works.

I have begin to play with these values because on one of my project,
when I run a clean + build in Eclipse, resource files are created in
target/classes at the beggining of the build but are removed at the
end ! If I replace default values for after a clean
"process-test-resources" by "process-resources resources:resources",
it works.

Current implementation is sensitive to builders order. Can you please verify if maven build is configured to run after java builder? This should be addressed to a certain degree by MNGECLIPSE-707.


A related question is : does it make sense to configure the following
all inclusive command for both default values : process-resources
process-test-resources resources:resources resources:testResources

As I explained above, running almost complete maven build lifecycle for incremental resource changes maybe very expensive. Also, process-test-resources implies the other goals for all standard maven project types.


I have tried to reproduce it in a test case project but it works well
in my simple test project ...

Thanks in advance for your answers.

On Sat, Jul 12, 2008 at 9:00 AM, Henri Gomez <[EMAIL PROTECTED]> wrote:
BTW, this one should be added in a FAQ page until resolved, it could
save users hours of headaches :)

2008/7/11 Henri Gomez <[EMAIL PROTECTED]>:
2008/7/11 Eugene Kuleshov <[EMAIL PROTECTED]>:
 There is a jira issue for that already. Please vote on it.

 MNGECLIPSE-707: action "update project configuration" should restore proper
order of project builders
http://jira.codehaus.org/browse/MNGECLIPSE-707

 Thanks
Done !

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

   http://xircles.codehaus.org/manage_email




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

    http://xircles.codehaus.org/manage_email




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

   http://xircles.codehaus.org/manage_email


Reply via email to