We will need more information about your project(s) to see if m2e can run it better.

To start, can you please verify if you're able to successfully run the unit tests using maven from CLI (i.e. "mvn clean test")? m2e tries to mimic classpath order used by maven CLI (see [1] for details). Please open JIRA bugreport with sample project and steps to reproduce the problem if this is m2e-specific problem.

[1] http://docs.codehaus.org/display/M2ECLIPSE/Runtime+classpath

icet wrote:
If you create a test in Eclipse, it's classpath will have something like:
Bootstrap Entries
    jdk
User entries
    myProject
    Maven Dependencies

When using JPA annotations, such as @PersistenceContext, Maven Dependencies
must appear before myProject, or I'll get a NoSuchMethodError for
PersistenceContext.

Is there a way to fix this? Whenever I create a new test configuration I
must set this manually.

thanks


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

   http://xircles.codehaus.org/manage_email


Reply via email to