blob: bb17fd0a4e0b554091293ba8062c60e8f84f567a [file] [log] [blame]
herbertd77d01b2020-01-30 10:15:11 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -05003 ~ ============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 -->
herbertd77d01b2020-01-30 10:15:11 +010025<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>
Dan Timoney122ea412023-03-30 20:34:47 -040031 <version>2.5.4</version>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -050032 <relativePath/>
herbertd77d01b2020-01-30 10:15:11 +010033 </parent>
34
Ravi Pendurtycbac4382021-02-03 16:19:39 +010035 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
herbertd77d01b2020-01-30 10:15:11 +010036 <artifactId>sdnr-wt-data-provider-provider</artifactId>
Dan Timoneyd944abf2023-03-02 07:29:48 -050037 <version>1.5.1-SNAPSHOT</version>
herbertd77d01b2020-01-30 10:15:11 +010038 <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>
herbertd77d01b2020-01-30 10:15:11 +010049 <maven.javadoc.skip>true</maven.javadoc.skip>
Michael DÜrre6ae7e8a2021-04-09 08:01:19 +020050 <databaseport>49402</databaseport>
51 <initdb>${basedir}/../setup/target/sdnr-wt-data-provider-setup-${project.version}.jar</initdb>
herbertd77d01b2020-01-30 10:15:11 +010052 </properties>
53
54 <dependencies>
55 <dependency>
56 <groupId>org.mockito</groupId>
57 <artifactId>mockito-core</artifactId>
58 <scope>test</scope>
59 </dependency>
herbert4eed58b2020-02-28 13:51:00 +010060 <dependency>
Michael Dürreeab84092020-09-03 11:05:35 +020061 <groupId>org.apache.karaf.bundle</groupId>
62 <artifactId>org.apache.karaf.bundle.core</artifactId>
Michael Dürre25423c52022-07-20 09:32:50 +020063 <scope>provided</scope>
Michael Dürreeab84092020-09-03 11:05:35 +020064 </dependency>
65 <dependency>
Michael Dürreee75b192020-02-26 06:41:50 +010066 <groupId>${project.groupId}</groupId>
67 <artifactId>sdnr-wt-data-provider-setup</artifactId>
68 <version>${project.version}</version>
69 <scope>test</scope>
70 </dependency>
herbertd77d01b2020-01-30 10:15:11 +010071 <dependency>
72 <groupId>${project.groupId}</groupId>
73 <artifactId>sdnr-wt-common</artifactId>
74 <version>${project.version}</version>
75 </dependency>
76 <dependency>
77 <groupId>${project.groupId}</groupId>
Michael DÜrre24cac212021-04-06 10:33:41 +020078 <artifactId>sdnr-wt-yang-utils</artifactId>
79 <version>${project.version}</version>
80 </dependency>
81 <dependency>
82 <groupId>${project.groupId}</groupId>
herbertd77d01b2020-01-30 10:15:11 +010083 <artifactId>sdnr-wt-data-provider-model</artifactId>
84 <version>${project.version}</version>
85 </dependency>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -050086 <dependency>
Ravi Pendurty01653672021-07-26 12:42:00 +053087 <groupId>${project.groupId}</groupId>
88 <artifactId>sdnr-wt-data-provider-dblib</artifactId>
89 <version>${project.version}</version>
90 </dependency>
91 <dependency>
Ravi Pendurty6b8e4f12023-03-02 12:06:07 +053092 <groupId>jakarta.servlet</groupId>
93 <artifactId>jakarta.servlet-api</artifactId>
Michael Dürre25423c52022-07-20 09:32:50 +020094 <scope>provided</scope>
herbertd77d01b2020-01-30 10:15:11 +010095 </dependency>
96 <dependency>
97 <groupId>org.osgi</groupId>
98 <artifactId>org.osgi.core</artifactId>
99 <scope>provided</scope>
100 </dependency>
Ravi Pendurty80ebbf52021-02-03 13:56:31 +0100101 <dependency>
102 <groupId>com.fasterxml.jackson.core</groupId>
103 <artifactId>jackson-annotations</artifactId>
Michael Dürre25423c52022-07-20 09:32:50 +0200104 <scope>provided</scope>
Ravi Pendurty80ebbf52021-02-03 13:56:31 +0100105 </dependency>
106 <dependency>
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
Michael Dürre25423c52022-07-20 09:32:50 +0200109 <scope>provided</scope>
Ravi Pendurty80ebbf52021-02-03 13:56:31 +0100110 </dependency>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500111 <dependency>
herbertd77d01b2020-01-30 10:15:11 +0100112 <groupId>org.apache.karaf.shell</groupId>
113 <artifactId>org.apache.karaf.shell.core</artifactId>
114 <scope>provided</scope>
115 </dependency>
116 <dependency>
117 <groupId>org.opendaylight.netconf</groupId>
118 <artifactId>sal-netconf-connector</artifactId>
119 <scope>provided</scope>
120 </dependency>
121 <dependency>
122 <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
123 <artifactId>rfc6991-ietf-yang-types</artifactId>
124 <scope>provided</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.opendaylight.mdsal</groupId>
128 <artifactId>yang-binding</artifactId>
129 <scope>provided</scope>
130 </dependency>
131 <dependency>
132 <groupId>org.opendaylight.mdsal</groupId>
133 <artifactId>mdsal-singleton-common-api</artifactId>
134 <scope>provided</scope>
135 </dependency>
136 <dependency>
137 <groupId>org.json</groupId>
138 <artifactId>json</artifactId>
139 <scope>provided</scope>
140 </dependency>
Ravi Pendurty01653672021-07-26 12:42:00 +0530141 <!-- MariaDB beginn -->
142 <dependency>
143 <groupId>ch.vorburger.mariaDB4j</groupId>
144 <artifactId>mariaDB4j</artifactId>
145 <scope>test</scope>
146 </dependency>
Ravi Pendurty6b8e4f12023-03-02 12:06:07 +0530147 <dependency>
148 <groupId>org.osgi</groupId>
149 <artifactId>osgi.cmpn</artifactId>
150 <version>7.0.0</version>
151 <scope>compile</scope>
152 </dependency>
Ravi Pendurty01653672021-07-26 12:42:00 +0530153 <!-- MariaDB end -->
herbertd77d01b2020-01-30 10:15:11 +0100154 </dependencies>
155
156 <build>
157 <plugins>
158 <plugin>
159 <groupId>org.jacoco</groupId>
160 <artifactId>jacoco-maven-plugin</artifactId>
161 <configuration>
162 <excludes>
163 <exclude>**/gen/**</exclude>
164 <exclude>**/generated-sources/**</exclude>
165 <exclude>**/yang-gen-sal/**</exclude>
166 <exclude>**/pax/**</exclude>
167 </excludes>
168 </configuration>
169 </plugin>
170 <plugin>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>exec-maven-plugin</artifactId>
173 <executions>
174 <execution>
175 <id>generateDTOs</id>
176 <phase>generate-sources</phase>
177 <goals>
178 <goal>exec</goal>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500179 </goals>
180 <configuration>
Ravi Pendurty80ebbf52021-02-03 13:56:31 +0100181 <executable>${basedir}/java.sh</executable>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500182 <arguments>
Michael Dürreee75b192020-02-26 06:41:50 +0100183 <argument>-jar</argument>
Michael DÜrre24cac212021-04-06 10:33:41 +0200184 <argument>${initdb}</argument>
Michael Dürreee75b192020-02-26 06:41:50 +0100185 <argument>-c</argument>
186 <argument>pluginfile</argument>
187 <argument>-of</argument>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500188 <argument>${project.build.directory}/EsInit.script</argument>
189 </arguments>
190 </configuration>
herbertd77d01b2020-01-30 10:15:11 +0100191 </execution>
192 </executions>
193 </plugin>
194 <plugin>
195 <groupId>com.github.alexcojocaru</groupId>
196 <artifactId>elasticsearch-maven-plugin</artifactId>
herbertd77d01b2020-01-30 10:15:11 +0100197 <configuration>
198 <skip>${skipTests}</skip>
199 <clusterName>testCluster</clusterName>
200 <transportPort>9500</transportPort>
201 <httpPort>${databaseport}</httpPort>
Michael DÜrref88794b2020-11-19 15:40:16 +0100202 <version>7.9.3</version>
herbertd77d01b2020-01-30 10:15:11 +0100203 <timeout>120</timeout>
204 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
205 </configuration>
206 <executions>
207 <execution>
208 <id>start-elasticsearch</id>
209 <phase>process-test-classes</phase>
210 <goals>
211 <goal>runforked</goal>
212 </goals>
213 </execution>
214 <execution>
215 <id>stop-elasticsearch</id>
216 <phase>prepare-package</phase>
217 <goals>
218 <goal>stop</goal>
219 </goals>
220 </execution>
221 </executions>
222 </plugin>
Michael DÜrreeb2a7c92022-03-10 10:39:16 +0100223
herbertd77d01b2020-01-30 10:15:11 +0100224 <plugin>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-surefire-plugin</artifactId>
227 <configuration>
228 <systemProperties>
229 <property>
230 <name>databaseport</name>
231 <value>${databaseport}</value>
232 </property>
233 </systemProperties>
234 </configuration>
235 </plugin>
236 </plugins>
237 </build>
238</project>