SDN-R data-provider with ES7
[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
26 <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">
27     <modelVersion>4.0.0</modelVersion>
28
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>binding-parent</artifactId>
32         <version>2.0.0-SNAPSHOT</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37     <artifactId>sdnr-wt-data-provider-provider</artifactId>
38     <version>1.0.0-SNAPSHOT</version>
39     <packaging>bundle</packaging>
40
41     <name>ccsdk-features :: ${project.artifactId}</name>
42     <licenses>
43         <license>
44             <name>Apache License, Version 2.0</name>
45             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
46         </license>
47     </licenses>
48
49     <properties>
50         <maven.javadoc.skip>true</maven.javadoc.skip>
51         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
52         <buildtime>${maven.build.timestamp}</buildtime>
53         <databaseport>49402</databaseport>
54         <odlux.buildno>56.139cd6d(20/07/08)</odlux.buildno>
55     </properties>
56
57     <dependencies>
58         <dependency>
59             <groupId>org.mockito</groupId>
60             <artifactId>mockito-core</artifactId>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>${project.groupId}</groupId>
65             <artifactId>sdnr-wt-data-provider-setup</artifactId>
66             <version>${project.version}</version>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>${project.groupId}</groupId>
71             <artifactId>sdnr-wt-common</artifactId>
72             <version>${project.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>${project.groupId}</groupId>
76             <artifactId>sdnr-wt-data-provider-model</artifactId>
77             <version>${project.version}</version>
78         </dependency>
79         <dependency>
80             <groupId>javax.servlet</groupId>
81             <artifactId>servlet-api</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.osgi</groupId>
85             <artifactId>org.osgi.core</artifactId>
86             <scope>provided</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.apache.karaf.shell</groupId>
90             <artifactId>org.apache.karaf.shell.core</artifactId>
91             <scope>provided</scope>
92         </dependency>
93 <!--          <dependency> -->
94 <!--             <groupId>org.apache.karaf.bundle</groupId> -->
95 <!--             <artifactId>org.apache.karaf.bundle.core</artifactId> -->
96 <!--             <scope>provided</scope> -->
97 <!--         </dependency> -->
98         <dependency>
99             <groupId>org.opendaylight.netconf</groupId>
100             <artifactId>sal-netconf-connector</artifactId>
101             <scope>provided</scope>
102         </dependency>
103         <dependency>
104             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
105             <artifactId>rfc6991-ietf-yang-types</artifactId>
106             <scope>provided</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.opendaylight.mdsal</groupId>
110             <artifactId>yang-binding</artifactId>
111             <scope>provided</scope>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.mdsal</groupId>
115             <artifactId>mdsal-singleton-common-api</artifactId>
116             <scope>provided</scope>
117         </dependency>
118         <dependency>
119             <groupId>org.json</groupId>
120             <artifactId>json</artifactId>
121             <scope>provided</scope>
122         </dependency>
123     </dependencies>
124
125     <build>
126         <plugins>
127             <plugin>
128                 <groupId>org.jacoco</groupId>
129                 <artifactId>jacoco-maven-plugin</artifactId>
130                 <configuration>
131                     <excludes>
132                         <exclude>**/gen/**</exclude>
133                         <exclude>**/generated-sources/**</exclude>
134                         <exclude>**/yang-gen-sal/**</exclude>
135                         <exclude>**/pax/**</exclude>
136                     </excludes>
137                 </configuration>
138             </plugin>
139             <plugin>
140                 <groupId>org.codehaus.mojo</groupId>
141                 <artifactId>exec-maven-plugin</artifactId>
142                 <executions>
143                     <execution>
144                         <id>generateDTOs</id>
145                         <phase>generate-sources</phase>
146                         <goals>
147                             <goal>exec</goal>
148                         </goals>
149                         <configuration>
150                             <executable>java</executable>
151                             <arguments>
152                                 <argument>-jar</argument>
153                                 <argument>${basedir}/../../data-provider/setup/target/sdnr-dmt.jar</argument>
154                                 <argument>-c</argument>
155                                 <argument>pluginfile</argument>
156                                 <argument>-v</argument>
157                                 <argument>v3</argument>
158                                 <argument>-of</argument>
159                                 <argument>${project.build.directory}/EsInit.script</argument>
160                             </arguments>
161                         </configuration>
162                     </execution>
163                 </executions>
164             </plugin>
165             <plugin>
166                 <groupId>com.github.alexcojocaru</groupId>
167                 <artifactId>elasticsearch-maven-plugin</artifactId>
168                 <version>6.16</version>
169                 <configuration>
170                     <skip>${skipTests}</skip>
171                     <clusterName>testCluster</clusterName>
172                     <transportPort>9500</transportPort>
173                     <httpPort>${databaseport}</httpPort>
174                     <version>7.1.1</version>
175                     <timeout>120</timeout>
176                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
177                 </configuration>
178                 <executions>
179                     <execution>
180                         <id>start-elasticsearch</id>
181                         <phase>process-test-classes</phase>
182                         <goals>
183                             <goal>runforked</goal>
184                         </goals>
185                     </execution>
186                     <execution>
187                         <id>stop-elasticsearch</id>
188                         <phase>prepare-package</phase>
189                         <goals>
190                             <goal>stop</goal>
191                         </goals>
192                     </execution>
193                 </executions>
194             </plugin>
195             <plugin>
196                 <groupId>org.apache.maven.plugins</groupId>
197                 <artifactId>maven-surefire-plugin</artifactId>
198                 <configuration>
199                     <systemProperties>
200                         <property>
201                             <name>databaseport</name>
202                             <value>${databaseport}</value>
203                         </property>
204                     </systemProperties>
205                 </configuration>
206             </plugin>
207         </plugins>
208     </build>
209 </project>