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

Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy in Maven Job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      When I run a maven multi module build there are frequent warnings in the console log.

      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ com.acme.prod.sto —
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — build-helper-maven-plugin:1.9.1:add-source (add-source) @ com.acme.prod.sto —
      [INFO] Source directory: E:\Jenkins\workspace\prod\com.acme.prod.sto\sto added.
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ com.acme.prod.sto —
      [INFO] Using 'Cp1252' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\main\resources
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\main\java
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-compiler-plugin:3.2:compile (default-compile) @ com.acme.prod.sto —
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 132 source files to E:\Jenkins\workspace\prod\com.acme.prod.sto\target\classes
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.13:checkstyle (default) @ com.acme.prod.sto —
      [INFO]
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ com.acme.prod.sto —
      [INFO] Using 'Cp1252' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\test\resources
      [INFO] skip non existing resourceDirectory E:\Jenkins\workspace\prod\com.acme.prod.sto\src\test\java
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-compiler-plugin:3.2:testCompile (default-testCompile) @ com.acme.prod.sto —
      [INFO] No sources to compile
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ com.acme.prod.sto —
      [INFO] Tests are skipped.
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-jar-plugin:2.5:jar (default-jar) @ com.acme.prod.sto —
      [INFO] Building jar: E:\Jenkins\workspace\prod\com.acme.prod.sto\target\com.acme.prod.sto-5.4.2-SNAPSHOT.jar
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-install-plugin:2.4:install (default-install) @ com.acme.prod.sto —
      [INFO] Installing E:\Jenkins\workspace\prod\com.acme.prod.sto\target\com.acme.prod.sto-5.4.2-SNAPSHOT.jar to E:\MavenRepository\com\acme\collab\common\com.acme.prod.sto\5.4.2-SNAPSHOT\com.acme.prod.sto-5.4.2-SNAPSHOT.jar
      [INFO] Installing E:\Jenkins\workspace\prod\com.acme.prod.sto\pom.xml to E:\MavenRepository\com\acme\collab\common\com.acme.prod.sto\5.4.2-SNAPSHOT\com.acme.prod.sto-5.4.2-SNAPSHOT.pom
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.13:checkstyle (default-cli) @ com.acme.prod.sto —
      [INFO]
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;
      [INFO]
      [INFO] — javancss-maven-plugin:2.1:report (default-cli) @ com.acme.prod.sto —
      [INFO] Running JavaNCSS 33.54
      [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator;

      I assume there are multiple versions of commons-io lib in the classpath.
      The method signature org.apache.commons.io.IOUtils.lineIterator(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Lorg/apache/commons/io/LineIterator; seems to be new in commons-io 2.4.

      Edit:
      I have disabled all post build setting -> the warnings disappeared.
      If I re-enable the Checkstyle post build setting (Publish checkstyle analysis) the warning are displayed, but only under the checkstyle goal in the log.

            Unassigned Unassigned
            sefi18 Sebastian Fischer
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: