add java artifact to cache