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