Plugins cannot depend on Jenkins 2.2+ (Stapler 1.240+) and org.glassfish.hk2:hk2-utils at the same time

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Steps to reproduce:

      1. Generate the hello world plugin from archetype (version 1.2)
      2. Add the dependency:
      <dependency>
            <groupId>org.glassfish.hk2</groupId>
            <artifactId>hk2-utils</artifactId>
            <version>2.4.0-b12</version>
          </dependency>

      Expected result: Injected test works

      Actual result: Injected test fails with:

      java.lang.NoSuchMethodError: org.jvnet.tiger_types.Types.bind(Ljava/lang/reflect/Type;Ljava/lang/reflect/GenericDeclaration;Ljava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
      

      This came from investigation of problems related to updating the parent POM in a plugin with jersey dependencies (HOSTING-481 discussion)

            Assignee:
            Unassigned
            Reporter:
            Daniel Beck
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: