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

Unnecessarily verbose warning if executed mojo is part of the build

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

      If a mojo which is executed in a reactor build, was also build in that build, the digest cannot be computed and a warning and stacktrace is displayed (see JENKINS-5044).
      This is unnecessarily verbose and repeated each time the mojo is used. The stacktrace could be left out as the source of the warning is clear.

      Example warning:

      WARNING: Failed to caculate digest for XyzMojo
      09:21:51 java.io.FileNotFoundException: /construction/hudson/workspace/abc/target/classes (Is a directory)
      09:21:51 at java.io.FileInputStream.open(Native Method)
      09:21:51 at java.io.FileInputStream.<init>(FileInputStream.java:120)
      09:21:51 at hudson.maven.ExecutedMojo.<init>(ExecutedMojo.java:99)
      09:21:51 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoSucceeded(Maven3Builder.java:562)
      09:21:51 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:545)
      09:21:51 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      09:21:51 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      09:21:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      09:21:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      09:21:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      09:21:51 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      09:21:51 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      09:21:51 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      09:21:51 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      09:21:51 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      09:21:51 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      09:21:51 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      09:21:51 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:21:51 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:21:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:21:51 at java.lang.reflect.Method.invoke(Method.java:597)
      09:21:51 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      09:21:51 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      09:21:51 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      09:21:51 at hudson.maven.Maven3Builder.call(Maven3Builder.java:122)
      09:21:51 at hudson.maven.Maven3Builder.call(Maven3Builder.java:74)
      09:21:51 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      09:21:51 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      09:21:51 at hudson.remoting.Request$2.run(Request.java:287)
      09:21:51 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      09:21:51 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      09:21:51 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      09:21:51 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      09:21:51 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      09:21:51 at java.lang.Thread.run(Thread.java:662)

          [JENKINS-14142] Unnecessarily verbose warning if executed mojo is part of the build

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/ExecutedMojo.java
          maven-plugin/src/test/java/hudson/maven/ExecutedMojoTest.java
          http://jenkins-ci.org/commit/jenkins/e942555fd4a746b7193af71653e62553ff2d4caf
          Log:
          [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/ExecutedMojo.java maven-plugin/src/test/java/hudson/maven/ExecutedMojoTest.java http://jenkins-ci.org/commit/jenkins/e942555fd4a746b7193af71653e62553ff2d4caf Log: [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1772
          [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory (Revision e942555fd4a746b7193af71653e62553ff2d4caf)

          Result = SUCCESS
          Christoph Kutzinski : e942555fd4a746b7193af71653e62553ff2d4caf
          Files :

          • maven-plugin/src/main/java/hudson/maven/ExecutedMojo.java
          • maven-plugin/src/test/java/hudson/maven/ExecutedMojoTest.java

          dogfood added a comment - Integrated in jenkins_main_trunk #1772 [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory (Revision e942555fd4a746b7193af71653e62553ff2d4caf) Result = SUCCESS Christoph Kutzinski : e942555fd4a746b7193af71653e62553ff2d4caf Files : maven-plugin/src/main/java/hudson/maven/ExecutedMojo.java maven-plugin/src/test/java/hudson/maven/ExecutedMojoTest.java

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/ExecutedMojo.java
          src/test/java/hudson/maven/ExecutedMojoTest.java
          http://jenkins-ci.org/commit/maven-plugin/025ccefc286304bd0a0e30978f779d7544f8bfce
          Log:
          [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory
          Originally-Committed-As: e942555fd4a746b7193af71653e62553ff2d4caf

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/ExecutedMojo.java src/test/java/hudson/maven/ExecutedMojoTest.java http://jenkins-ci.org/commit/maven-plugin/025ccefc286304bd0a0e30978f779d7544f8bfce Log: [FIXED JENKINS-14142] Unnecessarily verbose warning if mojo is loaded from a directory Originally-Committed-As: e942555fd4a746b7193af71653e62553ff2d4caf

            kutzi kutzi
            kutzi kutzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: