Convert SouthboundProvider into a component
[ovsdb.git] / southbound / southbound-impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2014, 2016 Cisco Systems, Inc. and others.  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12   <parent>
13     <groupId>org.opendaylight.ovsdb</groupId>
14     <artifactId>ovsdb-binding-parent</artifactId>
15     <version>1.18.0-SNAPSHOT</version>
16     <relativePath>../../commons/binding-parent</relativePath>
17   </parent>
18
19   <modelVersion>4.0.0</modelVersion>
20   <artifactId>southbound-impl</artifactId>
21   <packaging>bundle</packaging>
22   <!-- <name> formatting is used by autorelease to parse and notify projects on
23        build failure. Please do not modify this unless you have a good reason. -->
24   <name>ODL :: ovsdb :: ${project.artifactId}</name>
25   <properties>
26     <sonar.jacoco.itReportPath>../southbound-it/target/jacoco-it.exec</sonar.jacoco.itReportPath>
27     <!-- FIXME: clean up code to pass again -->
28     <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
29   </properties>
30
31   <dependencies>
32     <dependency>
33       <groupId>org.opendaylight.yangtools</groupId>
34       <artifactId>yang-data-util</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.yangtools</groupId>
38       <artifactId>yang-data-impl</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>org.opendaylight.mdsal</groupId>
42       <artifactId>mdsal-binding-api</artifactId>
43     </dependency>
44     <dependency>
45       <groupId>org.opendaylight.mdsal</groupId>
46       <artifactId>mdsal-dom-api</artifactId>
47     </dependency>
48     <dependency>
49       <groupId>org.opendaylight.mdsal</groupId>
50       <artifactId>mdsal-binding-dom-codec-api</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>org.opendaylight.mdsal</groupId>
54       <artifactId>mdsal-eos-binding-api</artifactId>
55     </dependency>
56     <!-- project specific dependencies -->
57     <dependency>
58       <groupId>${project.groupId}</groupId>
59       <artifactId>southbound-api</artifactId>
60       <version>${project.version}</version>
61     </dependency>
62     <dependency>
63       <groupId>${project.groupId}</groupId>
64       <artifactId>utils.mdsal-utils</artifactId>
65       <version>${project.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>${project.groupId}</groupId>
69       <artifactId>library</artifactId>
70       <version>${project.version}</version>
71     </dependency>
72     <dependency>
73       <groupId>${project.groupId}</groupId>
74       <artifactId>schema.openvswitch</artifactId>
75       <version>${project.version}</version>
76     </dependency>
77     <dependency>
78       <groupId>org.opendaylight.ovsdb</groupId>
79       <artifactId>utils.yang-utils</artifactId>
80       <version>${project.version}</version>
81     </dependency>
82     <dependency>
83       <groupId>com.google.guava</groupId>
84       <artifactId>guava</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.opendaylight.infrautils</groupId>
88       <artifactId>ready-api</artifactId>
89     </dependency>
90     <!-- external dependencies -->
91     <dependency>
92       <groupId>org.opendaylight.infrautils</groupId>
93       <artifactId>diagstatus-api</artifactId>
94     </dependency>
95     <dependency>
96       <groupId>com.github.spotbugs</groupId>
97       <artifactId>spotbugs-annotations</artifactId>
98       <optional>true</optional>
99     </dependency>
100     <dependency>
101       <groupId>com.guicedee.services</groupId>
102       <artifactId>javax.inject</artifactId>
103       <optional>true</optional>
104     </dependency>
105     <dependency>
106       <groupId>jakarta.annotation</groupId>
107       <artifactId>jakarta.annotation-api</artifactId>
108       <optional>true</optional>
109     </dependency>
110     <dependency>
111       <groupId>org.osgi</groupId>
112       <artifactId>org.osgi.service.component.annotations</artifactId>
113     </dependency>
114     <dependency>
115       <groupId>org.osgi</groupId>
116       <artifactId>org.osgi.service.metatype.annotations</artifactId>
117     </dependency>
118
119     <!-- testing dependencies -->
120     <dependency>
121       <groupId>org.sonarsource.java</groupId>
122       <artifactId>sonar-jacoco-listeners</artifactId>
123       <scope>test</scope>
124     </dependency>
125     <dependency>
126       <groupId>org.slf4j</groupId>
127       <artifactId>slf4j-simple</artifactId>
128       <scope>test</scope>
129     </dependency>
130     <dependency>
131       <groupId>org.opendaylight.mdsal</groupId>
132       <artifactId>mdsal-binding-test-utils</artifactId>
133     </dependency>
134
135     <dependency>
136       <groupId>org.mockito</groupId>
137       <artifactId>mockito-core</artifactId>
138       <version>3.12.4</version>
139       <scope>test</scope>
140     </dependency>
141     <dependency>
142       <groupId>org.powermock</groupId>
143       <artifactId>powermock-api-mockito2</artifactId>
144       <version>2.0.9</version>
145       <scope>test</scope>
146     </dependency>
147     <dependency>
148       <groupId>org.powermock</groupId>
149       <artifactId>powermock-module-junit4</artifactId>
150       <version>2.0.9</version>
151       <scope>test</scope>
152     </dependency>
153     <dependency>
154       <groupId>org.opendaylight.ovsdb</groupId>
155       <artifactId>utils.southbound-utils</artifactId>
156       <version>${project.version}</version>
157       <scope>test</scope>
158     </dependency>
159   </dependencies>
160   <build>
161     <plugins>
162       <plugin>
163         <groupId>org.apache.felix</groupId>
164         <artifactId>maven-bundle-plugin</artifactId>
165         <configuration>
166           <instructions>
167             <Export-Package>
168               org.opendaylight.ovsdb.southbound,
169               org.opendaylight.ovsdb.southbound.*,
170               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.southbound.impl.rev141210.*</Export-Package>
171           </instructions>
172         </configuration>
173       </plugin>
174       <plugin>
175         <groupId>org.apache.maven.plugins</groupId>
176         <artifactId>maven-surefire-plugin</artifactId>
177         <configuration>
178           <properties>
179             <property>
180               <name>listener</name>
181               <value>org.sonar.java.jacoco.JUnitListener</value>
182             </property>
183           </properties>
184
185           <!-- FIXME: remove this declaration once powermock is gone -->
186           <argLine>
187             @{argLine}
188             --add-opens java.base/java.lang=ALL-UNNAMED
189             --add-opens java.base/java.lang.reflect=ALL-UNNAMED
190             --add-opens java.base/java.net=ALL-UNNAMED
191             --add-opens java.base/java.util=ALL-UNNAMED
192             --add-opens java.base/java.util.concurrent=ALL-UNNAMED
193             --add-opens java.base/java.util.stream=ALL-UNNAMED
194           </argLine>
195         </configuration>
196       </plugin>
197       <plugin>
198         <groupId>org.codehaus.mojo</groupId>
199         <artifactId>build-helper-maven-plugin</artifactId>
200         <executions>
201           <execution>
202             <id>attach-artifacts</id>
203             <goals>
204               <goal>attach-artifact</goal>
205             </goals>
206             <phase>package</phase>
207             <configuration>
208               <artifacts>
209                 <artifact>
210                   <file>${project.build.directory}/classes/initial/southbound.cfg</file>
211                   <type>cfg</type>
212                   <classifier>config</classifier>
213                 </artifact>
214               </artifacts>
215             </configuration>
216           </execution>
217         </executions>
218       </plugin>
219     </plugins>
220   </build>
221
222   <!--
223       Maven Site Configuration
224
225       The following configuration is necessary for maven-site-plugin to
226       correctly identify the correct deployment path for OpenDaylight Maven
227       sites.
228   -->
229   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
230
231   <distributionManagement>
232     <site>
233       <id>opendaylight-site</id>
234       <url>${nexus.site.url}/${project.artifactId}/</url>
235     </site>
236   </distributionManagement>
237 </project>