Merge "source out odl mapper"
[ccsdk/features.git] / sdnr / wt / data-provider / provider / 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.2.0-SNAPSHOT</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37     <artifactId>sdnr-wt-data-provider-provider</artifactId>
38     <version>1.2.0-SNAPSHOT</version>
39     <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>
50         <maven.javadoc.skip>true</maven.javadoc.skip>
51         <databaseport>49402</databaseport>       
52         <initdb>${basedir}/../setup/target/sdnr-dmt.jar</initdb>
53     </properties>
54
55     <dependencies>
56         <dependency>
57             <groupId>org.mockito</groupId>
58             <artifactId>mockito-core</artifactId>
59             <scope>test</scope>
60         </dependency>
61         <dependency>
62             <groupId>org.apache.karaf.bundle</groupId>
63             <artifactId>org.apache.karaf.bundle.core</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>${project.groupId}</groupId>
67             <artifactId>sdnr-wt-data-provider-setup</artifactId>
68             <version>${project.version}</version>
69             <scope>test</scope>
70         </dependency>
71         <dependency>
72             <groupId>${project.groupId}</groupId>
73             <artifactId>sdnr-wt-common</artifactId>
74             <version>${project.version}</version>
75         </dependency>
76         <dependency>
77             <groupId>${project.groupId}</groupId>
78             <artifactId>sdnr-wt-yang-utils</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>${project.groupId}</groupId>
83             <artifactId>sdnr-wt-data-provider-model</artifactId>
84             <version>${project.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>javax.servlet</groupId>
88             <artifactId>javax.servlet-api</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.osgi</groupId>
92             <artifactId>org.osgi.core</artifactId>
93             <scope>provided</scope>
94         </dependency>
95         <dependency>
96             <groupId>com.fasterxml.jackson.core</groupId>
97             <artifactId>jackson-annotations</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>com.fasterxml.jackson.core</groupId>
101             <artifactId>jackson-databind</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.apache.karaf.shell</groupId>
105             <artifactId>org.apache.karaf.shell.core</artifactId>
106             <scope>provided</scope>
107         </dependency>
108 <!--          <dependency> -->
109 <!--             <groupId>org.apache.karaf.bundle</groupId> -->
110 <!--             <artifactId>org.apache.karaf.bundle.core</artifactId> -->
111 <!--             <scope>provided</scope> -->
112 <!--         </dependency> -->
113         <dependency>
114             <groupId>org.opendaylight.netconf</groupId>
115             <artifactId>sal-netconf-connector</artifactId>
116             <scope>provided</scope>
117         </dependency>
118         <dependency>
119             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
120             <artifactId>rfc6991-ietf-yang-types</artifactId>
121             <scope>provided</scope>
122         </dependency>
123         <dependency>
124             <groupId>org.opendaylight.mdsal</groupId>
125             <artifactId>yang-binding</artifactId>
126             <scope>provided</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.opendaylight.mdsal</groupId>
130             <artifactId>mdsal-singleton-common-api</artifactId>
131             <scope>provided</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.json</groupId>
135             <artifactId>json</artifactId>
136             <scope>provided</scope>
137         </dependency>
138     </dependencies>
139
140     <build>
141         <plugins>
142             <plugin>
143                 <groupId>org.jacoco</groupId>
144                 <artifactId>jacoco-maven-plugin</artifactId>
145                 <configuration>
146                     <excludes>
147                         <exclude>**/gen/**</exclude>
148                         <exclude>**/generated-sources/**</exclude>
149                         <exclude>**/yang-gen-sal/**</exclude>
150                         <exclude>**/pax/**</exclude>
151                     </excludes>
152                 </configuration>
153             </plugin>
154             <plugin>
155                 <groupId>org.codehaus.mojo</groupId>
156                 <artifactId>exec-maven-plugin</artifactId>
157                 <executions>
158                     <execution>
159                         <id>generateDTOs</id>
160                         <phase>generate-sources</phase>
161                         <goals>
162                             <goal>exec</goal>
163                         </goals>
164                         <configuration>
165                             <executable>${basedir}/java.sh</executable>
166                             <arguments>
167                                 <argument>-jar</argument>
168                                 <argument>${initdb}</argument>
169                                 <argument>-c</argument>
170                                 <argument>pluginfile</argument>
171                                 <argument>-of</argument>
172                                 <argument>${project.build.directory}/EsInit.script</argument>
173                             </arguments>
174                         </configuration>
175                     </execution>
176                 </executions>
177             </plugin>
178             <plugin>
179                 <groupId>com.github.alexcojocaru</groupId>
180                 <artifactId>elasticsearch-maven-plugin</artifactId>
181                 <configuration>
182                     <skip>${skipTests}</skip>
183                     <clusterName>testCluster</clusterName>
184                     <transportPort>9500</transportPort>
185                     <httpPort>${databaseport}</httpPort>
186                     <version>7.9.3</version>
187                     <timeout>120</timeout>
188                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
189                 </configuration>
190                 <executions>
191                     <execution>
192                         <id>start-elasticsearch</id>
193                         <phase>process-test-classes</phase>
194                         <goals>
195                             <goal>runforked</goal>
196                         </goals>
197                     </execution>
198                     <execution>
199                         <id>stop-elasticsearch</id>
200                         <phase>prepare-package</phase>
201                         <goals>
202                             <goal>stop</goal>
203                         </goals>
204                     </execution>
205                 </executions>
206             </plugin>
207             <plugin>
208                 <groupId>org.apache.maven.plugins</groupId>
209                 <artifactId>maven-surefire-plugin</artifactId>
210                 <configuration>
211                     <systemProperties>
212                         <property>
213                             <name>databaseport</name>
214                             <value>${databaseport}</value>
215                         </property>
216                     </systemProperties>
217                 </configuration>
218             </plugin>
219         </plugins>
220     </build>
221 </project>