Bump remaining yangtools 2.0.3 references to 2.0.5
[controller.git] / opendaylight / config / config-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2014 Cisco Systems, Inc. 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   <parent>
11     <groupId>org.opendaylight.mdsal</groupId>
12     <artifactId>binding-parent</artifactId>
13     <version>0.13.0-SNAPSHOT</version>
14     <relativePath/>
15   </parent>
16
17   <modelVersion>4.0.0</modelVersion>
18   <groupId>org.opendaylight.controller</groupId>
19   <artifactId>config-parent</artifactId>
20   <version>0.9.0-SNAPSHOT</version>
21   <packaging>pom</packaging>
22
23   <properties>
24     <config.version>0.9.0-SNAPSHOT</config.version>
25     <mdsal.version>1.8.0-SNAPSHOT</mdsal.version>
26     <yangtools.version>2.0.5</yangtools.version>
27     <jmxGeneratorPath>${project.build.directory}/generated-sources/config-binding</jmxGeneratorPath>
28     <config.file>src/main/config/default-config.xml</config.file>
29   </properties>
30
31   <dependencyManagement>
32     <dependencies>
33       <!-- project specific dependencies -->
34       <dependency>
35         <groupId>org.opendaylight.controller</groupId>
36         <artifactId>config-artifacts</artifactId>
37         <version>${config.version}</version>
38         <type>pom</type>
39         <scope>import</scope>
40       </dependency>
41       <dependency>
42         <groupId>org.opendaylight.controller</groupId>
43         <artifactId>mdsal-artifacts</artifactId>
44         <version>${mdsal.version}</version>
45         <type>pom</type>
46         <scope>import</scope>
47       </dependency>
48       <dependency>
49         <groupId>org.opendaylight.yangtools</groupId>
50         <artifactId>yangtools-artifacts</artifactId>
51         <version>2.0.5</version>
52         <type>pom</type>
53         <scope>import</scope>
54       </dependency>
55       <dependency>
56         <groupId>org.opendaylight.mdsal</groupId>
57         <artifactId>mdsal-artifacts</artifactId>
58         <version>2.5.0-SNAPSHOT</version>
59         <type>pom</type>
60         <scope>import</scope>
61       </dependency>
62     </dependencies>
63   </dependencyManagement>
64
65   <dependencies>
66     <dependency>
67       <groupId>org.opendaylight.yangtools</groupId>
68       <artifactId>yang-common</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>org.opendaylight.controller</groupId>
72       <artifactId>config-api</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>org.opendaylight.controller</groupId>
76       <artifactId>sal-binding-config</artifactId>
77     </dependency>
78   </dependencies>
79   <build>
80     <pluginManagement>
81       <plugins>
82         <plugin>
83           <groupId>org.opendaylight.yangtools</groupId>
84           <artifactId>yang-maven-plugin</artifactId>
85           <version>2.0.5</version>
86           <dependencies>
87             <dependency>
88               <groupId>org.opendaylight.controller</groupId>
89               <artifactId>yang-jmx-generator-plugin</artifactId>
90               <version>${config.version}</version>
91             </dependency>
92           </dependencies>
93           <executions>
94             <execution>
95               <id>config</id>
96               <goals>
97                 <goal>generate-sources</goal>
98               </goals>
99               <configuration>
100                 <codeGenerators>
101                   <generator>
102                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
103                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
104                     <additionalConfiguration>
105                       <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
106                     </additionalConfiguration>
107                   </generator>
108                 </codeGenerators>
109                 <inspectDependencies>true</inspectDependencies>
110               </configuration>
111             </execution>
112           </executions>
113         </plugin>
114         <plugin>
115           <artifactId>maven-clean-plugin</artifactId>
116           <configuration>
117             <filesets>
118               <fileset>
119                 <directory>${jmxGeneratorPath}</directory>
120                 <includes>
121                   <include>**</include>
122                 </includes>
123               </fileset>
124               <fileset>
125                 <directory>${salGeneratorPath}</directory>
126                 <includes>
127                   <include>**</include>
128                 </includes>
129               </fileset>
130             </filesets>
131           </configuration>
132         </plugin>
133         <plugin>
134           <groupId>org.codehaus.mojo</groupId>
135           <artifactId>build-helper-maven-plugin</artifactId>
136           <executions>
137             <execution>
138               <id>add-yang-sources</id>
139               <phase>generate-sources</phase>
140               <goals>
141                 <goal>add-source</goal>
142               </goals>
143               <configuration>
144                 <sources>
145                   <source>${jmxGeneratorPath}</source>
146                   <source>${salGeneratorPath}</source>
147                 </sources>
148               </configuration>
149             </execution>
150           </executions>
151         </plugin>
152
153         <!-- This has to match the definition in odlparent and exists only
154              because for some reason PMD does not understand wildcards. -->
155         <plugin>
156           <groupId>org.apache.maven.plugins</groupId>
157           <artifactId>maven-pmd-plugin</artifactId>
158           <executions>
159             <execution>
160               <id>cpd</id>
161               <phase>process-sources</phase>
162               <goals>
163                 <goal>cpd-check</goal>
164               </goals>
165               <configuration>
166                 <excludeRoots>
167                   <excludeRoot>${jmxGeneratorPath}</excludeRoot>
168                   <excludeRoot>${salGeneratorPath}</excludeRoot>
169                 </excludeRoots>
170               </configuration>
171             </execution>
172           </executions>
173         </plugin>
174       </plugins>
175     </pluginManagement>
176   </build>
177   <profiles>
178     <profile>
179       <id>attach-config-without-filtering</id>
180       <activation>
181         <file>
182           <exists>${config.file}</exists>
183         </file>
184       </activation>
185       <build>
186         <pluginManagement>
187           <plugins>
188             <plugin>
189               <groupId>org.codehaus.mojo</groupId>
190               <artifactId>build-helper-maven-plugin</artifactId>
191               <executions>
192                 <execution>
193                   <id>attach-artifacts</id>
194                   <goals>
195                     <goal>attach-artifact</goal>
196                   </goals>
197                   <phase>package</phase>
198                   <configuration>
199                     <artifacts>
200                       <artifact>
201                         <file>${config.file}</file>
202                         <type>xml</type>
203                         <classifier>config</classifier>
204                       </artifact>
205                     </artifacts>
206                   </configuration>
207                 </execution>
208               </executions>
209             </plugin>
210           </plugins>
211         </pluginManagement>
212         <plugins>
213           <plugin>
214             <groupId>org.codehaus.mojo</groupId>
215             <artifactId>build-helper-maven-plugin</artifactId>
216           </plugin>
217         </plugins>
218       </build>
219     </profile>
220   </profiles>
221 </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.