简体   繁体   中英

Netbeans 8.0 maven does not show the newest dependency

Netbeans IDE 8.0.2 created a new maven project.

This is a brand new project so there are no previous installed dependencies

Trying to add spring dependencies but netbeans only show older versions.

For example 在此处输入图片说明

When search the repository it should be 4.0.x How do I fix this?

Thank you

Even thought it might be a new project I imagine your .m2 cache still has all the old version. I'm not sure how NetBeans builds that screen, but if it's based on your cache rather than what's on central you won't see the newer versions until maven pulls them in

--EDIT--

To manually add the dependency go to MvnRepository and search for the dependency on Spring you need, then copy-paste the generate pom dependency entry into your pom.xml then update your dependencies.

Only 1024 of 81415 results shown. Consider narrowing your search

The index search returns the results in fairly random order, so even though Netbeans tries to give you a grouped view, there will be holes because some versions were not included in the 1024 results shown.

A limited number of results is shown for performance reasons. AFAIK.

For reason unknown. You need to type

'org.springframwork'

To yield the newest version.

Any thing like the following will not work

'spring',
'springframework'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM