Roll to next snapshot
[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" 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.2-SNAPSHOT</version>
25         <relativePath/>
26     </parent>
27
28     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29     <artifactId>sdnr-wt-data-provider-provider</artifactId>
30     <version>0.7.1-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}</buildtime>
46         <elasticsearch.version>6.4.3</elasticsearch.version>
47         <elasticsearch.lucene.version>7.4.0</elasticsearch.lucene.version>
48         <databaseport>49402</databaseport>
49         <onap.distname>Frankfurt</onap.distname>
50         <odl.distname>Neon-SR1</odl.distname>
51         <odlux.buildno>29.7af5ca8(19/11/19)</odlux.buildno>
52     </properties>
53
54     <dependencies>
55         <dependency>
56             <groupId>org.mockito</groupId>
57             <artifactId>mockito-core</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>${project.groupId}</groupId>
62             <artifactId>sdnr-wt-common</artifactId>
63             <version>${project.version}</version>
64         </dependency>
65         <dependency>
66             <groupId>${project.groupId}</groupId>
67             <artifactId>sdnr-wt-data-provider-database</artifactId>
68             <version>${project.version}</version>
69         </dependency>
70         <dependency>
71             <groupId>javax.servlet</groupId>
72             <artifactId>servlet-api</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.osgi</groupId>
76             <artifactId>org.osgi.core</artifactId>
77             <scope>provided</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.opendaylight.netconf</groupId>
81             <artifactId>sal-netconf-connector</artifactId>
82             <scope>provided</scope>
83         </dependency>
84         <dependency>
85             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
86             <artifactId>rfc6991-ietf-yang-types</artifactId>
87             <scope>provided</scope>
88         </dependency>
89         <dependency>
90             <groupId>org.opendaylight.mdsal</groupId>
91             <artifactId>yang-binding</artifactId>
92             <scope>provided</scope>
93         </dependency>
94         <dependency>
95             <groupId>org.opendaylight.mdsal</groupId>
96             <artifactId>mdsal-singleton-common-api</artifactId>
97             <scope>provided</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.json</groupId>
101             <artifactId>json</artifactId>
102             <scope>provided</scope>
103         </dependency>
104     </dependencies>
105
106     <build>
107         <plugins>
108             <plugin>
109                 <groupId>org.jacoco</groupId>
110                 <artifactId>jacoco-maven-plugin</artifactId>
111                 <configuration>
112                     <excludes>
113                         <exclude>**/gen/**</exclude>
114                         <exclude>**/generated-sources/**</exclude>
115                         <exclude>**/yang-gen-sal/**</exclude>
116                         <exclude>**/pax/**</exclude>
117                     </excludes>
118                 </configuration>
119             </plugin>
120             <plugin>
121                 <groupId>org.codehaus.mojo</groupId>
122                 <artifactId>exec-maven-plugin</artifactId>
123                 <executions>
124                     <execution>
125                         <id>generateDTOs</id>
126                         <phase>generate-sources</phase>
127                         <goals>
128                             <goal>exec</goal>
129                         </goals>
130                         <configuration>
131                             <executable>bash</executable>
132                             <arguments>
133                                 <argument>${basedir}/../database/src/main/resources/es-init.sh</argument>
134                                 <argument>initfile</argument>
135                                 <argument>-f</argument>
136                                 <argument>${project.build.directory}/EsInit.script</argument>
137                             </arguments>
138                         </configuration>
139                     </execution>
140                 </executions>
141             </plugin>
142             <plugin>
143                 <groupId>com.github.alexcojocaru</groupId>
144                 <artifactId>elasticsearch-maven-plugin</artifactId>
145                 <version>6.16</version>
146                 <configuration>
147                     <clusterName>testCluster</clusterName>
148                     <transportPort>9500</transportPort>
149                     <httpPort>${databaseport}</httpPort>
150                     <version>6.5.0</version>
151                     <timeout>120</timeout>
152                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
153                     <skip>${skipTests}</skip>
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>