Before getting into detailed debugging, can you please install m2e 0.9.5
(the latest released version) including optional WTP configurator from
m2e update site [1]. Then, right click on your projects and run
Maven->Update Project Configuration.
If you still see this problem, please submit a bugreport in JIRA [2]. We
will need sample project and steps to reproduce the problem as explained
in [3]
[1] http://m2eclipse.sonatype.org/update/
[2] http://jira.codehaus.org/browse/MNGECLIPSE
[3] http://docs.codehaus.org/display/M2ECLIPSE/Reporting+Issues
Papapara Tudu wrote:
Hello,
I just upgraded the m2eclipse plugin to 0.9.4 from 0.12.
After that I cannot deploy my multi-module project to Tomcat through Eclipse
anymore. When I try doing that, Eclipse complains that other modules that my
war project depends on are missing (it deploys all other dependencies
correctly). The exact message it gives is:
"Publishing failed.
Resouce "Module1" is missing.
Resource "Module2" is missing."
(where Module1 and Module2 are the names of other modules in the project).
Why could that be happening?
Just in case, here is my .classpath file (for the web module):
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes"
path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes"
path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes"
path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes"
path="src/test/resources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/Module1"/>
<classpathentry combineaccessrules="false" kind="src" path="/Module2"/>
<classpathentry kind="con"
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
and here is my .project file (again for the web project):
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Module3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
</natures>
</projectDescription>
This is happening both on Tomcat 5 and 6.
Thanks in advance!
Papapara Tudu
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email