First, try running eclipse in debug mode with m2e tracing enabled. To do
this, you will need to start eclipse with "-debug
<path-to-options-file>" parameter, where options-file contains these
settings
#<options>
org.maven.ide.eclipse/launcher=true
org.maven.ide.eclipse/debug=true
org.maven.ide.eclipse/plugin=true
org.maven.ide.eclipse/console=true
org.maven.ide.eclipse/debug/initialization=true
org.maven.ide.eclipse/actions=true
org.maven.ide.eclipse/debug/builder=true
org.maven.ide.eclipse/debug/projectManager=true
#</options>
With m2e trace enabled, you should see messages like below printed to
STDOUT.
<output>
Starting Maven build for tycho kind:9 requestedFullBuild:false @ Wed Nov
12 13:45:53 EST 2008
included folder /workspaces/tycho-dev/tycho/src/main/resources
included folder /workspaces/tycho-dev/tycho/src/test/resources
</output>
If this does not show anything useful, then I can only think of firing
up the debugger. If you're interested in trying this out, then the code
in question is in [1], specifically hasChangedResources and
processResources methods.
[1]
http://svn.sonatype.org/m2eclipse/trunk/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/builder/MavenBuilder.java
Ale Sarco wrote:
Yes, I too think is a different thing. Problem is, I cannot reproduce it
at will, if a create another project it'll work fine.
What causes the builder to run when a resource changes? Is there
something I can check?
Alex.
On Wed, Nov 12, 2008 at 5:52 PM, Igor Fedorenko <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
No, I think this is another problem. Maven builder does on resource
change in MNGECLIPSE-823, only build results get deleted by java
builder. Here, maven builder does not run at all.
Bouiaw wrote:
I think this is again and again my m2eclipse most hated bugs, namely
http://jira.codehaus.org/browse/MNGECLIPSE-823
This bug, that make m2eclipse unusable for the majority of web
developers, is planned for fix for the current 0.9.7 release.
On Tue, Nov 11, 2008 at 10:05 PM, Ale Sarco <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Thanks for your response.
Problem is, the build does not run at all, at least nothing
shows on the
Maven console.
I even created a new project from scratch, and the
process-resources goal
runs OK. So it's only on this particular module. Tomorrow
I'll check the log
and see if it's something there.
Alex.
On Tue, Nov 11, 2008 at 8:34 PM, Igor Fedorenko
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Do you see anything interesting in workspace
.metadata/.log file? You can
also enable debug output in maven console, assume build
runs but does not
copy anything.
If this does not reveal anything useful, please submit
bugreport in JIRA
[1] and provide sample project and steps to reproduce
the problem.
[1] http://jira.codehaus.org/browse/MNGECLIPSE
--
Regards,
Igor
Ale Sarco wrote:
Hello,
I've imported a multi-module Maven project into
freshly installed Eclipse
3.4.1 using m2eclipse 0.9.6
The import went OK, although I had to manually add
the JRE System Library
and the Web App Library to a couple of modules.
Two of the modules are web modules, but for some
reason, in one of them
modifying a resource doesn't trigger the
process-resources goal, even though
it's specified in the Maven properties for the
project. The resource folders
are recognized by Maven as it shows after an Update
Project Configuration:
11/11/08 17:24:11 GMT: Adding source folder
/phoenix-web-admin/src/java
11/11/08 17:24:11 GMT: Adding resource folder
/phoenix-web-admin/src/conf/empire/spring
11/11/08 17:24:11 GMT: Adding resource folder
/phoenix-web-admin/src/conf/empire/properties
11/11/08 17:24:11 GMT: Adding resource folder
/phoenix-web-admin/src/resources
11/11/08 17:24:11 GMT: Adding resource folder
/phoenix-web-admin/src/conf/common/spring
11/11/08 17:24:11 GMT: Adding resource folder
/phoenix-web-admin/src/conf/common/properties
11/11/08 17:24:11 GMT: Adding source folder
/phoenix-web-admin/src/test
The strange thing is the other web module does
recognize when a resource
file is updated and triggers the goal. I can't find
any difference between
these two modules configuration/properties. Is there
any specific place
where I should look?
Thanks,
Alex.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email