locked
How to use healthvault using java RRS feed

  • Question

  • I used healthvault using .net which was easy since am a .net developer. Now i want to do the same using java SDK. I downloaded "healthvaultjavalib-46164" from codeplex site. While setting up using the command prompt I got an error as follow:
     

    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) com.microsoft.hsg:hv-sdk:jar:jaxb-SNAPSHOT

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=com.microsoft.hsg -DartifactId=hv-sdk
    Dversion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.microsoft.hsg -DartifactId=hv-sdk -D
    ersion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposit
    ryId=[id]

      Path to dependency:
            1) hv:weight-jaxb-ui:war:0.1-SNAPSHOT
            2) com.microsoft.hsg:hv-sdk:jar:jaxb-SNAPSHOT

    2) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb
    -Dversion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb -
    version=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposi
    oryId=[id]

      Path to dependency:
            1) hv:weight-jaxb-ui:war:0.1-SNAPSHOT
            2) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

    ----------
    2 required artifacts are missing.

    for artifact:
      hv:weight-jaxb-ui:war:0.1-SNAPSHOT

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

     

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 13 seconds
    [INFO] Finished at: Sat Dec 05 11:59:10 IST 2009
    [INFO] Final Memory: 8M/14M
    [INFO] ------------------------------------------------------------------------

     

    How to fix this one? Can anyone help pls?

    Saturday, December 5, 2009 6:54 AM

Answers

  • I followed the same steps as you mentioned, but I could not reproduce the issue.
    Could you please take the updated change set from codeplex site and see if it resolves your issue.

    Follow the steps mentioned below:

    1. Download the latest HV Java SDK from here.
    2. With command prompt,
        cd C:\Java_SDK\healthvaultjavalib-51490\trunk\sdk>mvn install
        Build must be successful
    3. cd ../ui
        C:\Java_SDK\healthvaultjavalib-51490\trunk\ui>mvn package
        Build must be successful
    4. C:\Java_SDK\healthvaultjavalib-51490\trunk\ui>mvn jetty:run
        [INFO] Started Jetty Server
    5. Point your web browser at 'http://localhost:8080/jwildcat-ui/'
        This will take you to JWildcat Login Page

    You can run the app again from the command line with maven:
    > mvn jetty:run
    Point your web browser at http://localhost:8080/jwildcat-ui

    -Mahesh
    Friday, December 11, 2009 7:32 PM

All replies

  • Hello Kumaresh,

    Did you checked Getting Started guide from codeplex site to run the sample application.
    -Mahesh
    Thursday, December 10, 2009 11:44 PM
  • Hi Mr. Mahesh,
    I followed the following steps from codeplex:
    1. Downloaded R 1.0, "jaxb" from that site, and I put jaxb in the same location, where the R1.0 is.
    2. In the cmd prompt Mapped the location,  R1.0->SDK-> I typed mvn install
    3. In the cmd prompt Mapped the location,  R1.0-> ui-> I typed mvn package
    4. then mvn jetty:run, and in the browser I typed http://locahost:8080/jwildcat-ui and the "work with weight" page worked
    5. Next, In command prompt, mapping the SDK of jaxb's I typed mvn install, that builded successfully.
    6. After that, mapping the ui of jaxb's, i typed mvn:jetty run, where I get the error:

    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb
    -Dversion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb -
    version=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposi
    oryId=[id]

      Path to dependency:
            1) hv:weight-jaxb-ui:war:0.1-SNAPSHOT
            2) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

    ----------
    1 required artifact is missing.

    for artifact:
      hv:weight-jaxb-ui:war:0.1-SNAPSHOT

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 seconds
    [INFO] Finished at: Fri Dec 11 12:59:59 IST 2009
    [INFO] Final Memory: 8M/15M
    [INFO] ------------------------------------------------------------------------

    The error is related to artifacts. How too solve this?

    • Edited by Kumaresh Babu Friday, December 11, 2009 9:39 AM the artifact name is mentioned correctly
    Friday, December 11, 2009 9:37 AM
  • I followed the same steps as you mentioned, but I could not reproduce the issue.
    Could you please take the updated change set from codeplex site and see if it resolves your issue.

    Follow the steps mentioned below:

    1. Download the latest HV Java SDK from here.
    2. With command prompt,
        cd C:\Java_SDK\healthvaultjavalib-51490\trunk\sdk>mvn install
        Build must be successful
    3. cd ../ui
        C:\Java_SDK\healthvaultjavalib-51490\trunk\ui>mvn package
        Build must be successful
    4. C:\Java_SDK\healthvaultjavalib-51490\trunk\ui>mvn jetty:run
        [INFO] Started Jetty Server
    5. Point your web browser at 'http://localhost:8080/jwildcat-ui/'
        This will take you to JWildcat Login Page

    You can run the app again from the command line with maven:
    > mvn jetty:run
    Point your web browser at http://localhost:8080/jwildcat-ui

    -Mahesh
    Friday, December 11, 2009 7:32 PM