blob: 7c8a88095482f1c58889fa16ee1d5d2102638888 [file] [log] [blame]
herbert6b989282019-12-14 00:50:38 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 ONAP : CCSDK / SDNR / WT / devicemanager
5 ================================================================================
6 Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All
7 rights reserved.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License"); you may not
10 use this file except in compliance with the License. You may obtain a copy
11 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
12 by applicable law or agreed to in writing, software distributed under the
13 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
14 OF ANY KIND, either express or implied. See the License for the specific
15 language governing permissions and limitations under the License.
16 ============LICENSE_END=========================================================
17-->
18<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">
19 <modelVersion>4.0.0</modelVersion>
20
21 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
22 <artifactId>sdnr-wt-devicemanager-provider</artifactId>
23 <version>0.7.0-SNAPSHOT</version>
24 <name>ccsdk-features-sdnr-wt :: ${project.artifactId}</name>
25 <packaging>bundle</packaging>
26
27 <parent>
28 <groupId>org.onap.ccsdk.parent</groupId>
29 <artifactId>binding-parent</artifactId>
30 <version>1.5.1-SNAPSHOT</version>
31 <relativePath/>
32 </parent>
33
34 <properties>
35 <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
36 <maven.javadoc.skip>true</maven.javadoc.skip>
37 <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
38 <buildtime>${maven.build.timestamp} UTC</buildtime>
39 <elasticsearch.version>6.4.3</elasticsearch.version>
40 <databaseport>49400</databaseport>
41 </properties>
42
43 <licenses>
44 <license>
45 <name>Apache License, Version 2.0</name>
46 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
47 </license>
48 </licenses>
49
50 <dependencies>
51 <!-- begin for testing -->
52 <dependency>
53 <groupId>org.mockito</groupId>
54 <artifactId>mockito-core</artifactId>
55 <scope>test</scope>
56 </dependency>
57
58 <!-- end for testing -->
59 <dependency>
60 <groupId>${project.groupId}</groupId>
61 <artifactId>sdnr-wt-devicemanager-model</artifactId>
62 <version>${project.version}</version>
63 </dependency>
64 <dependency>
65 <groupId>${project.groupId}</groupId>
66 <artifactId>sdnr-wt-netconfnode-state-service-model</artifactId>
67 <version>${project.version}</version>
68 <scope>provided</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
72 <artifactId>sdnr-wt-websocketmanager2-model</artifactId>
73 <version>${project.version}</version>
74 <scope>provided</scope>
75 </dependency>
76 <dependency>
77 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
78 <artifactId>sdnr-wt-data-provider-database</artifactId>
79 <version>${project.version}</version>
80 <scope>provided</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
84 <artifactId>sdnr-wt-common</artifactId>
85 <version>${project.version}</version>
86 <scope>provided</scope>
87 </dependency>
88 <dependency>
89 <groupId>org.osgi</groupId>
90 <artifactId>org.osgi.core</artifactId>
91 <scope>provided</scope>
92 </dependency>
93 <dependency>
94 <groupId>org.opendaylight.mdsal.model</groupId>
95 <artifactId>ietf-topology</artifactId>
96 </dependency>
97 <dependency>
98 <groupId>org.opendaylight.netconf</groupId>
99 <artifactId>sal-netconf-connector</artifactId>
100 <scope>provided</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
104 <artifactId>rfc6991-ietf-yang-types</artifactId>
105 <scope>provided</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.opendaylight.mdsal</groupId>
109 <artifactId>yang-binding</artifactId>
110 <scope>provided</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.opendaylight.mdsal</groupId>
114 <artifactId>mdsal-singleton-common-api</artifactId>
115 <scope>provided</scope>
116 </dependency>
117 <dependency>
118 <groupId>org.json</groupId>
119 <artifactId>json</artifactId>
120 <scope>provided</scope>
121 </dependency>
122 <dependency>
123 <groupId>com.typesafe.akka</groupId>
124 <artifactId>akka-actor_2.12</artifactId>
125 <scope>provided</scope>
126 </dependency>
127 <dependency>
128 <groupId>com.typesafe.akka</groupId>
129 <artifactId>akka-cluster_2.12</artifactId>
130 <scope>provided</scope>
131 </dependency>
132 <dependency>
133 <groupId>org.osgi</groupId>
134 <artifactId>org.osgi.compendium</artifactId>
135 <scope>provided</scope>
136 </dependency>
137
138<!-- <dependency> -->
139<!-- <groupId>org.elasticsearch.client</groupId> -->
140<!-- <artifactId>elasticsearch-rest-client</artifactId> -->
141<!-- <version>${elasticsearch.version}</version> -->
142<!-- </dependency> -->
143 <dependency>
144 <groupId>org.apache.commons</groupId>
145 <artifactId>commons-lang3</artifactId>
146 <scope>provided</scope>
147 </dependency>
148 <dependency>
149 <groupId>com.fasterxml.jackson.core</groupId>
150 <artifactId>jackson-core</artifactId>
151 <scope>provided</scope>
152 </dependency>
153 <dependency>
154 <groupId>com.fasterxml.jackson.core</groupId>
155 <artifactId>jackson-annotations</artifactId>
156 <scope>provided</scope>
157 </dependency>
158 <dependency>
159 <groupId>com.fasterxml.jackson.core</groupId>
160 <artifactId>jackson-databind</artifactId>
161 <scope>provided</scope>
162 </dependency>
163
164 </dependencies>
165 <build>
166 <resources>
167 <resource>
168 <directory>src/main/resources</directory>
169 <filtering>true</filtering>
170 </resource>
171 </resources>
172 <plugins>
173 <plugin>
174 <groupId>org.jacoco</groupId>
175 <artifactId>jacoco-maven-plugin</artifactId>
176 <configuration>
177 <excludes>
178 <exclude>**/gen/**</exclude>
179 <exclude>**/generated-sources/**</exclude>
180 <exclude>**/yang-gen-sal/**</exclude>
181 <exclude>**/pax/**</exclude>
182 </excludes>
183 </configuration>
184 </plugin>
185 <plugin>
186 <groupId>org.codehaus.mojo</groupId>
187 <artifactId>exec-maven-plugin</artifactId>
188 <executions>
189 <execution>
190 <id>generateDTOs</id>
191 <phase>generate-sources</phase>
192 <goals>
193 <goal>exec</goal>
194 </goals>
195 <configuration>
196 <executable>${basedir}/../../data-provider/database/src/main/resources/es-init.sh</executable>
197 <arguments>
198 <argument>initfile</argument>
199 <argument>-f</argument>
200 <argument>${project.build.directory}/EsInit.script</argument>
201 </arguments>
202 </configuration>
203 </execution>
204 </executions>
205 </plugin>
206 <plugin>
207 <groupId>com.github.alexcojocaru</groupId>
208 <artifactId>elasticsearch-maven-plugin</artifactId>
209 <version>6.16</version>
210 <configuration>
211 <clusterName>testCluster</clusterName>
212 <transportPort>9500</transportPort>
213 <httpPort>${databaseport}</httpPort>
214 <version>6.4.3</version>
215 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
herberte6d0d672019-12-14 01:05:47 +0100216 <timeout>120</timeout>
herbert6b989282019-12-14 00:50:38 +0100217 </configuration>
218 <executions>
219 <execution>
220 <id>start-elasticsearch</id>
221 <phase>process-test-classes</phase>
222 <goals>
223 <goal>runforked</goal>
224 </goals>
225 </execution>
226 <execution>
227 <id>stop-elasticsearch</id>
228 <phase>prepare-package</phase>
229 <goals>
230 <goal>stop</goal>
231 </goals>
232 </execution>
233 </executions>
234 </plugin>
235 <plugin>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-surefire-plugin</artifactId>
238 <configuration>
239 <systemProperties>
240 <property>
241 <name>databaseport</name>
242 <value>${databaseport}</value>
243 </property>
244 </systemProperties>
245 </configuration>
246 </plugin>
247 </plugins>
248 </build>
249</project>
250