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

Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • Jenkins v.1565.3
      Maven project plugin v2.8

      We have a Maven project using the maven-source-plugin. When building the
      project on Jenkins, it shows the following warning:

      [INFO] *--- maven-jar-plugin:2.4:jar (default-jar) @ test-project ---
      *[INFO] Building jar:
      /home/jenkins/workspace/test-project/target/test-project-1.0.0-SNAPSHOT.jar[WARNING]
      Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
      

      I tested with maven-source-plugin 2.2.1, 2.3, and 2.4 and all of these
      versions exhibit the same problem.

      The problem does not appear if the project was compiled from NetBeans or command line.

      (Initially, I thought this was a Maven issue, therefore I started a thread at the Maven user's mailing list:
      http://maven-users.markmail.org/thread/jd74vnjnzfoef55e#query:+page:1+mid:no3jnbfgji2x63wj+state:results)

          [JENKINS-27372] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo

          Charles Chan created issue -
          Charles Chan made changes -
          Description Original: We have a Maven project using the maven-source-plugin. When building the
          project on Jenkins, it shows the following warning:

          [INFO] *--- maven-jar-plugin:2.4:jar (default-jar) @ test-project ---
          *[INFO] Building jar:
          /home/jenkins/workspace/test-project/target/test-project-1.0.0-SNAPSHOT.jar[WARNING]
          Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo

          I tested with maven-source-plugin 2.2.1, 2.3, and 2.4 and all of these
          versions exhibit the same problem.

          The problem does not appear if the project was compiled from NetBeans or command line.

          (Initially, I thought this was a Maven issue, therefore I started a thread at the Maven user's mailing list:
          http://maven-users.markmail.org/thread/jd74vnjnzfoef55e#query:+page:1+mid:no3jnbfgji2x63wj+state:results)
          New: We have a Maven project using the maven-source-plugin. When building the
          project on Jenkins, it shows the following warning:

          {noformat}
          [INFO] *--- maven-jar-plugin:2.4:jar (default-jar) @ test-project ---
          *[INFO] Building jar:
          /home/jenkins/workspace/test-project/target/test-project-1.0.0-SNAPSHOT.jar[WARNING]
          Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
          {noformat}

          I tested with maven-source-plugin 2.2.1, 2.3, and 2.4 and all of these
          versions exhibit the same problem.

          The problem does not appear if the project was compiled from NetBeans or command line.

          (Initially, I thought this was a Maven issue, therefore I started a thread at the Maven user's mailing list:
          http://maven-users.markmail.org/thread/jd74vnjnzfoef55e#query:+page:1+mid:no3jnbfgji2x63wj+state:results)
          Harald Albers made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161577 ] New: JNJira + In-Review [ 180751 ]

            Unassigned Unassigned
            charleswhchan Charles Chan
            Votes:
            15 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated: