Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    Thanks this solved my problem. The actual test was getting the class not found error when I tried to run it. I think this is probably a preferable first step before adding extra mvn build targets.
    – Roger
    Commented Sep 19, 2014 at 16:20
  • 9
    This method is described with screenshots in this post (in case the steps aren't clear from @slomek's answer above)
    – nhylated
    Commented Nov 19, 2014 at 8:25
  • 2
    I could not move Maven Managed Dependencies above JRE System Library in Eclipse Mars 2, but I could right-click on the project and go to Properties -> Builders and then move Maven Project Builder above the Java Builder and it worked for me.
    – xorcus
    Commented Mar 29, 2016 at 21:43
  • I tried all of the above and it didn't work, I also could not move the Maven Dependencies about JRE System Library but that was under the Libraries tab. Then I went to Build Path -> Order & Export -> as was able to move Maven Dependencies above JRE System library. Then I built the project and ran a Maven install, then the test ran successfully.
    – Megan
    Commented Aug 2, 2016 at 14:31
  • In my case, changing the order of Maven Dependencies from Build Path configuration did not worked for me. I changed its order from Run configuration. it worked. For those steps read my answer.
    – Shadyar
    Commented Sep 22, 2020 at 4:10