pom.xml - Maven not installing dependcies -
pom.xml - Maven not installing dependcies -
i new maven basic cant seem bottom of it.
i running m2eclipse. have simple project trying utilize classes in maven bundle servlet-api (group id : javax.servlet artifact : servlet-api version 2.5 scope : compile ).
my repository assumed pulled from, in settings.xml (http://repo1.maven.org/maven2 ). followed url verify there jar , such @ address , there (http://search.maven.org/#browse|-182598336)
however when run mvn compiler:compile (cannot find symbol symbol : class httpservletrequest )
also looked in repository , jar's , poms should installed there not. other classes not.
i have looked in debug info got -x , didnt seem indicate wrong.
i can post effective pom or whatever find helpful.
thanks in advance.
so able solve issue. bit strange, seems deed differently if select pom , click maven -> add together dependance. download , install dependency.
if add together straight pom (as doing before) there additional step seems bit unusual , select project (again using m2eclipse) not pom, , click maven -> update dependencies ...
seems odd because not running in offline mode, think when run mvn compiler:compile
command line should notice needs resolve dependency , go repository...
maybe there setting have have forcefulness happen?
in event hope saves time :)
maven pom.xml maven-eclipse-plugin
Comments
Post a Comment