upgrading ci-game failed when upgrading to last pmd plugin

      SEVERE: Executor throw an exception unexpectedly
      java.lang.NoClassDefFoundError: hudson/plugins/pmd/util/model/Priority
              at hudson.plugins.cigame.rules.plugins.pmd.PmdRuleSet.loadRules(PmdRuleS
      et.java:14)
              at hudson.plugins.cigame.rules.plugins.PluginRuleSet.getRules(PluginRule
      Set.java:48)
              at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:33)
              at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:54)
              at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:56)
              at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:42)
              at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
              at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:
      577)
      

          [JENKINS-5022] ci game failed with last pmd plugin

          Olivier Lamy created issue -

          Olivier Lamy added a comment -

          Currently some plugins doesn't provide anymore jars :

          • pmd
          • findbugs

          You must publish new build of this plugins including jar.
          By adding this part in the build sections

                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-jar-plugin</artifactId>
                  <version>2.3</version>
                  <executions>
                    <execution>
                      <goals>
                        <goal>jar</goal>
                      </goals>
                      <phase>prepare-package</phase>
                    </execution>
                  </executions>
                </plugin>
          

          A fix of this will need a release of pmd and findbugs plugins.

          Olivier Lamy added a comment - Currently some plugins doesn't provide anymore jars : pmd findbugs You must publish new build of this plugins including jar. By adding this part in the build sections <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-jar-plugin </artifactId> <version> 2.3 </version> <executions> <execution> <goals> <goal> jar </goal> </goals> <phase> prepare-package </phase> </execution> </executions> </plugin> A fix of this will need a release of pmd and findbugs plugins.

          Olivier Lamy added a comment -

          here a patch which include patches for pmd and findbugs plugins.

          Olivier Lamy added a comment - here a patch which include patches for pmd and findbugs plugins.
          Olivier Lamy made changes -
          Attachment New: JENKINS-5022 [ 18951 ]

          Olivier Lamy added a comment -

          or give me karma to fix that (uid olamy)

          Olivier Lamy added a comment - or give me karma to fix that (uid olamy)

          Olivier Lamy added a comment -

          so the hpi plugin attached normaly a jar with classes.
          Why the jar is not here : http://maven.glassfish.org/content/groups/public/org/jvnet/hudson/plugins/findbugs/4.0/

          ?

          Olivier Lamy added a comment - so the hpi plugin attached normaly a jar with classes. Why the jar is not here : http://maven.glassfish.org/content/groups/public/org/jvnet/hudson/plugins/findbugs/4.0/ ?

          olamy, you now have the commit access.

          Did something change in the POM in the findbugs plugin that prevents it from attaching the jar artifact?

          Kohsuke Kawaguchi added a comment - olamy, you now have the commit access. Did something change in the POM in the findbugs plugin that prevents it from attaching the jar artifact?
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-5029 [ JENKINS-5029 ]
          Alan Harder made changes -
          Component/s New: findbugs [ 15496 ]
          Component/s New: pmd [ 15511 ]

          Ulli Hafner added a comment -

          I think this problem is not related to the publishing of jars. In previous releases the jar wasn't published too:
          http://maven.glassfish.org/content/groups/public/org/jvnet/hudson/plugins/findbugs/3.13/

          The ci-plug-in needs to have a dependency to the new analysis-core plug-in...

          Ulli Hafner added a comment - I think this problem is not related to the publishing of jars. In previous releases the jar wasn't published too: http://maven.glassfish.org/content/groups/public/org/jvnet/hudson/plugins/findbugs/3.13/ The ci-plug-in needs to have a dependency to the new analysis-core plug-in...

            olamy Olivier Lamy
            olamy Olivier Lamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: