1 <?xml version="1.0" encoding="UTF-8"?>
4 * ============LICENSE_START=======================================================
5 * ONAP : CCSDK.sdnr.wt.data-provider.model
6 * ================================================================================
7 * Copyright (C) 2018 highstreet technologies GmbH Intellectual Property.
9 * ================================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 * ============LICENSE_END=========================================================
24 <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">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.ccsdk.parent</groupId>
29 <artifactId>binding-parent</artifactId>
30 <version>1.5.1-SNAPSHOT</version>
34 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
35 <artifactId>sdnr-wt-data-provider-database</artifactId>
36 <version>0.7.0-SNAPSHOT</version>
37 <packaging>bundle</packaging>
39 <name>ccsdk-features :: ${project.artifactId}</name>
42 <name>Apache License, Version 2.0</name>
43 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
48 <maven.javadoc.skip>true</maven.javadoc.skip>
49 <databaseport>49401</databaseport>
54 <groupId>org.mockito</groupId>
55 <artifactId>mockito-core</artifactId>
59 <groupId>org.opendaylight.netconf</groupId>
60 <artifactId>sal-netconf-connector</artifactId>
61 <scope>provided</scope>
64 <!-- <groupId>org.json</groupId> -->
65 <!-- <artifactId>json</artifactId> -->
66 <!-- <scope>provided</scope> -->
67 <!-- </dependency> -->
69 <groupId>org.osgi</groupId>
70 <artifactId>org.osgi.core</artifactId>
71 <scope>provided</scope>
74 <groupId>${project.groupId}</groupId>
75 <artifactId>sdnr-wt-common</artifactId>
76 <version>${project.version}</version>
79 <groupId>${project.groupId}</groupId>
80 <artifactId>sdnr-wt-data-provider-model</artifactId>
81 <version>${project.version}</version>
84 <!-- <groupId>org.elasticsearch.client</groupId> -->
85 <!-- <artifactId>elasticsearch-rest-client</artifactId> -->
86 <!-- <version>6.4.3</version> -->
87 <!-- </dependency> -->
93 <groupId>org.jacoco</groupId>
94 <artifactId>jacoco-maven-plugin</artifactId>
97 <exclude>**/gen/**</exclude>
98 <exclude>**/generated-sources/**</exclude>
99 <exclude>**/yang-gen-sal/**</exclude>
100 <exclude>**/pax/**</exclude>
105 <groupId>org.codehaus.mojo</groupId>
106 <artifactId>exec-maven-plugin</artifactId>
109 <id>generateDTOs</id>
110 <phase>generate-sources</phase>
115 <executable>bash</executable>
117 <argument>${basedir}/src/main/resources/es-init.sh</argument>
118 <argument>initfile</argument>
119 <argument>-f</argument>
120 <argument>${project.build.directory}/EsInit.script</argument>
127 <groupId>com.github.alexcojocaru</groupId>
128 <artifactId>elasticsearch-maven-plugin</artifactId>
129 <version>6.16</version>
131 <clusterName>testCluster</clusterName>
132 <transportPort>9500</transportPort>
133 <httpPort>${databaseport}</httpPort>
134 <version>6.5.0</version>
135 <timeout>120</timeout>
136 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
137 <skip>${skipTests}</skip>
141 <id>start-elasticsearch</id>
142 <phase>process-test-classes</phase>
144 <goal>runforked</goal>
148 <id>stop-elasticsearch</id>
149 <phase>prepare-package</phase>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-surefire-plugin</artifactId>
162 <name>databaseport</name>
163 <value>${databaseport}</value>