Correction, all my test scoped libs aren't found.

icet wrote:
> 
> After a clean I cannot find any of my libs! I'll try to find out more
> about this before opening the bugreport, any help is welcome.
> 
> 
> 
> Igor Fedorenko-4 wrote:
>> 
>> 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
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-dependencies-must-be-first-in-User-Entries%2C-or-Junit-won%27t-work-tp18587495p18596761.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to