Merge "YANG Model update for A1 Adapter"
[ccsdk/features.git] / sdnr / wt / devicemanager / provider / pom.xml
1 <?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     <parent>
22         <groupId>org.onap.ccsdk.parent</groupId>
23         <artifactId>binding-parent</artifactId>
24         <version>1.5.1-SNAPSHOT</version>
25         <relativePath/>
26     </parent>
27
28     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29     <artifactId>sdnr-wt-devicemanager-provider</artifactId>
30     <version>0.7.0-SNAPSHOT</version>
31     <packaging>bundle</packaging>
32
33     <name>ccsdk-features :: ${project.artifactId}</name>
34     <licenses>
35         <license>
36             <name>Apache License, Version 2.0</name>
37             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
38         </license>
39     </licenses>
40
41     <properties>
42         <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
43         <maven.javadoc.skip>true</maven.javadoc.skip>
44         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
45         <buildtime>${maven.build.timestamp} UTC</buildtime>
46         <elasticsearch.version>6.4.3</elasticsearch.version>
47         <databaseport>49400</databaseport>
48     </properties>
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
166     <build>
167         <resources>
168             <resource>
169                 <directory>src/main/resources</directory>
170                 <filtering>true</filtering>
171             </resource>
172         </resources>
173         <plugins>
174             <plugin>
175                 <groupId>org.jacoco</groupId>
176                 <artifactId>jacoco-maven-plugin</artifactId>
177                 <configuration>
178                     <excludes>
179                         <exclude>**/gen/**</exclude>
180                         <exclude>**/generated-sources/**</exclude>
181                         <exclude>**/yang-gen-sal/**</exclude>
182                         <exclude>**/pax/**</exclude>
183                     </excludes>
184                 </configuration>
185             </plugin>
186             <plugin>
187                 <groupId>org.codehaus.mojo</groupId>
188                 <artifactId>exec-maven-plugin</artifactId>
189                 <executions>
190                     <execution>
191                         <id>generateDTOs</id>
192                         <phase>generate-sources</phase>
193                         <goals>
194                             <goal>exec</goal>
195                         </goals>
196                         <configuration>
197                             <executable>bash</executable>
198                             <arguments>
199                                 <argument>${basedir}/../../data-provider/database/src/main/resources/es-init.sh</argument>
200                                 <argument>initfile</argument>
201                                 <argument>-f</argument>
202                                 <argument>${project.build.directory}/EsInit.script</argument>
203                             </arguments>
204                         </configuration>
205                     </execution>
206                 </executions>
207             </plugin>
208             <plugin>
209                 <groupId>com.github.alexcojocaru</groupId>
210                 <artifactId>elasticsearch-maven-plugin</artifactId>
211                 <version>6.16</version>
212                 <configuration>
213                     <clusterName>testCluster</clusterName>
214                     <transportPort>9500</transportPort>
215                     <httpPort>${databaseport}</httpPort>
216                     <version>6.5.0</version>
217                     <timeout>120</timeout>
218                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
219                     <skip>${skipTests}</skip>
220                 </configuration>
221                 <executions>
222                     <execution>
223                         <id>start-elasticsearch</id>
224                         <phase>process-test-classes</phase>
225                         <goals>
226                             <goal>runforked</goal>
227                         </goals>
228                     </execution>
229                     <execution>
230                         <id>stop-elasticsearch</id>
231                         <phase>prepare-package</phase>
232                         <goals>
233                             <goal>stop</goal>
234                         </goals>
235                     </execution>
236                 </executions>
237             </plugin>
238             <plugin>
239                 <groupId>org.apache.maven.plugins</groupId>
240                 <artifactId>maven-surefire-plugin</artifactId>
241                 <configuration>
242                     <systemProperties>
243                         <property>
244                             <name>databaseport</name>
245                             <value>${databaseport}</value>
246                         </property>
247                     </systemProperties>
248                 </configuration>
249             </plugin>
250         </plugins>
251     </build>
252 </project>