Bump versions by 0.1.0 for next dev cycle
[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"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11   <parent>
12     <groupId>org.opendaylight.mdsal</groupId>
13     <artifactId>binding-parent</artifactId>
14     <version>0.10.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <modelVersion>4.0.0</modelVersion>
19   <groupId>org.opendaylight.controller</groupId>
20   <artifactId>config-parent</artifactId>
21   <version>0.6.0-SNAPSHOT</version>
22   <packaging>pom</packaging>
23
24   <properties>
25     <config.version>0.6.0-SNAPSHOT</config.version>
26     <mdsal.version>1.5.0-SNAPSHOT</mdsal.version>
27     <yangtools.version>1.1.0-SNAPSHOT</yangtools.version>
28     <jmxGeneratorPath>target/generated-sources/config-binding</jmxGeneratorPath>
29     <config.file>src/main/config/default-config.xml</config.file>
30   </properties>
31
32   <dependencyManagement>
33     <dependencies>
34       <!-- project specific dependencies -->
35       <dependency>
36         <groupId>org.opendaylight.controller</groupId>
37         <artifactId>config-artifacts</artifactId>
38         <version>${config.version}</version>
39         <type>pom</type>
40         <scope>import</scope>
41       </dependency>
42       <dependency>
43         <groupId>org.opendaylight.controller</groupId>
44         <artifactId>mdsal-artifacts</artifactId>
45         <version>${mdsal.version}</version>
46         <type>pom</type>
47         <scope>import</scope>
48       </dependency>
49       <dependency>
50         <groupId>org.opendaylight.yangtools</groupId>
51         <artifactId>yangtools-artifacts</artifactId>
52         <version>${yangtools.version}</version>
53         <type>pom</type>
54         <scope>import</scope>
55       </dependency>
56       <dependency>
57         <groupId>org.opendaylight.mdsal</groupId>
58         <artifactId>mdsal-artifacts</artifactId>
59         <version>2.2.0-SNAPSHOT</version>
60         <type>pom</type>
61         <scope>import</scope>
62       </dependency>
63     </dependencies>
64   </dependencyManagement>
65
66   <dependencies>
67     <dependency>
68       <groupId>org.opendaylight.yangtools</groupId>
69       <artifactId>yang-common</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.controller</groupId>
73       <artifactId>config-api</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.controller</groupId>
77       <artifactId>sal-binding-config</artifactId>
78     </dependency>
79   </dependencies>
80   <build>
81     <pluginManagement>
82       <plugins>
83         <plugin>
84           <groupId>org.opendaylight.yangtools</groupId>
85           <artifactId>yang-maven-plugin</artifactId>
86           <version>${yangtools.version}</version>
87           <dependencies>
88             <dependency>
89               <groupId>org.opendaylight.controller</groupId>
90               <artifactId>yang-jmx-generator-plugin</artifactId>
91               <version>${config.version}</version>
92             </dependency>
93           </dependencies>
94           <executions>
95             <execution>
96               <id>config</id>
97               <goals>
98                 <goal>generate-sources</goal>
99               </goals>
100               <configuration>
101                 <codeGenerators>
102                   <generator>
103                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
104                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
105                     <additionalConfiguration>
106                       <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
107                     </additionalConfiguration>
108                   </generator>
109                 </codeGenerators>
110                 <inspectDependencies>true</inspectDependencies>
111               </configuration>
112             </execution>
113           </executions>
114         </plugin>
115         <plugin>
116           <artifactId>maven-clean-plugin</artifactId>
117           <configuration>
118             <filesets>
119               <fileset>
120                 <directory>${jmxGeneratorPath}</directory>
121                 <includes>
122                   <include>**</include>
123                 </includes>
124               </fileset>
125               <fileset>
126                 <directory>${salGeneratorPath}</directory>
127                 <includes>
128                   <include>**</include>
129                 </includes>
130               </fileset>
131             </filesets>
132           </configuration>
133         </plugin>
134         <plugin>
135           <groupId>org.codehaus.mojo</groupId>
136           <artifactId>build-helper-maven-plugin</artifactId>
137           <executions>
138             <execution>
139               <id>add-yang-sources</id>
140               <phase>generate-sources</phase>
141               <goals>
142                 <goal>add-source</goal>
143               </goals>
144               <configuration>
145                 <sources>
146                   <source>${jmxGeneratorPath}</source>
147                   <source>${salGeneratorPath}</source>
148                 </sources>
149               </configuration>
150             </execution>
151           </executions>
152         </plugin>
153
154         <!-- This has to match the definition in odlparent and exists only
155              because for some reason PMD does not understand wildcards. -->
156         <plugin>
157           <groupId>org.apache.maven.plugins</groupId>
158           <artifactId>maven-pmd-plugin</artifactId>
159           <executions>
160             <execution>
161               <id>cpd</id>
162               <phase>process-sources</phase>
163               <goals>
164                 <goal>cpd-check</goal>
165               </goals>
166               <configuration>
167                 <excludeRoots>
168                   <excludeRoot>${jmxGeneratorPath}</excludeRoot>
169                   <excludeRoot>${salGeneratorPath}</excludeRoot>
170                 </excludeRoots>
171               </configuration>
172             </execution>
173           </executions>
174         </plugin>
175       </plugins>
176     </pluginManagement>
177   </build>
178   <profiles>
179     <profile>
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.