Do not exclude JDK packages, but rather set the resolution to optional.