code: private LightweightHttpWagon setAuthenticator(final LightweightHttpWagon wagon) {
          final Field authenticator;
          try {
              authenticator = AccessController.doPrivileged(new PrivilegedExceptionAction<Field>() {
                  @Override
                  public Field run() throws Exception {
                      final Field field = LightweightHttpWagon.class.getDeclaredField("authenticator");
                      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
          wagon.setPreemptiveAuthentication(true);
  
          return wagon;
      }
docs: http://dev.eclipse.org/mhonarc/lists/aether-users/msg00113.html