pom.xml revision a0d8a855
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4
5  <groupId>io.fd.nsh_sfc</groupId>
6  <artifactId>nsh-sfc</artifactId>
7  <version>18.04-SNAPSHOT</version>
8  <packaging>jar</packaging>
9
10  <name>nsh-sfc</name>
11  <url>https://wiki.fd.io/view/NSH_SFC</url>
12
13  <dependencies>
14    <dependency>
15      <groupId>io.fd.vpp</groupId>
16      <artifactId>jvpp-registry</artifactId>
17      <version>18.04-SNAPSHOT</version>
18    </dependency>
19  </dependencies>
20
21  <build>
22    <plugins>
23      <plugin>
24        <groupId>org.apache.maven.plugins</groupId>
25        <artifactId>maven-compiler-plugin</artifactId>
26        <version>3.5.1</version>
27        <configuration>
28          <source>1.8</source>
29          <target>1.8</target>
30        </configuration>
31      </plugin>
32
33      <plugin>
34        <groupId>org.apache.maven.plugins</groupId>
35        <artifactId>maven-antrun-plugin</artifactId>
36        <version>1.8</version>
37        <executions>
38            <execution>
39            <phase>process-classes</phase>
40            <goals>
41                <goal>run</goal>
42            </goals>
43            <configuration>
44                <exportAntProperties>true</exportAntProperties>
45                <target>
46                   <property name="runtime_classpath" refid="maven.compile.classpath"/>
47                   <exec executable="javah">
48                       <arg value="-cp"/>
49                       <arg value="${runtime_classpath}"/>
50                       <arg value="-d"/>
51                       <arg value="${basedir}"/>
52                       <arg value="io.fd.vpp.jvpp.nsh.JVppNshImpl"/>
53                   </exec>
54                </target>
55            </configuration>
56           </execution>
57        </executions>
58      </plugin>
59    </plugins>
60  </build>
61
62</project>
63