wsit
  1. wsit
  2. WSIT-970

maven: broken dependency in webservices-1.2.pom

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: not determined
    • Component/s: install
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      970

      Description

      Summary: you can not depend on [com.sun.xml.ws:webservices-rt:jar:1.2] in your
      maven project

      pom file [1] depends on a non-existing artifact
      [com.sun.enterprise:hk2:jar:0.2-SNAPSHOT]

      it means you can not directly depend on [com.sun.xml.ws:webservices-rt:jar:1.2],
      as it would fail your build with:

      [ERROR]Transitive dependency resolution for scope: compile has failed for your
      project.
      [ERROR]Error message: Missing:
      [ERROR]----------
      [ERROR]1) com.sun.enterprise:hk2:jar:0.2-SNAPSHOT
      [ERROR] Try downloading the file manually from the project website.
      [ERROR] Then, install it using the command:
      [ERROR] mvn install:install-file -DgroupId=com.sun.enterprise -DartifactId=hk2
      -Dversion=0.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
      [ERROR] Alternatively, if you host your own repository you can deploy the file
      there:
      [ERROR] mvn deploy:deploy-file -DgroupId=com.sun.enterprise -DartifactId=hk2
      -Dversion=0.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
      -DrepositoryId=[id]
      [ERROR] Path to dependency:
      [ERROR] 1) com.mycompany:mavenproject1:war:1.0-SNAPSHOT
      [ERROR] 2) com.sun.xml.ws:webservices-rt:jar:1.2
      [ERROR] 3) com.sun.enterprise:hk2:jar:0.2-SNAPSHOT

      [1] should probably depend on [com.sun.enterprise:hk2:jar:0.2] instead,
      which means the following update in [1]:
      <properties>
      <hk2.version>0.2-SNAPSHOT</hk2.version>
      </properties>
      should be replaced with:
      <properties>
      <hk2.version>0.2</hk2.version>
      </properties>

      [1]http://download.java.net/maven/2/com/sun/xml/ws/webservices/1.2/webservices-1.2.pom

        Activity

        Hide
        japod added a comment -

        As a workaround, you can install the missing hk2 artifact manually:

        1) download it from
        http://download.java.net/maven/glassfish/com/sun/enterprise/hk2/0.2/hk2-0.2.jar
        2) install downloaded jar into your m2 local repository via:
        mvn install:install-file \
        -DgroupId=com.sun.enterprise \
        -DartifactId=hk2 \
        -Dversion=0.2-SNAPSHOT \
        -Dpackaging=jar \
        -Dfile=hk2-0.2.jar

        Show
        japod added a comment - As a workaround, you can install the missing hk2 artifact manually: 1) download it from http://download.java.net/maven/glassfish/com/sun/enterprise/hk2/0.2/hk2-0.2.jar 2) install downloaded jar into your m2 local repository via: mvn install:install-file \ -DgroupId=com.sun.enterprise \ -DartifactId=hk2 \ -Dversion=0.2-SNAPSHOT \ -Dpackaging=jar \ -Dfile=hk2-0.2.jar
        Hide
        ritzmann added a comment -

        Will look into it later this week.

        Show
        ritzmann added a comment - Will look into it later this week.
        Hide
        ritzmann added a comment -

        This problem was fixed in Metro 1.3.

        Show
        ritzmann added a comment - This problem was fixed in Metro 1.3.
        Hide
        ritzmann added a comment -

        Fixed in Metro 1.2 as well.

        Show
        ritzmann added a comment - Fixed in Metro 1.2 as well.

          People

          • Assignee:
            ritzmann
            Reporter:
            Jakub Podlesak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: