33d1792c6f83d5ff2bf59db8f169f1c2f752d437
[ccsdk/features.git] / sdnr / wt / devicemanager-onap / onf14 / provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2020 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 <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">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>binding-parent</artifactId>
31         <version>2.5.4</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-devicemanager-onap-onf14-provider</artifactId>
37     <version>1.5.1-SNAPSHOT</version>
38     <packaging>bundle</packaging>
39
40     <name>ccsdk-features :: ${project.artifactId}</name>
41     <licenses>
42         <license>
43             <name>Apache License, Version 2.0</name>
44             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
45         </license>
46     </licenses>
47
48     <properties>
49         <maven.javadoc.skip>true</maven.javadoc.skip>
50         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
51         <buildtime>${maven.build.timestamp} UTC</buildtime>
52         <databaseport>49400</databaseport>
53     </properties>
54     
55     <dependencies>
56         <dependency>
57             <groupId>${project.groupId}</groupId>
58             <artifactId>sdnr-wt-devicemanager-onap-onf14-model</artifactId>
59             <version>${project.version}</version>
60         </dependency>
61         <dependency>
62             <groupId>${project.groupId}</groupId>
63             <artifactId>sdnr-wt-devicemanager-core-model</artifactId>
64             <version>${project.version}</version>
65             <scope>provided</scope>
66         </dependency>        
67         <dependency>
68             <groupId>${project.groupId}</groupId>
69             <artifactId>sdnr-wt-websocketmanager-model</artifactId>
70             <version>${project.version}</version>
71             <scope>provided</scope>
72         </dependency>
73         <dependency>
74             <groupId>${project.groupId}</groupId>
75             <artifactId>sdnr-wt-data-provider-model</artifactId>
76             <version>${project.version}</version>
77             <scope>provided</scope>
78         </dependency>
79         <dependency>
80             <groupId>${project.groupId}</groupId>
81             <artifactId>sdnr-wt-common</artifactId>
82             <version>${project.version}</version>
83             <scope>provided</scope>
84         </dependency>     
85         <dependency>
86             <groupId>org.opendaylight.mdsal</groupId>
87             <artifactId>mdsal-binding-dom-codec-api</artifactId>
88             <scope>provided</scope>
89         </dependency>
90         <dependency>
91             <groupId>${project.groupId}</groupId>
92             <artifactId>sdnr-wt-netconfnode-state-service-model</artifactId>
93             <version>${project.version}</version>
94             <scope>provided</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.opendaylight.netconf</groupId>
98             <artifactId>sal-netconf-connector</artifactId>
99             <scope>provided</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.opendaylight.mdsal</groupId>
103             <artifactId>mdsal-singleton-common-api</artifactId>
104             <scope>provided</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
108             <artifactId>rfc6991-ietf-yang-types</artifactId>
109             <scope>provided</scope>
110         </dependency>
111         <!-- begin for testing -->
112         <dependency>
113             <groupId>org.mockito</groupId>
114             <artifactId>mockito-core</artifactId>
115             <scope>test</scope>
116         </dependency>   
117         <!-- end for testing -->
118     </dependencies>
119
120     <build>
121         <resources>
122             <resource>
123                 <directory>src/main/resources</directory>
124                 <filtering>true</filtering>
125             </resource>
126         </resources>
127         <pluginManagement><plugins>
128                 <plugin>
129           <groupId>org.opendaylight.yangtools</groupId>
130           <artifactId>yang-maven-plugin</artifactId>
131           <version>7.0.9</version>
132           <executions>
133             <execution>
134               <id>binding</id>
135               <phase>none</phase>
136               <goals>
137                 <goal>generate-sources</goal>
138               </goals>
139               <configuration>
140                 <inspectDependencies>true</inspectDependencies>
141               </configuration>
142             </execution>
143           </executions>
144           <dependencies>
145             <dependency>
146               <groupId>org.opendaylight.mdsal</groupId>
147               <artifactId>mdsal-binding-java-api-generator</artifactId>
148               <version>8.0.6</version>
149               <scope>compile</scope>
150             </dependency>
151           </dependencies>
152         </plugin>
153               </plugins>
154             </pluginManagement>
155         <plugins>
156             <plugin>
157                 <groupId>org.jacoco</groupId>
158                 <artifactId>jacoco-maven-plugin</artifactId>
159                 <configuration>
160                     <excludes>
161                         <exclude>**/gen/**</exclude>
162                         <exclude>**/generated-sources/**</exclude>
163                         <exclude>**/yang-gen-sal/**</exclude>
164                         <exclude>**/pax/**</exclude>
165                     </excludes>
166                 </configuration>
167             </plugin>
168                   <plugin>
169         <artifactId>maven-enforcer-plugin</artifactId>
170         <version>3.0.0</version>
171         <executions>
172           <execution>
173             <id>enforce-maven</id>
174             <goals>
175               <goal>enforce</goal>
176             </goals>
177             <configuration>
178               <rules>
179                 <requireJavaVersion>
180                   <version>11</version>
181                 </requireJavaVersion>
182                 <requireMavenVersion>
183                   <version>[3.5.0,)</version>
184                 </requireMavenVersion>
185               </rules>
186             </configuration>
187           </execution>
188           <execution>
189             <id>enforce-banned-dependencies</id>
190             <goals>
191               <goal>enforce</goal>
192             </goals>
193             <configuration>
194               <rules>
195                 <bannedDependencies>
196                   <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
197                   <excludes>
198                     <exclude>org.mockito:mockito-all</exclude>
199                     <exclude>com.google.code.findbugs:annotations</exclude>
200                   </excludes>
201                 </bannedDependencies>
202               </rules>
203               <fail>false</fail>
204             </configuration>
205           </execution>
206         </executions>
207       </plugin>
208         </plugins>
209     </build>
210 </project>