c1334cb7ebde84485ef79075403ae47e2f9b5c9d
[ccsdk/features.git] / sdnr / wt / data-provider / provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2019 highstreet technologies GmbH Intellectual Property.
7   ~ All rights reserved.
8   ~ ================================================================================
9   ~ Update Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
10   ~ ================================================================================
11   ~ Licensed under the Apache License, Version 2.0 (the "License");
12   ~ you may not use this file except in compliance with the License.
13   ~ You may obtain a copy of the License at
14   ~
15   ~     http://www.apache.org/licenses/LICENSE-2.0
16   ~
17   ~ Unless required by applicable law or agreed to in writing, software
18   ~ distributed under the License is distributed on an "AS IS" BASIS,
19   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20   ~ See the License for the specific language governing permissions and
21   ~ limitations under the License.
22   ~ ============LICENSE_END=======================================================
23   ~
24   -->
25 <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">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>binding-parent</artifactId>
31         <version>2.3.3</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-data-provider-provider</artifactId>
37     <version>1.3.1-SNAPSHOT</version>
38     <packaging>bundle</packaging>
39
40     <name>ccsdk-features :: ${project.artifactId}</name>
41     <licenses>
42         <license>
43             <name>Apache License, Version 2.0</name>
44             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
45         </license>
46     </licenses>
47
48     <properties>
49         <maven.javadoc.skip>true</maven.javadoc.skip>
50         <databaseport>49402</databaseport>
51         <initdb>${basedir}/../setup/target/sdnr-wt-data-provider-setup-${project.version}.jar</initdb>
52     </properties>
53
54     <dependencies>
55         <dependency>
56             <groupId>org.mockito</groupId>
57             <artifactId>mockito-core</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>org.apache.karaf.bundle</groupId>
62             <artifactId>org.apache.karaf.bundle.core</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>${project.groupId}</groupId>
66             <artifactId>sdnr-wt-data-provider-setup</artifactId>
67             <version>${project.version}</version>
68             <scope>test</scope>
69         </dependency>
70         <dependency>
71             <groupId>${project.groupId}</groupId>
72             <artifactId>sdnr-wt-common</artifactId>
73             <version>${project.version}</version>
74         </dependency>
75         <dependency>
76             <groupId>${project.groupId}</groupId>
77             <artifactId>sdnr-wt-yang-utils</artifactId>
78             <version>${project.version}</version>
79         </dependency>
80         <dependency>
81             <groupId>${project.groupId}</groupId>
82             <artifactId>sdnr-wt-data-provider-model</artifactId>
83             <version>${project.version}</version>
84         </dependency>
85         <dependency>
86             <groupId>${project.groupId}</groupId>
87             <artifactId>sdnr-wt-data-provider-dblib</artifactId>
88             <version>${project.version}</version>
89         </dependency>
90         <dependency>
91             <groupId>javax.servlet</groupId>
92             <artifactId>javax.servlet-api</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.osgi</groupId>
96             <artifactId>org.osgi.core</artifactId>
97             <scope>provided</scope>
98         </dependency>
99         <dependency>
100             <groupId>com.fasterxml.jackson.core</groupId>
101             <artifactId>jackson-annotations</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>com.fasterxml.jackson.core</groupId>
105             <artifactId>jackson-databind</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.apache.karaf.shell</groupId>
109             <artifactId>org.apache.karaf.shell.core</artifactId>
110             <scope>provided</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.opendaylight.netconf</groupId>
114             <artifactId>sal-netconf-connector</artifactId>
115             <scope>provided</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
119             <artifactId>rfc6991-ietf-yang-types</artifactId>
120             <scope>provided</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.opendaylight.mdsal</groupId>
124             <artifactId>yang-binding</artifactId>
125             <scope>provided</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.opendaylight.mdsal</groupId>
129             <artifactId>mdsal-singleton-common-api</artifactId>
130             <scope>provided</scope>
131         </dependency>
132         <dependency>
133             <groupId>org.json</groupId>
134             <artifactId>json</artifactId>
135             <scope>provided</scope>
136         </dependency>
137         <!--  MariaDB beginn -->
138         <dependency>
139             <groupId>ch.vorburger.mariaDB4j</groupId>
140             <artifactId>mariaDB4j</artifactId>
141             <scope>test</scope>
142         </dependency>
143         <!--  MariaDB end -->
144     </dependencies>
145
146     <build>
147         <plugins>
148             <plugin>
149                 <groupId>org.jacoco</groupId>
150                 <artifactId>jacoco-maven-plugin</artifactId>
151                 <configuration>
152                     <excludes>
153                         <exclude>**/gen/**</exclude>
154                         <exclude>**/generated-sources/**</exclude>
155                         <exclude>**/yang-gen-sal/**</exclude>
156                         <exclude>**/pax/**</exclude>
157                     </excludes>
158                 </configuration>
159             </plugin>
160             <plugin>
161                 <groupId>org.codehaus.mojo</groupId>
162                 <artifactId>exec-maven-plugin</artifactId>
163                 <executions>
164                     <execution>
165                         <id>generateDTOs</id>
166                         <phase>generate-sources</phase>
167                         <goals>
168                             <goal>exec</goal>
169                         </goals>
170                         <configuration>
171                             <executable>${basedir}/java.sh</executable>
172                             <arguments>
173                                 <argument>-jar</argument>
174                                 <argument>${initdb}</argument>
175                                 <argument>-c</argument>
176                                 <argument>pluginfile</argument>
177                                 <argument>-of</argument>
178                                 <argument>${project.build.directory}/EsInit.script</argument>
179                             </arguments>
180                         </configuration>
181                     </execution>
182                 </executions>
183             </plugin>
184             <plugin>
185                 <groupId>com.github.alexcojocaru</groupId>
186                 <artifactId>elasticsearch-maven-plugin</artifactId>
187                 <configuration>
188                     <skip>${skipTests}</skip>
189                     <clusterName>testCluster</clusterName>
190                     <transportPort>9500</transportPort>
191                     <httpPort>${databaseport}</httpPort>
192                     <version>7.9.3</version>
193                     <timeout>120</timeout>
194                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
195                 </configuration>
196                 <executions>
197                     <execution>
198                         <id>start-elasticsearch</id>
199                         <phase>process-test-classes</phase>
200                         <goals>
201                             <goal>runforked</goal>
202                         </goals>
203                     </execution>
204                     <execution>
205                         <id>stop-elasticsearch</id>
206                         <phase>prepare-package</phase>
207                         <goals>
208                             <goal>stop</goal>
209                         </goals>
210                     </execution>
211                 </executions>
212             </plugin>
213
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-surefire-plugin</artifactId>
217                 <configuration>
218                     <systemProperties>
219                         <property>
220                             <name>databaseport</name>
221                             <value>${databaseport}</value>
222                         </property>
223                     </systemProperties>
224                 </configuration>
225             </plugin>
226         </plugins>
227     </build>
228 </project>