Release version 1.6.0 maven artifacts
[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.6.1</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.6.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              <scope>provided</scope>
64         </dependency>
65         <dependency>
66             <groupId>${project.groupId}</groupId>
67             <artifactId>sdnr-wt-data-provider-setup</artifactId>
68             <version>${project.version}</version>
69             <scope>test</scope>
70         </dependency>
71         <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>
78             <artifactId>sdnr-wt-yang-utils</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>${project.groupId}</groupId>
83             <artifactId>sdnr-wt-data-provider-model</artifactId>
84             <version>${project.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>${project.groupId}</groupId>
88             <artifactId>sdnr-wt-data-provider-dblib</artifactId>
89             <version>${project.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>jakarta.servlet</groupId>
93             <artifactId>jakarta.servlet-api</artifactId>
94             <scope>provided</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.osgi</groupId>
98             <artifactId>org.osgi.core</artifactId>
99             <scope>provided</scope>
100         </dependency>
101         <dependency>
102             <groupId>com.fasterxml.jackson.core</groupId>
103             <artifactId>jackson-annotations</artifactId>
104             <scope>provided</scope>
105         </dependency>
106         <dependency>
107             <groupId>com.fasterxml.jackson.core</groupId>
108             <artifactId>jackson-databind</artifactId>
109              <scope>provided</scope>
110         </dependency>
111         <dependency>
112             <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>
141         <!--  MariaDB beginn -->
142         <dependency>
143             <groupId>ch.vorburger.mariaDB4j</groupId>
144             <artifactId>mariaDB4j</artifactId>
145             <scope>test</scope>
146         </dependency>
147         <dependency>
148             <groupId>org.opendaylight.netconf</groupId>
149             <artifactId>netconf-topology</artifactId>
150             <scope>test</scope>
151         </dependency>
152         <dependency>
153             <groupId>org.osgi</groupId>
154             <artifactId>osgi.cmpn</artifactId>
155             <version>7.0.0</version>
156             <scope>compile</scope>
157         </dependency>
158         <!--  MariaDB end -->
159     </dependencies>
160
161     <build>
162         <plugins>
163             <plugin>
164                 <groupId>org.jacoco</groupId>
165                 <artifactId>jacoco-maven-plugin</artifactId>
166                 <configuration>
167                     <excludes>
168                         <exclude>**/gen/**</exclude>
169                         <exclude>**/generated-sources/**</exclude>
170                         <exclude>**/yang-gen-sal/**</exclude>
171                         <exclude>**/pax/**</exclude>
172                     </excludes>
173                 </configuration>
174             </plugin>
175             <plugin>
176                 <groupId>org.codehaus.mojo</groupId>
177                 <artifactId>exec-maven-plugin</artifactId>
178                 <executions>
179                     <execution>
180                         <id>generateDTOs</id>
181                         <phase>generate-sources</phase>
182                         <goals>
183                             <goal>exec</goal>
184                         </goals>
185                         <configuration>
186                             <executable>${basedir}/java.sh</executable>
187                             <arguments>
188                                 <argument>-jar</argument>
189                                 <argument>${initdb}</argument>
190                                 <argument>-c</argument>
191                                 <argument>pluginfile</argument>
192                                 <argument>-of</argument>
193                                 <argument>${project.build.directory}/EsInit.script</argument>
194                             </arguments>
195                         </configuration>
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200                 <groupId>com.github.alexcojocaru</groupId>
201                 <artifactId>elasticsearch-maven-plugin</artifactId>
202                 <configuration>
203                     <skip>${skipTests}</skip>
204                     <clusterName>testCluster</clusterName>
205                     <transportPort>9500</transportPort>
206                     <httpPort>${databaseport}</httpPort>
207                     <version>7.9.3</version>
208                     <timeout>120</timeout>
209                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
210                 </configuration>
211                 <executions>
212                     <execution>
213                         <id>start-elasticsearch</id>
214                         <phase>process-test-classes</phase>
215                         <goals>
216                             <goal>runforked</goal>
217                         </goals>
218                     </execution>
219                     <execution>
220                         <id>stop-elasticsearch</id>
221                         <phase>prepare-package</phase>
222                         <goals>
223                             <goal>stop</goal>
224                         </goals>
225                     </execution>
226                 </executions>
227             </plugin>
228
229             <plugin>
230                 <groupId>org.apache.maven.plugins</groupId>
231                 <artifactId>maven-surefire-plugin</artifactId>
232                 <configuration>
233                     <systemProperties>
234                         <property>
235                             <name>databaseport</name>
236                             <value>${databaseport}</value>
237                         </property>
238                     </systemProperties>
239                 </configuration>
240             </plugin>
241         </plugins>
242     </build>
243 </project>