Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] How to distinguish between a fresh and cached "artifact not found"?

Hi,

is there are way to reliable distinguish between the following two cases
upon a repositorySystem.resolve(..):

 - Performed lookup; artifact not found in the remote repository
 - Just returned a "not found" cached locally.

artifactResolutionException.getCause().getMessage() makes this
distinction -- unfortunately in plain English: "Could not find artifact"
vs. "was cached in the local repository, resolution will not be
reattempted until the update interval of snapshots has elapsed or
updates are forced".

Is there any way to figure this out programmatically?

Best wishes,

Andreas

-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top