0

Veeva JAVA SDK - New Project

Hi Team,

I have created one Maven Project to implement DoumentAction for some of the Use Case. I have Added below dependencies in the pom file. When I Update the project, deploy-vpk and javasdk folders are not getting created. Could you please correct me, what is the wrong. Also please help in updating .VPK file after updating the code.

 

<properties>

<vault.sdk.version>[18.3.0-release0, 18.3.0-release1000000]</vault.sdk.version>

</properties>

 

<repositories>

<!-- Public repo for released versions 18R1.2 and above -->

<repository>

<id>veevavault</id>

<url>https://repo.veevavault.com/maven</url>

<releases>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</releases>

</repository>

</repositories>

 

<dependencies>

<dependency>

<groupId>com.veeva.vault.sdk</groupId>

<artifactId>vault-sdk</artifactId>

<version>${vault.sdk.version}</version>

</dependency>

</dependencies>

 

<build>

<sourceDirectory>javasdk/src/main/java</sourceDirectory>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.7.0</version>

<configuration>

<source>1.8</source>

<target>1.8</target>

</configuration>

</plugin>

</plugins>

Thanks,
Mithun 

 

 

 

 

1 comment

  • Avatar
    Kevin N

    Hi Mithun,

    The deploy-vpk folder is specifically for our sample code project - it is not generated automatically and does not need to be generated. You can place your packaged VPKs where ever you want.

    The javasdk is also not automatically generated. You have to create the javasdk folder and then manually move your maven src directory into it. You can find these details at https://developer.veevavault.com/sdk/#developing-code.

    As for your question about deploying code, you can find how to package and deploy VPK at https://developer.veevavault.com/sdk/#deploying-code. Anytime you modify your code, you will need to repackage it (recreate the VPK file) to deploy the latest version.

     

    Thanks,

    Kevin

Please sign in to leave a comment.