Add data-provider
[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 / SDNR / WT / data-provider
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"
19         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21         <modelVersion>4.0.0</modelVersion>
22
23         <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
24         <artifactId>sdnr-wt-data-provider-provider</artifactId>
25         <version>0.7.0-SNAPSHOT</version>
26         <name>ccsdk-features-sdnr-wt :: ${project.artifactId}</name>
27         <packaging>bundle</packaging>
28
29         <parent>
30                 <groupId>org.onap.ccsdk.parent</groupId>
31                 <artifactId>binding-parent</artifactId>
32                 <version>1.5.1-SNAPSHOT</version>
33                 <relativePath />
34         </parent>
35
36         <properties>
37                 <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
38                 <maven.javadoc.skip>true</maven.javadoc.skip>
39                 <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
40                 <buildtime>${maven.build.timestamp}</buildtime>
41                 <elasticsearch.version>6.4.3</elasticsearch.version>
42                 <elasticsearch.lucene.version>7.4.0</elasticsearch.lucene.version>
43                 <databaseport>49402</databaseport>
44                 <onap.distname>Frankfurt</onap.distname>
45                 <odl.distname>Neon-SR1</odl.distname>
46                 <odlux.buildno>29.7af5ca8(19/11/19)</odlux.buildno>
47         </properties>
48
49         <licenses>
50                 <license>
51                         <name>Apache License, Version 2.0</name>
52                         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
53                 </license>
54         </licenses>
55
56         <dependencies>
57                 <dependency>
58                         <groupId>org.mockito</groupId>
59                         <artifactId>mockito-core</artifactId>
60                         <scope>test</scope>
61                 </dependency>
62                 <dependency>
63                         <groupId>${project.groupId}</groupId>
64                         <artifactId>sdnr-wt-common</artifactId>
65                         <version>${project.version}</version>
66                 </dependency>
67                 <dependency>
68                         <groupId>${project.groupId}</groupId>
69                         <artifactId>sdnr-wt-data-provider-database</artifactId>
70                         <version>${project.version}</version>
71                 </dependency>
72                 <dependency>
73             <groupId>javax.servlet</groupId>
74             <artifactId>servlet-api</artifactId>
75         </dependency>
76                 <dependency>
77                         <groupId>org.osgi</groupId>
78                         <artifactId>org.osgi.core</artifactId>
79                         <scope>provided</scope>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.opendaylight.netconf</groupId>
83                         <artifactId>sal-netconf-connector</artifactId>
84                         <scope>provided</scope>
85                 </dependency>
86                 <dependency>
87                         <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
88                         <artifactId>rfc6991-ietf-yang-types</artifactId>
89                         <scope>provided</scope>
90                 </dependency>
91                 <dependency>
92                         <groupId>org.opendaylight.mdsal</groupId>
93                         <artifactId>yang-binding</artifactId>
94                         <scope>provided</scope>
95                 </dependency>
96                 <dependency>
97                         <groupId>org.opendaylight.mdsal</groupId>
98                         <artifactId>mdsal-singleton-common-api</artifactId>
99                         <scope>provided</scope>
100                 </dependency>
101                 <dependency>
102                         <groupId>org.json</groupId>
103                         <artifactId>json</artifactId>
104                         <scope>provided</scope>
105                 </dependency>
106         </dependencies>
107         <build>
108                 <plugins>
109                         <plugin>
110                                 <groupId>org.jacoco</groupId>
111                                 <artifactId>jacoco-maven-plugin</artifactId>
112                                 <configuration>
113                                         <excludes>
114                                                 <exclude>**/gen/**</exclude>
115                                                 <exclude>**/generated-sources/**</exclude>
116                                                 <exclude>**/yang-gen-sal/**</exclude>
117                                                 <exclude>**/pax/**</exclude>
118                                         </excludes>
119                                 </configuration>
120                         </plugin>
121                         <plugin>
122                                 <groupId>org.codehaus.mojo</groupId>
123                                 <artifactId>exec-maven-plugin</artifactId>
124                                 <executions>
125                                         <execution>
126                                                 <id>generateDTOs</id>
127                                                 <phase>generate-sources</phase>
128                                             <goals>
129                                                 <goal>exec</goal>
130                                         </goals>
131                                         <configuration>
132                                 <skip>${skipTests}</skip>
133                                                         <executable>${basedir}/../database/src/main/resources/es-init.sh</executable>
134                                 <arguments>
135                                         <argument>initfile</argument>
136                                         <argument>-f</argument>
137                                         <argument>${project.build.directory}/EsInit.script</argument>
138                                 </arguments>
139                                         </configuration>
140                                         </execution>
141                                 </executions>
142                         </plugin>
143                         <plugin>
144                                 <groupId>com.github.alexcojocaru</groupId>
145                                 <artifactId>elasticsearch-maven-plugin</artifactId>
146                                 <version>6.16</version>
147                                 <configuration>
148                                         <skip>true</skip>
149                                         <clusterName>testCluster</clusterName>
150                                         <transportPort>9500</transportPort>
151                                         <httpPort>${databaseport}</httpPort>
152                                         <version>6.4.3</version>
153                                         <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
154                                 </configuration>
155                                 <executions>
156                                         <execution>
157                                                 <id>start-elasticsearch</id>
158                                                 <phase>process-test-classes</phase>
159                                                 <goals>
160                                                         <goal>runforked</goal>
161                                                 </goals>
162                                         </execution>
163                                         <execution>
164                                                 <id>stop-elasticsearch</id>
165                                                 <phase>prepare-package</phase>
166                                                 <goals>
167                                                         <goal>stop</goal>
168                                                 </goals>
169                                         </execution>
170                                 </executions>
171                         </plugin>
172                         <plugin>
173                                 <groupId>org.apache.maven.plugins</groupId>
174                                 <artifactId>maven-surefire-plugin</artifactId>
175                                 <configuration>
176                                         <systemProperties>
177                                                 <property>
178                                                         <name>databaseport</name>
179                                                         <value>${databaseport}</value>
180                                                 </property>
181                                         </systemProperties>
182                                 </configuration>
183                         </plugin>
184                 </plugins>
185         </build>
186 </project>
187