Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Maven dependency doesn't find

I have add to pom.xml of my project repository:

        <repository>
        <id>java.net</id>
        <name>java.net</name>
        <url>http://download.java.net/maven/2</url>
    </repository>

But when I go to tab dependencies of pom - click add I don't see version jsf-impl 2.0 or more I don't see version 2.0

How to fix it? Thanks.

like image 395
user710818 Avatar asked Jul 30 '26 05:07

user710818


2 Answers

To fix search dependency search engine you have to "download repository index". To do so:

Window -> Preferences -> Maven -> User Settings -> Update Settings

(even if this file does not exist!)

If you want to be up to date with this list I recommend enabling:

Window -> Preferences -> Maven -> Download repository index updates on startup

like image 157
rafalmag Avatar answered Aug 01 '26 18:08

rafalmag


You can't unless Maven can download the remote index to power the dependency search. Check the Maven console for log details.

like image 43
Michael-O Avatar answered Aug 01 '26 18:08

Michael-O



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!