9f8c92484d3bff84380e19e45252847ba5043707
[ovsdb.git] / library / impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright © 2014, 2016 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10
11   <parent>
12     <groupId>org.opendaylight.controller</groupId>
13     <artifactId>config-parent</artifactId>
14     <version>0.6.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <modelVersion>4.0.0</modelVersion>
19   <groupId>org.opendaylight.ovsdb</groupId>
20   <artifactId>library</artifactId>
21   <version>1.4.0-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23
24   <properties>
25     <sonar.jacoco.itReportPath>../it/target/jacoco-it.exec</sonar.jacoco.itReportPath>
26   </properties>
27
28   <dependencies>
29     <dependency>
30       <groupId>com.fasterxml.jackson.core</groupId>
31       <artifactId>jackson-annotations</artifactId>
32     </dependency>
33     <dependency>
34       <groupId>com.fasterxml.jackson.core</groupId>
35       <artifactId>jackson-core</artifactId>
36     </dependency>
37     <dependency>
38       <groupId>com.fasterxml.jackson.core</groupId>
39       <artifactId>jackson-databind</artifactId>
40     </dependency>
41     <dependency>
42       <groupId>org.osgi</groupId>
43       <artifactId>org.osgi.core</artifactId>
44     </dependency>
45     <dependency>
46       <groupId>com.google.guava</groupId>
47       <artifactId>guava</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>io.netty</groupId>
51       <artifactId>netty-handler</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>io.netty</groupId>
55       <artifactId>netty-transport</artifactId>
56     </dependency>
57     <dependency>
58       <groupId>org.slf4j</groupId>
59       <artifactId>slf4j-api</artifactId>
60     </dependency>
61     <dependency>
62       <groupId>org.opendaylight.controller</groupId>
63       <artifactId>config-api</artifactId>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.controller</groupId>
67       <artifactId>sal-binding-api</artifactId>
68     </dependency>
69
70     <!-- Testing Dependencies -->
71     <dependency>
72       <groupId>junit</groupId>
73       <artifactId>junit</artifactId>
74       <scope>test</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.slf4j</groupId>
78       <artifactId>slf4j-simple</artifactId>
79       <scope>test</scope>
80     </dependency>
81     <dependency>
82       <groupId>org.mockito</groupId>
83       <artifactId>mockito-all</artifactId>
84       <scope>test</scope>
85     </dependency>
86     <dependency>
87       <groupId>org.codehaus.sonar-plugins.java</groupId>
88       <artifactId>sonar-jacoco-listeners</artifactId>
89       <version>${sonar-jacoco-listeners.version}</version>
90       <scope>test</scope>
91     </dependency>
92   </dependencies>
93
94   <build>
95     <testResources>
96       <testResource>
97         <filtering>true</filtering>
98         <directory>src/test/resources</directory>
99       </testResource>
100     </testResources>
101     <plugins>
102       <plugin>
103         <groupId>org.apache.felix</groupId>
104         <artifactId>maven-bundle-plugin</artifactId>
105         <extensions>true</extensions>
106         <configuration>
107           <instructions>
108             <Export-Package>
109               org.opendaylight.ovsdb.lib,
110               org.opendaylight.ovsdb.lib.*,
111               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.library.impl.rev141210
112             </Export-Package>
113           </instructions>
114         </configuration>
115       </plugin>
116       <plugin>
117         <groupId>org.apache.maven.plugins</groupId>
118         <artifactId>maven-checkstyle-plugin</artifactId>
119         <configuration>
120           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
121         </configuration>
122       </plugin>
123       <plugin>
124         <groupId>org.apache.maven.plugins</groupId>
125         <artifactId>maven-surefire-plugin</artifactId>
126         <configuration>
127           <properties>
128             <property>
129               <name>listener</name>
130               <value>org.sonar.java.jacoco.JUnitListener</value>
131             </property>
132           </properties>
133         </configuration>
134       </plugin>
135       <plugin>
136         <groupId>org.jacoco</groupId>
137         <artifactId>jacoco-maven-plugin</artifactId>
138       </plugin>
139       <plugin>
140         <groupId>org.codehaus.mojo</groupId>
141         <artifactId>build-helper-maven-plugin</artifactId>
142         <executions>
143           <execution>
144             <id>attach-artifacts</id>
145             <goals>
146               <goal>attach-artifact</goal>
147             </goals>
148             <phase>package</phase>
149             <configuration>
150               <artifacts>
151                 <artifact>
152                   <file>${project.build.directory}/classes/initial/library.cfg</file>
153                   <type>cfg</type>
154                   <classifier>config</classifier>
155                 </artifact>
156               </artifacts>
157             </configuration>
158           </execution>
159         </executions>
160       </plugin>
161     </plugins>
162   </build>
163
164   <!--
165       Maven Site Configuration
166
167       The following configuration is necessary for maven-site-plugin to
168       correctly identify the correct deployment path for OpenDaylight Maven
169       sites.
170   -->
171   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
172
173   <distributionManagement>
174     <site>
175       <id>opendaylight-site</id>
176       <url>${nexus.site.url}/${project.artifactId}/</url>
177     </site>
178   </distributionManagement>
179 </project>