Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71258

Spaces in job name cause javadoc error (Illegal package name)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • m2release-plugin
    • None
    • Jenkins 2.375.1
      Maven Release Plug-in 0.16.3
      OS: CentOS 7
      VCS: Subversion

      When I try to release a new version of my project by using the Maven Release Plugin, the release fails during the javadoc generation process:

      [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar (attach-javadocs) on project abc-app: MavenReportException: Error while generating Javadoc: 
      [INFO] [ERROR] Exit code: 2
      [INFO] [ERROR] javadoc: error - Illegal package name: "production)/target/checkout/target/apidocs"
      [INFO] [ERROR] Command line was: /var/lib/jenkins/jdks/openJDK-11.0.19+7/bin/javadoc @options @packages

      The issue are the spaces in the job name because when I replace them, the error vanishes.

            Unassigned Unassigned
            npeifer Nicolas Peifer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: