Put the JavaDoc generation behind the release profile.