Use latest released parent pom
[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
26 <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">
27     <modelVersion>4.0.0</modelVersion>
28
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>binding-parent</artifactId>
32         <version>2.4.4</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37     <artifactId>sdnr-wt-data-provider-provider</artifactId>
38     <version>1.4.1-SNAPSHOT</version>
39     <packaging>bundle</packaging>
40
41     <name>ccsdk-features :: ${project.artifactId}</name>
42     <licenses>
43         <license>
44             <name>Apache License, Version 2.0</name>
45             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
46         </license>
47     </licenses>
48
49     <properties>
50         <maven.javadoc.skip>true</maven.javadoc.skip>
51         <databaseport>49402</databaseport>
52         <initdb>${basedir}/../setup/target/sdnr-wt-data-provider-setup-${project.version}.jar</initdb>
53     </properties>
54
55     <dependencies>
56         <dependency>
57             <groupId>org.mockito</groupId>
58             <artifactId>mockito-core</artifactId>
59             <scope>test</scope>
60         </dependency>
61         <dependency>
62             <groupId>org.apache.karaf.bundle</groupId>
63             <artifactId>org.apache.karaf.bundle.core</artifactId>
64              <scope>provided</scope>
65         </dependency>
66         <dependency>
67             <groupId>${project.groupId}</groupId>
68             <artifactId>sdnr-wt-data-provider-setup</artifactId>
69             <version>${project.version}</version>
70             <scope>test</scope>
71         </dependency>
72         <dependency>
73             <groupId>${project.groupId}</groupId>
74             <artifactId>sdnr-wt-common</artifactId>
75             <version>${project.version}</version>
76         </dependency>
77         <dependency>
78             <groupId>${project.groupId}</groupId>
79             <artifactId>sdnr-wt-yang-utils</artifactId>
80             <version>${project.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>${project.groupId}</groupId>
84             <artifactId>sdnr-wt-data-provider-model</artifactId>
85             <version>${project.version}</version>
86         </dependency>
87         <dependency>
88             <groupId>${project.groupId}</groupId>
89             <artifactId>sdnr-wt-data-provider-dblib</artifactId>
90             <version>${project.version}</version>
91         </dependency>
92         <dependency>
93             <groupId>javax.servlet</groupId>
94             <artifactId>javax.servlet-api</artifactId>
95             <scope>provided</scope>
96         </dependency>
97         <dependency>
98             <groupId>org.osgi</groupId>
99             <artifactId>org.osgi.core</artifactId>
100             <scope>provided</scope>
101         </dependency>
102         <dependency>
103             <groupId>com.fasterxml.jackson.core</groupId>
104             <artifactId>jackson-annotations</artifactId>
105             <scope>provided</scope>
106         </dependency>
107         <dependency>
108             <groupId>com.fasterxml.jackson.core</groupId>
109             <artifactId>jackson-databind</artifactId>
110              <scope>provided</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.apache.karaf.shell</groupId>
114             <artifactId>org.apache.karaf.shell.core</artifactId>
115             <scope>provided</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.netconf</groupId>
119             <artifactId>sal-netconf-connector</artifactId>
120             <scope>provided</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
124             <artifactId>rfc6991-ietf-yang-types</artifactId>
125             <scope>provided</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.opendaylight.mdsal</groupId>
129             <artifactId>yang-binding</artifactId>
130             <scope>provided</scope>
131         </dependency>
132         <dependency>
133             <groupId>org.opendaylight.mdsal</groupId>
134             <artifactId>mdsal-singleton-common-api</artifactId>
135             <scope>provided</scope>
136         </dependency>
137         <dependency>
138             <groupId>org.json</groupId>
139             <artifactId>json</artifactId>
140             <scope>provided</scope>
141         </dependency>
142         <!--  MariaDB beginn -->
143         <dependency>
144             <groupId>ch.vorburger.mariaDB4j</groupId>
145             <artifactId>mariaDB4j</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <!--  MariaDB end -->
149     </dependencies>
150
151     <build>
152         <plugins>
153             <plugin>
154                 <groupId>org.jacoco</groupId>
155                 <artifactId>jacoco-maven-plugin</artifactId>
156                 <configuration>
157                     <excludes>
158                         <exclude>**/gen/**</exclude>
159                         <exclude>**/generated-sources/**</exclude>
160                         <exclude>**/yang-gen-sal/**</exclude>
161                         <exclude>**/pax/**</exclude>
162                     </excludes>
163                 </configuration>
164             </plugin>
165             <plugin>
166                 <groupId>org.codehaus.mojo</groupId>
167                 <artifactId>exec-maven-plugin</artifactId>
168                 <executions>
169                     <execution>
170                         <id>generateDTOs</id>
171                         <phase>generate-sources</phase>
172                         <goals>
173                             <goal>exec</goal>
174                         </goals>
175                         <configuration>
176                             <executable>${basedir}/java.sh</executable>
177                             <arguments>
178                                 <argument>-jar</argument>
179                                 <argument>${initdb}</argument>
180                                 <argument>-c</argument>
181                                 <argument>pluginfile</argument>
182                                 <argument>-of</argument>
183                                 <argument>${project.build.directory}/EsInit.script</argument>
184                             </arguments>
185                         </configuration>
186                     </execution>
187                 </executions>
188             </plugin>
189             <plugin>
190                 <groupId>com.github.alexcojocaru</groupId>
191                 <artifactId>elasticsearch-maven-plugin</artifactId>
192                 <configuration>
193                     <skip>${skipTests}</skip>
194                     <clusterName>testCluster</clusterName>
195                     <transportPort>9500</transportPort>
196                     <httpPort>${databaseport}</httpPort>
197                     <version>7.9.3</version>
198                     <timeout>120</timeout>
199                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
200                 </configuration>
201                 <executions>
202                     <execution>
203                         <id>start-elasticsearch</id>
204                         <phase>process-test-classes</phase>
205                         <goals>
206                             <goal>runforked</goal>
207                         </goals>
208                     </execution>
209                     <execution>
210                         <id>stop-elasticsearch</id>
211                         <phase>prepare-package</phase>
212                         <goals>
213                             <goal>stop</goal>
214                         </goals>
215                     </execution>
216                 </executions>
217             </plugin>
218
219             <plugin>
220                 <groupId>org.apache.maven.plugins</groupId>
221                 <artifactId>maven-surefire-plugin</artifactId>
222                 <configuration>
223                     <systemProperties>
224                         <property>
225                             <name>databaseport</name>
226                             <value>${databaseport}</value>
227                         </property>
228                     </systemProperties>
229                 </configuration>
230             </plugin>
231         </plugins>
232     </build>
233 </project>