maven adds dependency but eclipse does not see it -


i've created new project in maven this:

mvn archetype:generate -dgroupid=com.mycompany.app -dartifactid=my-app -darchetypeartifactid=maven-archetype-quickstart -dinteractivemode=false 

after use: mvn eclipse:eclipse

the problem when add project ide, eclipse indicates errors. when run classnotfound junit. in project properties see junit added build path

in project properties see: m2_repo/junit/junit/3.8.1/junit-3.8.1.jar

but cant use example: import junit.framework.test;

why that? honest, have major problems dependency in maven , eclipse. maven adds them correctly eclipse doesn't see correctly. it's not junit. should check/set?

should install plugin eclipse maven support ?

edit

i thought again everything. of course problem small. m2_repo not recognize eclipse. i've added variable , set in od maven directory. worked charm.

you can use m2eclipse plugin eclipse

http://m2eclipse.sonatype.org/installing-m2eclipse.html

i don't know if having plugin solve problem, used command line before started using m2elcipse, never had issue described

what version of eclipse using?


Comments

Popular posts from this blog

jQuery Ajax Render Fragments OR Whole Page -

javascript - Iterate over array and calculate average values of array-parts -

java - Simple Command Line calculator -