blob: d77d2949f51f7a095ba8461bb87062967011ddaa [file] [log] [blame]
Michael Dürre67959252019-11-25 10:22:16 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 ONAP : CCSDK / SDNR / WT / common
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">
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050019 <modelVersion>4.0.0</modelVersion>
Michael Dürre67959252019-11-25 10:22:16 +010020
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050021 <parent>
22 <groupId>org.onap.ccsdk.parent</groupId>
23 <artifactId>binding-parent</artifactId>
24 <version>1.5.1-SNAPSHOT</version>
25 <relativePath/>
26 </parent>
Michael Dürre67959252019-11-25 10:22:16 +010027
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050028 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29 <artifactId>sdnr-wt-common</artifactId>
30 <version>0.7.0-SNAPSHOT</version>
31 <packaging>jar</packaging>
Michael Dürre67959252019-11-25 10:22:16 +010032
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050033 <name>ccsdk-features-sdnr-wt :: ${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>
Michael Dürre67959252019-11-25 10:22:16 +010040
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050041 <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} UTC</buildtime>
46 <elasticsearch.version>6.4.3</elasticsearch.version>
47 <databaseport>49400</databaseport>
48 </properties>
Michael Dürre67959252019-11-25 10:22:16 +010049
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050050 <dependencies>
51 <dependency>
52 <groupId>org.mockito</groupId>
53 <artifactId>mockito-core</artifactId>
54 <scope>test</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.osgi</groupId>
58 <artifactId>org.osgi.core</artifactId>
59 <scope>provided</scope>
60 </dependency>
61 <dependency>
62 <groupId>org.json</groupId>
63 <artifactId>json</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>org.elasticsearch.client</groupId>
67 <artifactId>elasticsearch-rest-client</artifactId>
68 <version>${elasticsearch.version}</version>
69 </dependency>
70 <dependency>
71 <groupId>com.fasterxml.jackson.core</groupId>
72 <artifactId>jackson-core</artifactId>
73 </dependency>
74 <dependency>
75 <groupId>com.fasterxml.jackson.core</groupId>
76 <artifactId>jackson-annotations</artifactId>
77 </dependency>
78 <dependency>
79 <groupId>com.fasterxml.jackson.core</groupId>
80 <artifactId>jackson-databind</artifactId>
81 </dependency>
Michael Dürre67959252019-11-25 10:22:16 +010082
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050083 </dependencies>
Michael Dürre67959252019-11-25 10:22:16 +010084
Singal, Kapil (ks220y)05e42772019-12-12 11:20:58 -050085 <build>
86 <plugins>
87 <plugin>
88 <groupId>org.jacoco</groupId>
89 <artifactId>jacoco-maven-plugin</artifactId>
90 <configuration>
91 <excludes>
92 <exclude>**/gen/**</exclude>
93 <exclude>**/generated-sources/**</exclude>
94 <exclude>**/yang-gen-sal/**</exclude>
95 <exclude>**/pax/**</exclude>
96 </excludes>
97 </configuration>
98 </plugin>
99 <plugin>
100 <groupId>org.codehaus.mojo</groupId>
101 <artifactId>exec-maven-plugin</artifactId>
102 <executions>
103 <execution>
104 <id>generateDTOs</id>
105 <phase>generate-sources</phase>
106 <goals>
107 <goal>exec</goal>
108 </goals>
109 <configuration>
110 <executable>${basedir}/../data-provider/database/src/main/resources/es-init.sh</executable>
111 <arguments>
112 <argument>initfile</argument>
113 <argument>-f</argument>
114 <argument>${project.build.directory}/EsInit.script</argument>
115 </arguments>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <groupId>com.github.alexcojocaru</groupId>
122 <artifactId>elasticsearch-maven-plugin</artifactId>
123 <version>6.14</version>
124 <configuration>
125 <clusterName>testCluster</clusterName>
126 <transportPort>9500</transportPort>
127 <httpPort>${databaseport}</httpPort>
128 <version>6.4.3</version>
129 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
130 </configuration>
131 <executions>
132 <execution>
133 <id>start-elasticsearch</id>
134 <phase>process-test-classes</phase>
135 <goals>
136 <goal>runforked</goal>
137 </goals>
138 </execution>
139 <execution>
140 <id>stop-elasticsearch</id>
141 <phase>prepare-package</phase>
142 <goals>
143 <goal>stop</goal>
144 </goals>
145 </execution>
146 </executions>
147 </plugin>
148 <plugin>
149 <groupId>org.apache.maven.plugins</groupId>
150 <artifactId>maven-surefire-plugin</artifactId>
151 <configuration>
152 <systemProperties>
153 <property>
154 <name>databaseport</name>
155 <value>${databaseport}</value>
156 </property>
157 </systemProperties>
158 </configuration>
159 </plugin>
160 </plugins>
161 </build>
Michael Dürre67959252019-11-25 10:22:16 +0100162</project>