Menu

Maven coordinates

2014-08-26
2014-09-22
  • Dmitry Obada

    Dmitry Obada - 2014-08-26

    Hello,

    I'm working for some projects which use maven. We intensively use VI Java API in order to perform different kind of operations on vSphere. Is it possible to upload the latest artifact of VI Java into maven central repository ? I checked this link : http://mvnrepository.com/artifact/com.vmware/vijava and it contains only a very old (from 2012) artifact :
    <dependency>
    <groupId>com.vmware</groupId>
    <artifactId>vijava</artifactId>
    <version>5.1</version>
    </dependency>

    Would be great to keep it always up to date.

    Thank you

     
  • shavi71

    shavi71 - 2014-09-22

    Hi,
    We have been waiting on the same too.

    For the time being, we have included the VI Java 5.5 jar within our project and referred the same in maven's pom.xml as relative path. Something like below:

      <dependency>
         <groupId>vijava55b20130927</groupId>
         <artifactId>vijava55b20130927</artifactId>
         <scope>system</scope>
         <version>1.0</version>
         <systemPath>${basedir}\src\lib\vijava55b20130927.jar</systemPath>
      </dependency>
    

    The other option is to setup your local maven repo and place your jar files. Then let pom.xml refer to the local repo instead of the public copy.
    http://www.theserverside.com/news/1364121/Setting-Up-a-Maven-Repository

    -Vivek

     

Log in to post a comment.