Merge "Reformat sdnr odlux to ONAP code style"
[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
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-common</artifactId>
38     <version>1.0.0-SNAPSHOT</version>
39     <packaging>jar</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         <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
51         <maven.javadoc.skip>true</maven.javadoc.skip>
52         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
53         <buildtime>${maven.build.timestamp} UTC</buildtime>
54         <databaseport>49400</databaseport>
55         <elasticsearch-rest-client.version>6.4.3</elasticsearch-rest-client.version>
56     </properties>
57
58     <dependencies>
59         <dependency>
60             <groupId>org.mockito</groupId>
61             <artifactId>mockito-core</artifactId>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>javax.servlet</groupId>
66             <artifactId>servlet-api</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.osgi</groupId>
70             <artifactId>org.osgi.core</artifactId>
71             <scope>provided</scope>
72         </dependency>
73         <dependency>
74             <groupId>org.json</groupId>
75             <artifactId>json</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.elasticsearch.client</groupId>
79             <artifactId>elasticsearch-rest-client</artifactId>
80             <version>${elasticsearch-rest-client.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>com.fasterxml.jackson.core</groupId>
84             <artifactId>jackson-core</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>com.fasterxml.jackson.core</groupId>
88             <artifactId>jackson-annotations</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>com.fasterxml.jackson.core</groupId>
92             <artifactId>jackson-databind</artifactId>
93         </dependency>
94
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                 <version>6.16</version>
115                 <configuration>
116                     <skip>${skipTests}</skip>
117                     <clusterName>testCluster</clusterName>
118                     <transportPort>9500</transportPort>
119                     <httpPort>${databaseport}</httpPort>
120                     <version>6.5.0</version>
121                     <timeout>120</timeout>
122                 </configuration>
123                 <executions>
124                     <execution>
125                         <id>start-elasticsearch</id>
126                         <phase>process-test-classes</phase>
127                         <goals>
128                             <goal>runforked</goal>
129                         </goals>
130                     </execution>
131                     <execution>
132                         <id>stop-elasticsearch</id>
133                         <phase>prepare-package</phase>
134                         <goals>
135                             <goal>stop</goal>
136                         </goals>
137                     </execution>
138                 </executions>
139             </plugin>
140             <plugin>
141                 <groupId>org.apache.maven.plugins</groupId>
142                 <artifactId>maven-surefire-plugin</artifactId>
143                 <configuration>
144                     <systemProperties>
145                         <property>
146                             <name>databaseport</name>
147                             <value>${databaseport}</value>
148                         </property>
149                     </systemProperties>
150                 </configuration>
151             </plugin>
152         </plugins>
153     </build>
154 </project>