50d23efa3fec72b9877cd7c3fd1e0f516ecf23b5
[ccsdk/features.git] / sdnr / wt / common / 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 <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">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>binding-parent</artifactId>
31         <version>2.3.3</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-common</artifactId>
37     <version>1.3.1-SNAPSHOT</version>
38     <packaging>bundle</packaging>
39
40     <name>ccsdk-features :: ${project.artifactId}</name>
41     <licenses>
42         <license>
43             <name>Apache License, Version 2.0</name>
44             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
45         </license>
46     </licenses>
47
48     <properties>
49         <maven.javadoc.skip>true</maven.javadoc.skip>
50         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
51         <buildtime>${maven.build.timestamp} UTC</buildtime>
52         <databaseport>49400</databaseport>
53         <elasticsearch-rest-client.version>6.4.3</elasticsearch-rest-client.version>
54     </properties>
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>javax.servlet</groupId>
64             <artifactId>javax.servlet-api</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.osgi</groupId>
68             <artifactId>org.osgi.core</artifactId>
69             <scope>provided</scope>
70         </dependency>
71         <dependency>
72             <groupId>org.json</groupId>
73             <artifactId>json</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.elasticsearch.client</groupId>
77             <artifactId>elasticsearch-rest-client</artifactId>
78         </dependency>
79 <!--         <dependency> -->
80 <!--             <groupId>com.fasterxml.jackson.core</groupId> -->
81 <!--             <artifactId>jackson-core</artifactId> -->
82 <!--         </dependency> -->
83         <dependency>
84             <groupId>com.fasterxml.jackson.core</groupId>
85             <artifactId>jackson-annotations</artifactId>
86         </dependency>
87 <!--         <dependency> -->
88 <!--             <groupId>com.fasterxml.jackson.core</groupId> -->
89 <!--             <artifactId>jackson-databind</artifactId> -->
90 <!--         </dependency> -->
91         <dependency>
92               <groupId>com.google.code.findbugs</groupId>
93               <artifactId>annotations</artifactId>
94         </dependency>
95     </dependencies>
96
97     <build>
98         <plugins>
99             <plugin>
100                 <groupId>org.jacoco</groupId>
101                 <artifactId>jacoco-maven-plugin</artifactId>
102                 <configuration>
103                     <excludes>
104                         <exclude>**/gen/**</exclude>
105                         <exclude>**/generated-sources/**</exclude>
106                         <exclude>**/yang-gen-sal/**</exclude>
107                         <exclude>**/pax/**</exclude>
108                     </excludes>
109                 </configuration>
110             </plugin>
111             <plugin>
112                 <groupId>com.github.alexcojocaru</groupId>
113                 <artifactId>elasticsearch-maven-plugin</artifactId>
114                 <configuration>
115                     <skip>${skipTests}</skip>
116                     <clusterName>testCluster</clusterName>
117                     <transportPort>9500</transportPort>
118                     <httpPort>${databaseport}</httpPort>
119                     <version>7.9.3</version>
120                     <timeout>120</timeout>
121                 </configuration>
122                 <executions>
123                     <execution>
124                         <id>start-elasticsearch</id>
125                         <phase>process-test-classes</phase>
126                         <goals>
127                             <goal>runforked</goal>
128                         </goals>
129                     </execution>
130                     <execution>
131                         <id>stop-elasticsearch</id>
132                         <phase>prepare-package</phase>
133                         <goals>
134                             <goal>stop</goal>
135                         </goals>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-surefire-plugin</artifactId>
142                 <configuration>
143                     <systemProperties>
144                         <property>
145                             <name>databaseport</name>
146                             <value>${databaseport}</value>
147                         </property>
148                     </systemProperties>
149                 </configuration>
150             </plugin>
151         </plugins>
152     </build>
153 </project>