blob: a5e46a903b312913c0e2881cfc726ca8bc91482e [file] [log] [blame]
herbertd77d01b2020-01-30 10:15:11 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 * ============LICENSE_START=======================================================
5 * ONAP : CCSDK.sdnr.wt.data-provider.model
6 * ================================================================================
7 * Copyright (C) 2018 highstreet technologies GmbH Intellectual Property.
8 * All rights reserved.
9 * ================================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 * ============LICENSE_END=========================================================
22
23-->
24<project xmlns="http://maven.apache.org/POM/4.0.0"
25 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 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 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29 <artifactId>sdnr-wt-data-provider-daexim</artifactId>
30 <version>0.7.1-SNAPSHOT</version>
31 <name>ccsdk-features :: ${project.artifactId}</name>
32 <packaging>bundle</packaging>
33
34 <parent>
35 <groupId>org.onap.ccsdk.parent</groupId>
36 <artifactId>binding-parent</artifactId>
37 <version>1.5.2-SNAPSHOT</version>
38 <relativePath />
39 </parent>
40
41 <properties>
42 <maven.javadoc.skip>true</maven.javadoc.skip>
43 <databaseport>49401</databaseport>
44 </properties>
45
46 <licenses>
47 <license>
48 <name>Apache License, Version 2.0</name>
49 <url>http://www.apache.org/licenses/LICENSE-2.0</url>
50 </license>
51 </licenses>
52
53 <dependencies>
54 <dependency>
55 <groupId>org.mockito</groupId>
56 <artifactId>mockito-core</artifactId>
57 <scope>test</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.opendaylight.netconf</groupId>
61 <artifactId>sal-netconf-connector</artifactId>
62 <scope>provided</scope>
63 </dependency>
64 <dependency>
65 <groupId>org.osgi</groupId>
66 <artifactId>org.osgi.core</artifactId>
67 <scope>provided</scope>
68 </dependency>
69 <dependency>
70 <groupId>${project.groupId}</groupId>
71 <artifactId>sdnr-wt-common</artifactId>
72 <version>${project.version}</version>
73 </dependency>
74 <dependency>
75 <groupId>${project.groupId}</groupId>
76 <artifactId>sdnr-wt-data-provider-model</artifactId>
77 <version>${project.version}</version>
78 </dependency>
79 </dependencies>
80 <build>
81 <plugins>
82 <plugin>
83 <groupId>org.jacoco</groupId>
84 <artifactId>jacoco-maven-plugin</artifactId>
85 <configuration>
86 <excludes>
87 <exclude>**/gen/**</exclude>
88 <exclude>**/generated-sources/**</exclude>
89 <exclude>**/yang-gen-sal/**</exclude>
90 <exclude>**/pax/**</exclude>
91 </excludes>
92 </configuration>
93 </plugin>
94 <plugin>
95 <groupId>org.codehaus.mojo</groupId>
96 <artifactId>exec-maven-plugin</artifactId>
97 <executions>
98 <execution>
99 <id>generateDTOs</id>
100 <phase>generate-sources</phase>
101 <goals>
102 <goal>exec</goal>
103 </goals>
104 <configuration>
105 <skip>${skipTests}</skip>
106 <executable>bash</executable>
107 <arguments>
108 <argument>${basedir}/../data-provider/provider/src/main/resources/es-init.sh</argument>
109 <argument>initfile</argument>
110 <argument>-f</argument>
111 <argument>${project.build.directory}/EsInit.script</argument>
112 </arguments>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117 <plugin>
118 <groupId>com.github.alexcojocaru</groupId>
119 <artifactId>elasticsearch-maven-plugin</artifactId>
120 <version>6.16</version>
121 <configuration>
122 <skip>${skipTests}</skip>
123 <clusterName>testCluster</clusterName>
124 <transportPort>9500</transportPort>
125 <httpPort>${databaseport}</httpPort>
126 <version>6.5.0</version>
127 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
128 </configuration>
129 <executions>
130 <execution>
131 <id>start-elasticsearch</id>
132 <phase>process-test-classes</phase>
133 <goals>
134 <goal>runforked</goal>
135 </goals>
136 </execution>
137 <execution>
138 <id>stop-elasticsearch</id>
139 <phase>prepare-package</phase>
140 <goals>
141 <goal>stop</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-surefire-plugin</artifactId>
149 <configuration>
150 <systemProperties>
151 <property>
152 <name>databaseport</name>
153 <value>${databaseport}</value>
154 </property>
155 </systemProperties>
156 </configuration>
157 </plugin>
158 </plugins>
159 </build>
160</project>