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

Maven 3 builds ignore quiet and debug logging options

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

      "Hi,

      I'm trying to build Maven projects with Jenkins and I notice that I cannot suppress the (quite large) output from Maven during builds.
      If I build it as a Freestyle project (invoking Maven) it works just fine.

      Maven project output:
      -------------------------------
      Started by user anonymous
      Building in workspace /Users/peterl/.jenkins/workspace/quiet
      FSSCM.checkout /Users/peterl/Source/build to /Users/peterl/.jenkins/workspace/quiet
      FSSCM.check completed in 12 milliseconds
      Parsing POMs
      [quiet] $ /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java -Xmx2048m -XX:MaxPermSize=512M -cp /Users/peterl/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/usr/local/Cellar/maven/3.0.4/libexec/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/local/Cellar/maven/3.0.4/libexec /Users/peterl/.jenkins/war/WEB-INF/lib/remoting-2.21.jar /Users/peterl/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 50536
      <===[JENKINS REMOTING CAPACITY]===>
      log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
      log4j:WARN Please initialize the log4j system properly.
      Executing Maven: -B -f /Users/peterl/.jenkins/workspace/quiet/pom.xml -q clean install
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO]

      ….

      Output from Freestyle project:
      -------------------------------------------
      Started by user anonymous
      Building in workspace /Users/peterl/.jenkins/workspace/quiet-freestyle
      FSSCM.checkout /Users/peterl/Source/build to /Users/peterl/.jenkins/workspace/quiet-freestyle
      FSSCM.check completed in 12 milliseconds
      [quiet-freestyle] $ mvn clean install -q
      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Results :
      Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      Finished: SUCCESS

      The "-q" flag is passed in both cases, but it looks like the Maven builder used for Mavenprojects still outputs all the maven information.
      Is this by design?"

      Same is true for the debug flag (-X, --debug).

          [JENKINS-16843] Maven 3 builds ignore quiet and debug logging options

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/AbstractMavenBuilder.java
          maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
          http://jenkins-ci.org/commit/jenkins/cff691e05a415c860396b9d369c82e01b4aef69d
          Log:
          [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html maven-plugin/src/main/java/hudson/maven/AbstractMavenBuilder.java maven-plugin/src/main/java/hudson/maven/Maven3Builder.java http://jenkins-ci.org/commit/jenkins/cff691e05a415c860396b9d369c82e01b4aef69d Log: [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

          kutzi added a comment -

          Fixed towards 1.503

          kutzi added a comment - Fixed towards 1.503

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2282
          [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags (Revision cff691e05a415c860396b9d369c82e01b4aef69d)

          Result = SUCCESS
          Christoph Kutzinski : cff691e05a415c860396b9d369c82e01b4aef69d
          Files :

          • maven-plugin/src/main/java/hudson/maven/AbstractMavenBuilder.java
          • changelog.html
          • maven-plugin/src/main/java/hudson/maven/Maven3Builder.java

          dogfood added a comment - Integrated in jenkins_main_trunk #2282 [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags (Revision cff691e05a415c860396b9d369c82e01b4aef69d) Result = SUCCESS Christoph Kutzinski : cff691e05a415c860396b9d369c82e01b4aef69d Files : maven-plugin/src/main/java/hudson/maven/AbstractMavenBuilder.java changelog.html maven-plugin/src/main/java/hudson/maven/Maven3Builder.java

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/AbstractMavenBuilder.java
          src/main/java/hudson/maven/Maven3Builder.java
          http://jenkins-ci.org/commit/maven-plugin/768a5b27dd06b55c44e25d8e71a9126bfd67866a
          Log:
          [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags
          Originally-Committed-As: cff691e05a415c860396b9d369c82e01b4aef69d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/AbstractMavenBuilder.java src/main/java/hudson/maven/Maven3Builder.java http://jenkins-ci.org/commit/maven-plugin/768a5b27dd06b55c44e25d8e71a9126bfd67866a Log: [FIXED JENKINS-16843] Maven 3 builds ignored quiet (-q) and debug (-X) flags Originally-Committed-As: cff691e05a415c860396b9d369c82e01b4aef69d

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

              Created:
              Updated:
              Resolved: