blob: 7dab4876782f59b9311ccdd255fe52d10d2d9d8e [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _jvpp:
2
3.. toctree::
4
5Getting jvpp jar
John DeNiscoa5db42f2018-08-17 14:25:15 -04006================
7
John DeNisco06dcd452018-07-26 12:45:10 -04008VPP provides java bindings which can be downloaded at:
9
10* https://nexus.fd.io/content/repositories/fd.io.release/io/fd/vpp/jvpp-core/18.01/jvpp-core-18.01.jar
11
12Getting jvpp via maven
John DeNiscoa5db42f2018-08-17 14:25:15 -040013------------------------------------
John DeNisco06dcd452018-07-26 12:45:10 -040014
15**1. Add the following to the repositories section in your ~/.m2/settings.xml to pick up the fd.io maven repo:**
16
17.. code-block:: console
18
19 <repository>
20 <id>fd.io-release</id>
21 <name>fd.io-release</name>
22 <url>https://nexus.fd.io/content/repositories/fd.io.release/</url>
23 <releases>
24 <enabled>false</enabled>
25 </releases>
26 <snapshots>
27 <enabled>true</enabled>
28 </snapshots>
29 </repository>
30
31For more information on setting up maven repositories in settings.xml, please look at:
32
33* https://maven.apache.org/guides/mini/guide-multiple-repositories.html
34
35**2. Then you can get jvpp by putting in the dependencies section of your pom.xml file:**
36
37.. code-block:: console
38
39 <dependency>
40 <groupId>io.fd.vpp</groupId>
41 <artifactId>jvpp-core</artifactId>
42 <version>17.10</version>
43 </dependency>
44
45For more information on maven dependency managment, please look at:
46
47* https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html