Allow reflective access in UT
[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.14.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     <dependency>
91       <groupId>org.opendaylight.serviceutils</groupId>
92       <artifactId>upgrade</artifactId>
93     </dependency>
94     <!-- external dependencies -->
95     <dependency>
96       <groupId>org.opendaylight.infrautils</groupId>
97       <artifactId>diagstatus-api</artifactId>
98     </dependency>
99     <dependency>
100       <groupId>com.guicedee.services</groupId>
101       <artifactId>javax.inject</artifactId>
102       <optional>true</optional>
103     </dependency>
104     <dependency>
105       <groupId>javax.annotation</groupId>
106       <artifactId>javax.annotation-api</artifactId>
107       <optional>true</optional>
108     </dependency>
109
110     <!-- testing dependencies -->
111     <dependency>
112       <groupId>org.sonarsource.java</groupId>
113       <artifactId>sonar-jacoco-listeners</artifactId>
114       <version>${sonar-jacoco-listeners.version}</version>
115       <scope>test</scope>
116     </dependency>
117     <dependency>
118       <groupId>org.slf4j</groupId>
119       <artifactId>slf4j-simple</artifactId>
120       <scope>test</scope>
121     </dependency>
122     <dependency>
123       <groupId>org.opendaylight.mdsal</groupId>
124       <artifactId>mdsal-binding-test-utils</artifactId>
125     </dependency>
126
127     <dependency>
128       <groupId>org.mockito</groupId>
129       <artifactId>mockito-core</artifactId>
130       <version>3.12.4</version>
131       <scope>test</scope>
132     </dependency>
133     <dependency>
134       <groupId>org.powermock</groupId>
135       <artifactId>powermock-api-mockito2</artifactId>
136       <version>2.0.9</version>
137       <scope>test</scope>
138     </dependency>
139     <dependency>
140       <groupId>org.powermock</groupId>
141       <artifactId>powermock-module-junit4</artifactId>
142       <version>2.0.9</version>
143       <scope>test</scope>
144     </dependency>
145     <dependency>
146       <groupId>org.opendaylight.ovsdb</groupId>
147       <artifactId>utils.southbound-utils</artifactId>
148       <version>${project.version}</version>
149       <scope>test</scope>
150     </dependency>
151   </dependencies>
152   <build>
153     <plugins>
154       <plugin>
155         <groupId>org.apache.felix</groupId>
156         <artifactId>maven-bundle-plugin</artifactId>
157         <configuration>
158           <instructions>
159             <Export-Package>
160               org.opendaylight.ovsdb.southbound,
161               org.opendaylight.ovsdb.southbound.*,
162               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.southbound.impl.rev141210.*</Export-Package>
163           </instructions>
164         </configuration>
165       </plugin>
166       <plugin>
167         <groupId>org.apache.maven.plugins</groupId>
168         <artifactId>maven-surefire-plugin</artifactId>
169         <configuration>
170           <properties>
171             <property>
172               <name>listener</name>
173               <value>org.sonar.java.jacoco.JUnitListener</value>
174             </property>
175           </properties>
176
177           <!-- FIXME: remove this declaration once powermock is gone -->
178           <argLine>
179             @{argLine}
180             --add-opens java.base/java.lang=ALL-UNNAMED
181             --add-opens java.base/java.lang.reflect=ALL-UNNAMED
182             --add-opens java.base/java.net=ALL-UNNAMED
183             --add-opens java.base/java.util=ALL-UNNAMED
184             --add-opens java.base/java.util.concurrent=ALL-UNNAMED
185             --add-opens java.base/java.util.stream=ALL-UNNAMED
186           </argLine>
187         </configuration>
188       </plugin>
189       <plugin>
190         <groupId>org.codehaus.mojo</groupId>
191         <artifactId>build-helper-maven-plugin</artifactId>
192         <executions>
193           <execution>
194             <id>attach-artifacts</id>
195             <goals>
196               <goal>attach-artifact</goal>
197             </goals>
198             <phase>package</phase>
199             <configuration>
200               <artifacts>
201                 <artifact>
202                   <file>${project.build.directory}/classes/initial/southbound.cfg</file>
203                   <type>cfg</type>
204                   <classifier>config</classifier>
205                 </artifact>
206               </artifacts>
207             </configuration>
208           </execution>
209         </executions>
210       </plugin>
211     </plugins>
212   </build>
213
214   <!--
215       Maven Site Configuration
216
217       The following configuration is necessary for maven-site-plugin to
218       correctly identify the correct deployment path for OpenDaylight Maven
219       sites.
220   -->
221   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
222
223   <distributionManagement>
224     <site>
225       <id>opendaylight-site</id>
226       <url>${nexus.site.url}/${project.artifactId}/</url>
227     </site>
228   </distributionManagement>
229 </project>