blob: 85b8f308d9acc7ed49ff469875bdce63d36edd30 [file] [log] [blame]
herbertd77d01b2020-01-30 10:15:11 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -05003 ~ ============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
herbertd77d01b2020-01-30 10:15:11 +010026<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>
Dan Timoney92037092020-08-06 15:28:15 -040032 <version>2.0.1-SNAPSHOT</version>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -050033 <relativePath/>
herbertd77d01b2020-01-30 10:15:11 +010034 </parent>
35
36 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37 <artifactId>sdnr-wt-data-provider-provider</artifactId>
Dan Timoney92037092020-08-06 15:28:15 -040038 <version>1.0.1-SNAPSHOT</version>
herbertd77d01b2020-01-30 10:15:11 +010039 <packaging>bundle</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>
herbertd77d01b2020-01-30 10:15:11 +010050 <maven.javadoc.skip>true</maven.javadoc.skip>
herbertd77d01b2020-01-30 10:15:11 +010051 <databaseport>49402</databaseport>
herbertd77d01b2020-01-30 10:15:11 +010052 </properties>
53
54 <dependencies>
55 <dependency>
56 <groupId>org.mockito</groupId>
57 <artifactId>mockito-core</artifactId>
58 <scope>test</scope>
59 </dependency>
herbert4eed58b2020-02-28 13:51:00 +010060 <dependency>
Michael Dürreeab84092020-09-03 11:05:35 +020061 <groupId>org.apache.karaf.bundle</groupId>
62 <artifactId>org.apache.karaf.bundle.core</artifactId>
63 </dependency>
64 <dependency>
Michael Dürreee75b192020-02-26 06:41:50 +010065 <groupId>${project.groupId}</groupId>
66 <artifactId>sdnr-wt-data-provider-setup</artifactId>
67 <version>${project.version}</version>
68 <scope>test</scope>
69 </dependency>
herbertd77d01b2020-01-30 10:15:11 +010070 <dependency>
71 <groupId>${project.groupId}</groupId>
72 <artifactId>sdnr-wt-common</artifactId>
73 <version>${project.version}</version>
74 </dependency>
75 <dependency>
76 <groupId>${project.groupId}</groupId>
77 <artifactId>sdnr-wt-data-provider-model</artifactId>
78 <version>${project.version}</version>
79 </dependency>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -050080 <dependency>
herbertd77d01b2020-01-30 10:15:11 +010081 <groupId>javax.servlet</groupId>
82 <artifactId>servlet-api</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>org.osgi</groupId>
86 <artifactId>org.osgi.core</artifactId>
87 <scope>provided</scope>
88 </dependency>
Michael Dürreeab84092020-09-03 11:05:35 +020089
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -050090 <dependency>
herbertd77d01b2020-01-30 10:15:11 +010091 <groupId>org.apache.karaf.shell</groupId>
92 <artifactId>org.apache.karaf.shell.core</artifactId>
93 <scope>provided</scope>
94 </dependency>
highstreetherbert25b37592020-07-15 15:44:23 +020095<!-- <dependency> -->
96<!-- <groupId>org.apache.karaf.bundle</groupId> -->
97<!-- <artifactId>org.apache.karaf.bundle.core</artifactId> -->
98<!-- <scope>provided</scope> -->
99<!-- </dependency> -->
herbertd77d01b2020-01-30 10:15:11 +0100100 <dependency>
101 <groupId>org.opendaylight.netconf</groupId>
102 <artifactId>sal-netconf-connector</artifactId>
103 <scope>provided</scope>
104 </dependency>
105 <dependency>
106 <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
107 <artifactId>rfc6991-ietf-yang-types</artifactId>
108 <scope>provided</scope>
109 </dependency>
110 <dependency>
111 <groupId>org.opendaylight.mdsal</groupId>
112 <artifactId>yang-binding</artifactId>
113 <scope>provided</scope>
114 </dependency>
115 <dependency>
116 <groupId>org.opendaylight.mdsal</groupId>
117 <artifactId>mdsal-singleton-common-api</artifactId>
118 <scope>provided</scope>
119 </dependency>
120 <dependency>
121 <groupId>org.json</groupId>
122 <artifactId>json</artifactId>
123 <scope>provided</scope>
124 </dependency>
125 </dependencies>
126
127 <build>
128 <plugins>
129 <plugin>
130 <groupId>org.jacoco</groupId>
131 <artifactId>jacoco-maven-plugin</artifactId>
132 <configuration>
133 <excludes>
134 <exclude>**/gen/**</exclude>
135 <exclude>**/generated-sources/**</exclude>
136 <exclude>**/yang-gen-sal/**</exclude>
137 <exclude>**/pax/**</exclude>
138 </excludes>
139 </configuration>
140 </plugin>
141 <plugin>
142 <groupId>org.codehaus.mojo</groupId>
143 <artifactId>exec-maven-plugin</artifactId>
144 <executions>
145 <execution>
146 <id>generateDTOs</id>
147 <phase>generate-sources</phase>
148 <goals>
149 <goal>exec</goal>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500150 </goals>
151 <configuration>
herbert4eed58b2020-02-28 13:51:00 +0100152 <executable>java</executable>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500153 <arguments>
Michael Dürreee75b192020-02-26 06:41:50 +0100154 <argument>-jar</argument>
highstreetherbert25b37592020-07-15 15:44:23 +0200155 <argument>${basedir}/../../data-provider/setup/target/sdnr-dmt.jar</argument>
Michael Dürreee75b192020-02-26 06:41:50 +0100156 <argument>-c</argument>
157 <argument>pluginfile</argument>
highstreetherbert25b37592020-07-15 15:44:23 +0200158 <argument>-v</argument>
159 <argument>v3</argument>
Michael Dürreee75b192020-02-26 06:41:50 +0100160 <argument>-of</argument>
Singal, Kapil (ks220y)6ff6ed92020-02-03 09:31:39 -0500161 <argument>${project.build.directory}/EsInit.script</argument>
162 </arguments>
163 </configuration>
herbertd77d01b2020-01-30 10:15:11 +0100164 </execution>
165 </executions>
166 </plugin>
167 <plugin>
168 <groupId>com.github.alexcojocaru</groupId>
169 <artifactId>elasticsearch-maven-plugin</artifactId>
herbertd77d01b2020-01-30 10:15:11 +0100170 <configuration>
171 <skip>${skipTests}</skip>
172 <clusterName>testCluster</clusterName>
173 <transportPort>9500</transportPort>
174 <httpPort>${databaseport}</httpPort>
Michael Dürre4cd4c472020-08-31 10:36:42 +0200175 <version>7.6.1</version>
herbertd77d01b2020-01-30 10:15:11 +0100176 <timeout>120</timeout>
177 <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
178 </configuration>
179 <executions>
180 <execution>
181 <id>start-elasticsearch</id>
182 <phase>process-test-classes</phase>
183 <goals>
184 <goal>runforked</goal>
185 </goals>
186 </execution>
187 <execution>
188 <id>stop-elasticsearch</id>
189 <phase>prepare-package</phase>
190 <goals>
191 <goal>stop</goal>
192 </goals>
193 </execution>
194 </executions>
195 </plugin>
196 <plugin>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-surefire-plugin</artifactId>
199 <configuration>
200 <systemProperties>
201 <property>
202 <name>databaseport</name>
203 <value>${databaseport}</value>
204 </property>
205 </systemProperties>
206 </configuration>
207 </plugin>
208 </plugins>
209 </build>
210</project>