Eric Huang February 2016

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 enter image description here

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

Thank you

Answers


jamesnuge February 2016

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.


mkleint February 2016

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.


Eric Huang February 2016

For reason unknown. You need to type

'org.springframwork'

To yield the newest version.

Any thing like the following will not work

'spring',
'springframework'

Post Status

Asked in February 2016
Viewed 2,643 times
Voted 6
Answered 3 times

Search




Leave an answer