java - Maven not downloading dependencies in Eclipse -
i setting project in eclipse . projects builds through command line(all mvn
commands mvn package
, mvn compile
, mvn clean install
) work fine. while setting project on sts or eclipse . see of dependencies not getting downloaded though present in pom.xml
. however, searching them in maven repository , downloading jar local computer , adding them build path makes work on eclipse.
is there need eclipse make sure downloads dependencies repository.
my pom:
<dependency> <groupid>org.apache.bookkeeper</groupid> <artifactid>bookkeeper-server-compat410</artifactid> <version>4.1.0</version> <scope>test</scope> <exclusions> <exclusion> <groupid>org.apache.bookkeeper</groupid> <artifactid>bookkeeper-server</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.apache.bookkeeper</groupid> <artifactid>bookkeeper-server-compat420</artifactid> <version>4.2.0</version> <scope>test</scope> <exclusions> <exclusion> <groupid>org.apache.bookkeeper</groupid> <artifactid>bookkeeper-server</artifactid> </exclusion> </exclusions> </dependency>
both these artifacts not downloaded eclipse , there jars found http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat410/4.1.0 , http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat420/4.2.0 not present in folder mavendependencies , subsequently giving errors in eclipse.
however manually adding them build path created new folder (reference library) , resolved eclipse errors . why did eclipse not download , import these dependencies maven repository ?? bug in eclipse or problem side . please help.
solution 1:
set correct proxy:
<proxy> <id>optional</id> <active>false</active> <protocol>http</protocol> <username></username> <password></password> <host>172.27.171.91</host> <port>8080</port> </proxy>
solution2 :
just delete
lastupdated extension files folder
and try updating maven.
[most of times solution work]
Comments
Post a Comment