JBehave
  1. JBehave
  2. JBEHAVE-1057

Jenkins plugin broken, unmatched dependency

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2, 3.9.3, 3.9.5
    • Fix Version/s: None
    • Component/s: Jenkins Support
    • Labels:
      None
    • Environment:
      Jenkins 1.551, 1.591, xUnit 1.92
    • Number of attachments :
      0

      Description

      Current available jenkins plugin has unmatched dependency. When installing it crashes with:

      WARNING: Failed to load org.jBehavePluginType$DescriptorImpl

      jbehave is then not available in product configuration for processing the output.

      I'm not only one with this problem. Here is a workaround which works great, modified jenkins package without the problematic code.

      http://stackoverflow.com/questions/26861855/jenkins-jbehave-plugin-installation-failed-classnotfoundexception-dtkit-testty

        Activity

        Hide
        Mauro Talevi added a comment -

        It's not clear from the link which dependency is missing.

        Could you please provide a patch of the jenkins plugin pom.xml with the dependencies that work for you?

        Show
        Mauro Talevi added a comment - It's not clear from the link which dependency is missing. Could you please provide a patch of the jenkins plugin pom.xml with the dependencies that work for you?
        Hide
        Lukas Dziadkowiec added a comment -

        Please have a look at the post at stackoverflow. I'm not author of the patched plugin.
        ...
        Have Jenkins 1.588 installed. I looked into source code, seems that they used a package which doesnt exists anymore link! What to do?
        ...
        java.lang.NoClassDefFoundError: com/thalesgroup/dtkit/metrics/hudson/api/descriptor/TestTypeDescriptor

        Show
        Lukas Dziadkowiec added a comment - Please have a look at the post at stackoverflow. I'm not author of the patched plugin. ... Have Jenkins 1.588 installed. I looked into source code, seems that they used a package which doesnt exists anymore link! What to do? ... java.lang.NoClassDefFoundError: com/thalesgroup/dtkit/metrics/hudson/api/descriptor/TestTypeDescriptor
        Hide
        Mauro Talevi added a comment -

        The DTKit dependency comes from the Jenkins xunit plugin.

        Could you please try building the jbehave-jenkins-plugin with the latest updated version

        $ mvn clean install -Dxunit.plugin.version=1.92

        to see if this fixes the problem?

        The currently used version of the xunit plugin is 1.62.

        Show
        Mauro Talevi added a comment - The DTKit dependency comes from the Jenkins xunit plugin. Could you please try building the jbehave-jenkins-plugin with the latest updated version $ mvn clean install -Dxunit.plugin.version=1.92 to see if this fixes the problem? The currently used version of the xunit plugin is 1.62.
        Hide
        Nina Hartmann added a comment -

        Unfortunately it is not possible to simply change the plugin-version, because this will lead to a lot of compile errors.
        I updated the dependencies and imports and committed a working version here: https://github.com/soniro/jbehave-core/commit/af1c56d476d770432896cf21b947f210fe7b5eb7

        Therefore I also need to change the jenkins repositories in the settings.xml.

        I used the following versions:

        <properties>
            <jenkins.test.harness.version>1.594</jenkins.test.harness.version>
            <jenkins.version>1.594</jenkins.version>
            <hpi.plugin.version>1.112</hpi.plugin.version>
            <xunit.plugin.version>1.93</xunit.plugin.version>
        </properties>
        

        I installed it in combination with xunit plugin 1.93 on my jenkins and it works fine.

        Show
        Nina Hartmann added a comment - Unfortunately it is not possible to simply change the plugin-version, because this will lead to a lot of compile errors. I updated the dependencies and imports and committed a working version here: https://github.com/soniro/jbehave-core/commit/af1c56d476d770432896cf21b947f210fe7b5eb7 Therefore I also need to change the jenkins repositories in the settings.xml . I used the following versions: <properties> <jenkins.test.harness.version> 1.594 </jenkins.test.harness.version> <jenkins.version> 1.594 </jenkins.version> <hpi.plugin.version> 1.112 </hpi.plugin.version> <xunit.plugin.version> 1.93 </xunit.plugin.version> </properties> I installed it in combination with xunit plugin 1.93 on my jenkins and it works fine.

          People

          • Assignee:
            Unassigned
            Reporter:
            Lukas Dziadkowiec
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: