c7b0af62b40a7d1347fe36b068fd55c7a9658175
[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.5.1</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-common</artifactId>
37     <version>1.5.0-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             <scope>provided</scope>
66         </dependency>
67         <dependency>
68             <groupId>org.osgi</groupId>
69             <artifactId>org.osgi.core</artifactId>
70             <scope>provided</scope>
71         </dependency>
72         <dependency>
73             <groupId>org.json</groupId>
74             <artifactId>json</artifactId>
75             <scope>provided</scope>
76         </dependency>
77         <dependency>
78             <groupId>org.elasticsearch.client</groupId>
79             <artifactId>elasticsearch-rest-client</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>com.fasterxml.jackson.core</groupId>
83             <artifactId>jackson-annotations</artifactId>
84             <scope>provided</scope>
85         </dependency>
86                 <dependency>
87                         <groupId>com.google.code.findbugs</groupId>
88                         <artifactId>annotations</artifactId>
89                         <scope>provided</scope>
90                 </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>com.github.alexcojocaru</groupId>
97                 <artifactId>elasticsearch-maven-plugin</artifactId>
98                 <configuration>
99                     <skip>${skipTests}</skip>
100                     <clusterName>testCluster</clusterName>
101                     <transportPort>9500</transportPort>
102                     <httpPort>${databaseport}</httpPort>
103                     <version>7.9.3</version>
104                     <timeout>120</timeout>
105                 </configuration>
106                 <executions>
107                     <execution>
108                         <id>start-elasticsearch</id>
109                         <phase>process-test-classes</phase>
110                         <goals>
111                             <goal>runforked</goal>
112                         </goals>
113                     </execution>
114                     <execution>
115                         <id>stop-elasticsearch</id>
116                         <phase>prepare-package</phase>
117                         <goals>
118                             <goal>stop</goal>
119                         </goals>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <groupId>org.apache.maven.plugins</groupId>
125                 <artifactId>maven-surefire-plugin</artifactId>
126                 <configuration>
127                     <systemProperties>
128                         <property>
129                             <name>databaseport</name>
130                             <value>${databaseport}</value>
131                         </property>
132                     </systemProperties>
133                 </configuration>
134             </plugin>
135         </plugins>
136     </build>
137 </project>