field.setAccessible(true);
return field;
}
});
} catch (final PrivilegedActionException pae) {
throw new ResolutionException("Could not manually set authenticator to accessible on "
+ LightweightHttpWagon.class.getName(), pae);
}
try {
authenticator.set(wagon, new LightweightHttpWagonAuthenticator());
} catch (final Exception e) {
throw new ResolutionException("Could not manually set authenticator on "
+ LightweightHttpWagon.class.getName(), e);
}
// SHRINKRES-69
// Needed to ensure that we do not cache BASIC Auth values