Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: release
    • Labels:
      None
    • Environment:

      Ubuntu sbt 0.12.3

      Description

      The latest jersey release doesnt build with sbt 0.12.3

      Following dependency in build.sbt
      libraryDependencies += "org.glassfish.jersey.containers" % "jersey-container-grizzly2-http" % "2.1"

      causes
      [info] Resolving org.glassfish.hk2#hk2-utils;2.1 ...

      Which doesnt have 2.1 version. This may be due to pom file not defining versions.

        Activity

        Hide
        Libor Kramolis added a comment - - edited

        Hello.
        Could you provide as more information> We do not have any experience with sbt. We don't know how this tool works. It can be sbt bug.

        I just tried to display dependency tree of jersey-container-grizzly2-http and there is hk2-utils version 2.2.0-b10:

        [INFO] ------------------------------------------------------------------------
        [INFO] Building jersey-container-grizzly2-http 2.1
        [INFO] ------------------------------------------------------------------------
        [INFO] 
        [INFO] --- maven-dependency-plugin:2.7:tree (default-cli) @ jersey-container-grizzly2-http ---
        [INFO] org.glassfish.jersey.containers:jersey-container-grizzly2-http:jar:2.1
        [INFO] +- org.glassfish.hk2.external:javax.inject:jar:2.2.0-b10:compile
        [INFO] +- org.glassfish.grizzly:grizzly-http-server:jar:2.3.3:compile
        [INFO] |  +- org.glassfish.grizzly:grizzly-http:jar:2.3.3:compile
        [INFO] |  |  \- org.glassfish.grizzly:grizzly-framework:jar:2.3.3:compile
        [INFO] |  \- org.glassfish.grizzly:grizzly-rcm:jar:2.3.3:compile
        [INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.1:compile
        [INFO] |  +- javax.annotation:javax.annotation-api:jar:1.2:compile (version managed from 1.2)
        [INFO] |  +- com.google.guava:guava:jar:14.0.1:compile (version managed from 14.0.1)
        [INFO] |  +- org.glassfish.hk2:hk2-api:jar:2.2.0-b10:compile (version managed from 2.2.0-b10)
        [INFO] |  |  \- org.glassfish.hk2:hk2-utils:jar:2.2.0-b10:compile (version managed from 2.2.0-b10)
        [INFO] |  +- org.glassfish.hk2:hk2-locator:jar:2.2.0-b10:compile (version managed from 2.2.0-b10)
        [INFO] |  |  +- org.glassfish.hk2.external:asm-all-repackaged:jar:2.2.0-b10:compile (version managed from 2.2.0-b10)
        [INFO] |  |  \- org.glassfish.hk2.external:cglib:jar:2.2.0-b10:compile (version managed from 2.2.0-b10)
        [INFO] |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile (version managed from 1.0.1)
        [INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.1:compile
        [INFO] |  +- org.glassfish.jersey.core:jersey-client:jar:2.1:compile
        [INFO] |  \- javax.validation:validation-api:jar:1.1.0.Final:compile (version managed from 1.1.0.Final)
        [INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
        [INFO] \- junit:junit:jar:4.11:test
        [INFO]    \- org.hamcrest:hamcrest-core:jar:1.3:test
        [INFO] ------------------------------------------------------------------------
        

        Thanks,
        -lk

        Show
        Libor Kramolis added a comment - - edited Hello. Could you provide as more information> We do not have any experience with sbt. We don't know how this tool works. It can be sbt bug. I just tried to display dependency tree of jersey-container-grizzly2-http and there is hk2-utils version 2.2.0-b10 : [INFO] ------------------------------------------------------------------------ [INFO] Building jersey-container-grizzly2-http 2.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.7:tree (default-cli) @ jersey-container-grizzly2-http --- [INFO] org.glassfish.jersey.containers:jersey-container-grizzly2-http:jar:2.1 [INFO] +- org.glassfish.hk2.external:javax.inject:jar:2.2.0-b10:compile [INFO] +- org.glassfish.grizzly:grizzly-http-server:jar:2.3.3:compile [INFO] | +- org.glassfish.grizzly:grizzly-http:jar:2.3.3:compile [INFO] | | \- org.glassfish.grizzly:grizzly-framework:jar:2.3.3:compile [INFO] | \- org.glassfish.grizzly:grizzly-rcm:jar:2.3.3:compile [INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.1:compile [INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:compile (version managed from 1.2) [INFO] | +- com.google.guava:guava:jar:14.0.1:compile (version managed from 14.0.1) [INFO] | +- org.glassfish.hk2:hk2-api:jar:2.2.0-b10:compile (version managed from 2.2.0-b10) [INFO] | | \- org.glassfish.hk2:hk2-utils:jar:2.2.0-b10:compile (version managed from 2.2.0-b10) [INFO] | +- org.glassfish.hk2:hk2-locator:jar:2.2.0-b10:compile (version managed from 2.2.0-b10) [INFO] | | +- org.glassfish.hk2.external:asm-all-repackaged:jar:2.2.0-b10:compile (version managed from 2.2.0-b10) [INFO] | | \- org.glassfish.hk2.external:cglib:jar:2.2.0-b10:compile (version managed from 2.2.0-b10) [INFO] | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile (version managed from 1.0.1) [INFO] +- org.glassfish.jersey.core:jersey-server:jar:2.1:compile [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.1:compile [INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile (version managed from 1.1.0.Final) [INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile [INFO] \- junit:junit:jar:4.11:test [INFO] \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] ------------------------------------------------------------------------ Thanks, -lk
        Hide
        kul added a comment -

        Hello,

        sbt is a build tool for scala. Also i realize the subject name is little misleading. I meant that projects with jersey 2.1 dependency doesnt build with sbt. Sorry for being sloppy. Maven build works just fine for me too.

        Yes it could be a sbt bug but i though of filing a bug here first because earlier versions were working fine. My first hunch would be the way sbt resolves dependencies, which could be little more strict than mvn, but since jersey has no obligations of supporting sbt you could close this bug if you think no mvn changes were introduced in jersey since old version.

        Thanks

        Show
        kul added a comment - Hello, sbt is a build tool for scala. Also i realize the subject name is little misleading. I meant that projects with jersey 2.1 dependency doesnt build with sbt. Sorry for being sloppy. Maven build works just fine for me too. Yes it could be a sbt bug but i though of filing a bug here first because earlier versions were working fine. My first hunch would be the way sbt resolves dependencies, which could be little more strict than mvn, but since jersey has no obligations of supporting sbt you could close this bug if you think no mvn changes were introduced in jersey since old version. Thanks
        Hide
        Libor Kramolis added a comment -

        I'm sorry we don't support sbt.

        Try to get something like sbt dependency tree or google some sbt transitive dependencies problem.

        Show
        Libor Kramolis added a comment - I'm sorry we don't support sbt. Try to get something like sbt dependency tree or google some sbt transitive dependencies problem.
        Hide
        robertrolandorg added a comment -

        There is a workaround in your build.sbt file:

        libraryDependencies ++= Seq(
          "org.glassfish.jersey.core" % "jersey-client" % "2.2" excludeAll(
            ExclusionRule(organization = "org.glassfish.hk2")
          ),
          "org.glassfish.hk2" % "hk2-utils" % "2.2.0-b15",
          "org.glassfish.hk2" % "hk2-locator" % "2.2.0-b15"
        )
        
        Show
        robertrolandorg added a comment - There is a workaround in your build.sbt file: libraryDependencies ++= Seq( "org.glassfish.jersey.core" % "jersey-client" % "2.2" excludeAll( ExclusionRule(organization = "org.glassfish.hk2") ), "org.glassfish.hk2" % "hk2-utils" % "2.2.0-b15", "org.glassfish.hk2" % "hk2-locator" % "2.2.0-b15" )

          People

          • Assignee:
            Unassigned
            Reporter:
            kul
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: