ae3f5bb7b167ff7c163d828a5dbd4a3fbcc5a139
[controller.git] / opendaylight / md-sal / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2018 Inocybe Technologies and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10   <modelVersion>4.0.0</modelVersion>
11   <parent>
12     <groupId>org.opendaylight.mdsal</groupId>
13     <artifactId>binding-parent</artifactId>
14     <version>0.13.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>org.opendaylight.controller</groupId>
19   <artifactId>mdsal-parent</artifactId>
20   <version>1.8.0-SNAPSHOT</version>
21   <packaging>pom</packaging>
22
23   <properties>
24     <jmxGeneratorPath>${project.build.directory}/generated-sources/config-binding</jmxGeneratorPath>
25   </properties>
26
27   <dependencyManagement>
28     <dependencies>
29       <dependency>
30         <groupId>org.opendaylight.controller</groupId>
31         <artifactId>mdsal-artifacts</artifactId>
32         <version>1.8.0-SNAPSHOT</version>
33         <type>pom</type>
34         <scope>import</scope>
35       </dependency>
36       <dependency>
37         <groupId>org.opendaylight.controller</groupId>
38         <artifactId>config-artifacts</artifactId>
39         <version>0.9.0-SNAPSHOT</version>
40         <type>pom</type>
41         <scope>import</scope>
42       </dependency>
43     </dependencies>
44   </dependencyManagement>
45
46   <dependencies>
47     <dependency>
48       <groupId>org.opendaylight.yangtools</groupId>
49       <artifactId>yang-common</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.controller</groupId>
53       <artifactId>config-api</artifactId>
54     </dependency>
55   </dependencies>
56
57   <build>
58     <plugins>
59       <plugin>
60         <groupId>org.opendaylight.yangtools</groupId>
61         <artifactId>yang-maven-plugin</artifactId>
62         <version>2.0.5</version>
63         <dependencies>
64           <dependency>
65             <groupId>org.opendaylight.controller</groupId>
66             <artifactId>yang-jmx-generator-plugin</artifactId>
67             <version>0.9.0-SNAPSHOT</version>
68           </dependency>
69         </dependencies>
70         <executions>
71           <execution>
72             <id>config</id>
73             <goals>
74               <goal>generate-sources</goal>
75             </goals>
76             <configuration>
77               <codeGenerators>
78                 <generator>
79                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
80                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
81                   <additionalConfiguration>
82                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
83                   </additionalConfiguration>
84                 </generator>
85               </codeGenerators>
86               <inspectDependencies>true</inspectDependencies>
87             </configuration>
88           </execution>
89         </executions>
90       </plugin>
91       <plugin>
92         <artifactId>maven-clean-plugin</artifactId>
93         <configuration>
94           <filesets>
95             <fileset>
96               <directory>${jmxGeneratorPath}</directory>
97                 <includes>
98                   <include>**</include>
99                 </includes>
100               </fileset>
101               <fileset>
102                 <directory>${salGeneratorPath}</directory>
103                 <includes>
104                   <include>**</include>
105               </includes>
106             </fileset>
107           </filesets>
108         </configuration>
109       </plugin>
110       <plugin>
111         <groupId>org.apache.maven.plugins</groupId>
112         <artifactId>maven-checkstyle-plugin</artifactId>
113         <configuration>
114           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
115         </configuration>
116       </plugin>
117       <plugin>
118         <groupId>org.codehaus.mojo</groupId>
119         <artifactId>findbugs-maven-plugin</artifactId>
120         <dependencies>
121           <dependency>
122             <groupId>org.opendaylight.odlparent</groupId>
123             <artifactId>findbugs</artifactId>
124             <version>3.1.1</version>
125           </dependency>
126         </dependencies>
127         <configuration>
128           <failOnError>true</failOnError>
129         </configuration>
130       </plugin>
131     </plugins>
132   </build>
133 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.