Initial support for RFC2385
[bgpcep.git] / tcp-md5 / jni / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Robert Varga. All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.bgpcep</groupId>
15         <artifactId>tcpmd5-parent</artifactId>
16         <version>0.3.1-SNAPSHOT</version>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>tcpmd5-jni</artifactId>
21     <description>Native support for RFC2385-enabled TCP sockets</description>
22     <packaging>jar</packaging>
23     <name>${project.artifactId}</name>
24
25     <prerequisites>
26         <maven>3.0.4</maven>
27     </prerequisites>
28
29     <properties>
30         <nar.groupId>com.github.maven-nar</nar.groupId>
31         <nar.version>3.0.0</nar.version>
32     </properties>
33
34     <dependencies>
35         <dependency>
36             <groupId>com.google.guava</groupId>
37             <artifactId>guava</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.slf4j</groupId>
41             <artifactId>slf4j-api</artifactId>
42         </dependency>
43
44         <!-- Testing dependencies -->
45         <dependency>
46             <groupId>junit</groupId>
47             <artifactId>junit</artifactId>
48         </dependency>
49     </dependencies>
50
51     <build>
52         <plugins>
53             <plugin>
54                 <groupId>org.apache.felix</groupId>
55                 <artifactId>maven-bundle-plugin</artifactId>
56                 <extensions>true</extensions>
57                 <configuration>
58                     <instructions>
59                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
60                         <Export-Package>
61                             org.opendaylight.bgpcep.jni
62                         </Export-Package>
63                     </instructions>
64                 </configuration>
65             </plugin>
66             <plugin>
67                 <!-- Let eclipse know about the generated sources -->
68                 <groupId>org.codehaus.mojo</groupId>
69                 <artifactId>build-helper-maven-plugin</artifactId>
70                 <executions>
71                     <execution>
72                         <phase>generate-sources</phase>
73                         <goals>
74                             <goal>add-source</goal>
75                         </goals>
76                         <configuration>
77                             <sources>
78                                 <source>target/nar/nar-generated</source>
79                             </sources>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84             <plugin>
85                 <groupId>${nar.groupId}</groupId>
86                 <artifactId>nar-maven-plugin</artifactId>
87                 <version>${nar.version}</version>
88                 <extensions>true</extensions>
89                 <configuration>
90                     <c/>
91                     <libraries>
92                         <library>
93                             <type>jni</type>
94                             <narSystemPackage>org.opendaylight.bgpcep.tcpmd5.jni</narSystemPackage>
95                             <linkCPP>false</linkCPP>
96                         </library>
97                     </libraries>
98                 </configuration>
99                 <executions>
100                     <execution>
101                         <goals>
102                             <goal>nar-validate</goal>
103                             <goal>nar-download</goal>
104                             <goal>nar-unpack</goal>
105                             <goal>nar-assembly</goal>
106                             <goal>nar-system-generate</goal>
107                             <goal>nar-resources</goal>
108                             <goal>nar-javah</goal>
109                             <goal>nar-compile</goal>
110                             <goal>nar-package</goal>
111                         </goals>
112                     </execution>
113                 </executions>
114             </plugin>
115         </plugins>
116
117         <pluginManagement>
118             <plugins>
119                 <plugin>
120                     <groupId>org.eclipse.m2e</groupId>
121                     <artifactId>lifecycle-mapping</artifactId>
122                     <version>1.0.0</version>
123                     <configuration>
124                         <lifecycleMappingMetadata>
125                             <pluginExecutions>
126                                 <pluginExecution>
127                                     <pluginExecutionFilter>
128                                         <groupId>${nar.groupId}</groupId>
129                                         <artifactId>nar-maven-plugin</artifactId>
130                                         <versionRange>${nar.version}</versionRange>
131                                         <goals>
132                                             <goal>nar-assembly</goal>
133                                             <goal>nar-compile</goal>
134                                             <goal>nar-download</goal>
135                                             <goal>nar-gnu-configure</goal>
136                                             <goal>nar-gnu-make</goal>
137                                             <goal>nar-gnu-process</goal>
138                                             <goal>nar-gnu-resources</goal>
139                                             <goal>nar-javah</goal>
140                                             <goal>nar-process-libraries</goal>
141                                             <goal>nar-resources</goal>
142                                             <goal>nar-system-generate</goal>
143                                             <goal>nar-testCompile</goal>
144                                             <goal>nar-testDownload</goal>
145                                             <goal>nar-testUnpack</goal>
146                                             <goal>nar-unpack</goal>
147                                             <goal>nar-validate</goal>
148                                             <goal>nar-vcproj</goal>
149                                         </goals>
150                                     </pluginExecutionFilter>
151                                     <action>
152                                         <ignore/>
153                                     </action>
154                                 </pluginExecution>
155                             </pluginExecutions>
156                         </lifecycleMappingMetadata>
157                     </configuration>
158                 </plugin>
159             </plugins>
160         </pluginManagement>
161     </build>
162
163     <pluginRepositories>
164         <pluginRepository>
165             <id>imagej.thirdparty</id>
166             <url>http://maven.imagej.net/content/repositories/thirdparty</url>
167         </pluginRepository>
168     </pluginRepositories>
169
170     <distributionManagement>
171         <site>
172             <id>${project.artifactId}</id>
173             <name>TCPMD5-JNI Module site</name>
174             <url>${basedir}/target/site/${project.artifactId}</url>
175         </site>
176     </distributionManagement>
177 </project>