Reputation: 221
I am trying to use jersey API and this is my first maven project.
I have 2 maven dependency problems that look like this:
Description Resource Path Location Type
ArtifactTransferException: Failure to transfer org.glassfish.hk2:osgi-resource-locator:jar:1.0.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.glassfish.hk2:osgi-resource-locator:jar:1.0.1 from/to central (http://repo.maven.apache.org/maven2)
Description Resource Path Location Type
Missing artifact org.glassfish.hk2:osgi-resource-locator:jar:1.0.1
How should I go about to fix this?
Upvotes: 1
Views: 1036
Reputation: 492
Remove all your failed downloads from
For windows:
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
Then rightclick on your project in eclipse and choose Maven->Update Dependencies
Upvotes: 1
Reputation: 906
Possible solutions
settings.xml
file in your repo home folder and set proxy if you are using themUpvotes: 0