I upgraded to 3.1.0.GA JBT.
So I think I nailed down the root cause of why m2e can't accommodate my projects in terms of proper classpath/build path. Ultimately it comes down to the Maven Dependencies list being incomplete/wrong I guess but not sure how to fix this as my Seam application consists of two higher-level pom.xml (i.e.this is multi-module scenario consisting of two project with multi-modules and one depends on the other for services, API calls, etc.) Thus, I typically run 'mvn clean install' on two pom's, first model, then GUI.
I have two parent pom.xml files. One is dependent on the other (the model pom has the DAO, domain/entity classes, etc). These are apparently two independent projects when I do a svn checkout as Maven project.
So the following .classpath file for one of the mvn modules in the non-model project (it's called GUI which depends on Model packages/classes, etc.) does not have references to the model modules/projects so these packages and classes are unrecognizable by the compiler:
<?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="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
When I run 'mvn eclipse:eclipse', the .classpath contents for this module/project change to the following which "fixes" the compiler resolution errors b/c of the classpathentry entries below for the cis.crud.dao, cis.crud.domain, etc which are apparently missing when m2e creates the .classpath file:
<classpath>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" path="M2_REPO/javax/el/el-api/1.2/el-api-1.2.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/javaee/javaee/5.0/javaee-5.0.jar" sourcepath="M2_REPO/javax/javaee/javaee/5.0/javaee-5.0-sources.jar">
<attributes>
<attribute value="jar:file:/C:/Documents%20and%20Settings/asookazian/.m2/repository/javax/javaee/javaee/5.0/javaee-5.0-javadoc.jar!/" name="javadoc_location"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/com/echo/cis/model/com.echo.cis.crud.dao/1.5.1-SNAPSHOT/com.echo.cis.crud.dao-1.5.1-SNAPSHOT.jar" sourcepath="M2_REPO/com/echo/cis/model/com.echo.cis.crud.dao/1.5.1-SNAPSHOT/com.echo.cis.crud.dao-1.5.1-SNAPSHOT-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/echo/cis/model/com.echo.cis.crud.domain/1.5.1-SNAPSHOT/com.echo.cis.crud.domain-1.5.1-SNAPSHOT.jar" sourcepath="M2_REPO/com/echo/cis/model/com.echo.cis.crud.domain/1.5.1-SNAPSHOT/com.echo.cis.crud.domain-1.5.1-SNAPSHOT-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/echo/cis/model/com.echo.cis.domain/1.5.1-SNAPSHOT/com.echo.cis.domain-1.5.1-SNAPSHOT.jar" sourcepath="M2_REPO/com/echo/cis/model/com.echo.cis.domain/1.5.1-SNAPSHOT/com.echo.cis.domain-1.5.1-SNAPSHOT-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/com/echo/cis/model/com.echo.cis.ejb.dao/1.5.1-SNAPSHOT/com.echo.cis.ejb.dao-1.5.1-SNAPSHOT.jar" sourcepath="M2_REPO/com/echo/cis/model/com.echo.cis.ejb.dao/1.5.1-SNAPSHOT/com.echo.cis.ejb.dao-1.5.1-SNAPSHOT-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.2/commons-lang-2.2.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.2/commons-lang-2.2-sources.jar">
<attributes>
<attribute value="jar:file:/C:/Documents%20and%20Settings/asookazian/.m2/repository/commons-lang/commons-lang/2.2/commons-lang-2.2-javadoc.jar!/" name="javadoc_location"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/jboss/embedded/hibernate-all/beta3/hibernate-all-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/el/jboss-el/2.0.2.CR1/jboss-el-2.0.2.CR1.jar" sourcepath="M2_REPO/org/jboss/el/jboss-el/2.0.2.CR1/jboss-el-2.0.2.CR1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/embedded/jboss-embedded/beta3/jboss-embedded-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/embedded/jboss-embedded-all/beta3/jboss-embedded-all-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/seam/jboss-seam/2.1.1.GA/jboss-seam-2.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/seam/jboss-seam/2.1.1.GA/jboss-seam-2.1.1.GA-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jibx/jibx-bind/1.1.5/jibx-bind-1.1.5.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jibx/jibx-extras/1.1.5/jibx-extras-1.1.5.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jibx/jibx-run/1.1.5/jibx-run-1.1.5.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sf/opencsv/opencsv/1.8/opencsv-1.8.jar" sourcepath="M2_REPO/net/sf/opencsv/opencsv/1.8/opencsv-1.8-sources.jar">
<attributes>
<attribute value="jar:file:/C:/Documents%20and%20Settings/asookazian/.m2/repository/net/sf/opencsv/opencsv/1.8/opencsv-1.8-javadoc.jar!/" name="javadoc_location"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0.1/stax-api-1.0.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/testng/testng/5.7/testng-5.7-jdk15.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jboss/embedded/thirdparty-all/beta3/thirdparty-all-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar" sourcepath="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
Here is an update I got from Jason Van Zyl to a (now closed) JIRA issue I opened regarding this same topic in this thread:
The maven-eclipse-plugin is not supported. Any problems are with configurators so report what is missing. You won't be able to sue mvn eclipse:eclipse with M2Eclipse 1.0.