• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • crap4j-plugin
    • None
    • Platform: All, OS: All

      Hi -
      It would be great if you could add a feature to the Hudson crap4j plugin to
      support Maven2 (m2) builds!

      Thanks for your work on this,
      Ben Truitt

          [JENKINS-3946] Maven2 support

          dlindner added a comment -

          Thank you for this issue. I don't use maven2 outside of hudson development yet,
          but i will look into it and see what it takes to support the m2 builds.

          Would you mind helping out with testing?

          dlindner added a comment - Thank you for this issue. I don't use maven2 outside of hudson development yet, but i will look into it and see what it takes to support the m2 builds. Would you mind helping out with testing?

          dlindner added a comment -

          Started work on this issue.

          dlindner added a comment - Started work on this issue.

          benvoliot added a comment -

          Hi -
          Thanks for your attention to this issue. I'm happy to help test, so just let me
          know what I can do to help.

          -Ben

          benvoliot added a comment - Hi - Thanks for your attention to this issue. I'm happy to help test, so just let me know what I can do to help. -Ben

          dlindner added a comment -

          Hi Ben,

          you can indeed help me a bit, but with general guidance. I'm a maven noob and
          therefor a bit lost. Here are my thoughts on this, please let me know if you
          don't know what i'm speaking about:

          Other hudson plugins (i looked into the violations plugin
          http://wiki.jenkins-ci.org/display/JENKINS/Violations) seem to integrate into the
          different maven goals to check if they are like "pmd:pmd" or
          "checkstyle:checkstyle". They collect the report data directly afterwards for
          these maven plugins.

          For crap4j, there is the maven-crap4j-plugin
          (http://jmd.sourceforge.net/maven-crap4j-plugin/index.html). It collects crap4j
          data in the "crap4j:crap4j" goal, but only as part of the "site" phase.

          As far as i can see, it would be sufficient to gather the report data at the end
          of the build, from a well-known location, in the case of this maven plugin it
          would be $WORKSPACE/target/site/crap4j-reports/report.xml

          Am i missing something important? My test setup so far is to fetch a maven2 open
          source project into my hudson (in my case, its the dom4j project
          (http://www.dom4j.org/)), have the crap4j maven plugin included in the pom.xml
          and run "clean install site" for each build.

          Sorry if this sounds weird. Perhaps i have to ask other plugin authors about
          this. I'm not too keen with maven to have the complete overview.

          dlindner added a comment - Hi Ben, you can indeed help me a bit, but with general guidance. I'm a maven noob and therefor a bit lost. Here are my thoughts on this, please let me know if you don't know what i'm speaking about: Other hudson plugins (i looked into the violations plugin http://wiki.jenkins-ci.org/display/JENKINS/Violations ) seem to integrate into the different maven goals to check if they are like "pmd:pmd" or "checkstyle:checkstyle". They collect the report data directly afterwards for these maven plugins. For crap4j, there is the maven-crap4j-plugin ( http://jmd.sourceforge.net/maven-crap4j-plugin/index.html ). It collects crap4j data in the "crap4j:crap4j" goal, but only as part of the "site" phase. As far as i can see, it would be sufficient to gather the report data at the end of the build, from a well-known location, in the case of this maven plugin it would be $WORKSPACE/target/site/crap4j-reports/report.xml Am i missing something important? My test setup so far is to fetch a maven2 open source project into my hudson (in my case, its the dom4j project ( http://www.dom4j.org/ )), have the crap4j maven plugin included in the pom.xml and run "clean install site" for each build. Sorry if this sounds weird. Perhaps i have to ask other plugin authors about this. I'm not too keen with maven to have the complete overview.

          dlindner added a comment -

          Hi Ben,

          i'll be on holiday for the next two weeks, so it's inlikely that i reply or make
          progress with this issue. Please be patient, i'm definitly looking into this
          right after i come back.

          dlindner added a comment - Hi Ben, i'll be on holiday for the next two weeks, so it's inlikely that i reply or make progress with this issue. Please be patient, i'm definitly looking into this right after i come back.

            dlindner dlindner
            benvoliot benvoliot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: