1

Vault Java SDK POM "No Versions available" Error

Hi All,

 

I am getting below error while setting up the development environment :

VersionRangeResolutionException: No versions available for com.veeva.vault.sdk:vault-sdk:jar:[18.3.0-release0, 18.3.0-release1000000] within specified range

 

Could you please help me?

 

Thanks,

Mithun

5 comments

  • Avatar
    Kevin N

    Hi Mithun,

    I saw you commented in a pinned topic, so I went ahead and moved your comment to its own post.

    This error can typically occur if your IDE isn't automatically importing/updating the Maven dependencies. You can force your project to update its Maven dependencies by doing the following.

    In Eclipse:

    • Right click on the project > select Maven > Update Project
    • When the update project tab opens, select the "Force Update of Snapshots/Releases"
    • Click OK

    This should force your IDE to download the dependencies. It may take a couple of minutes for the dependencies to fully download.

     

    Regards,
    Kevin

  • Avatar
    Mithun Kumar Soni

    Hi Kevin N,

     

    I am still getting the error -

    Failed to execute goal on project vsdk-helloworld: Could not resolve dependencies for project com.veeva.vault:vsdk-helloworld:jar:1.0-SNAPSHOT: Failed to collect dependencies for [com.veeva.vault.sdk:vault-sdk:jar:[18.3.0-release0,18.3.0-release1000000] (compile)]: No versions available for com.veeva.vault.sdk:vault-sdk:jar:[18.3.0-release0,18.3.0-release1000000] within specified range -> [Help 1]

     

  • Avatar
    Mithun Kumar Soni

    Again I tried and got the following error -

    ownloading: https://repo.veevavault.com/maven/com/veeva/vault/sdk/vault-sdk/maven-metadata.xml

     

    [WARNING] Could not transfer metadata com.veeva.vault.sdk:vault-sdk/maven-metadata.xml from/to veevavault (https://repo.veevavault.com/maven): Received fatal alert: handshake_failure to https://repo.veevavault.com/maven/com/veeva/vault/sdk/vault-sdk/maven-metadata.xml

     

    [INFO] ------------------------------------------------------------------------

     

    [INFO] BUILD FAILURE

     

    [INFO] ------------------------------------------------------------------------

     

    [INFO] Total time: 3.187s

     

    [INFO] Finished at: Wed Nov 21 00:14:22 IST 2018

     

    [INFO] Final Memory: 5M/117M

     

    [INFO] ------------------------------------------------------------------------

     

    [ERROR] Failed to execute goal on project vsdk-helloworld: Could not resolve dependencies for project com.veeva.vault:vsdk-helloworld:jar:1.0-SNAPSHOT: Failed to collect dependencies for [com.veeva.vault.sdk:vault-sdk:jar:[18.3.0-release0,18.3.0-release1000000] (compile)]: No versions available for com.veeva.vault.sdk:vault-sdk:jar:[18.3.0-release0,18.3.0-release1000000] within specified range -> [Help 1]

     

    [ERROR]

     

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

     

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

     

    [ERROR]

     

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

     

     

  • Avatar
    Kevin N

    Hi Mithun,

    This sounds like a possible networking problem on your end - either firewall, virus protection, or the network itself - or you do not have Java 1.8 installed on your system/your IDE is not configured to use Java 1.8. The Vault Java SDK requires Java 1.8.

    You'll want to verify that you are using Java 1.8 and that you can you access any of the following with your web browser:

    If you can't access these links, you'll need to get in contact with your IT department or try on a different network. 

     

    Also, it looks like you are initiating a mvn build/install goal on this project. This is not necessary for the sample; you should not be manually building the code. I've included a screenshot of the Maven > Update Project option that you should be using:

    If you need in-depth help configuring your Eclipse IDE, it's recommended that you consult the Eclipse documentation.

     

    Regards,

    Kevin

  • Avatar
    Mithun Kumar Soni

    Hi Kevin,

     

    Thanks for the information. Now issue got resolved.

    I have one more question regarding making the workflow due date as required field when the user is going to complete the task. So it it possible to make workflow due date as required in task completeion window level using Java veeva sdk?

     

    Thanks,

    Mithun

     

Please sign in to leave a comment.