Merge "Fix a race PingPongTransactionChain"
[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.yangtools</groupId>
13     <artifactId>binding-parent</artifactId>
14     <version>0.7.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.3.0-SNAPSHOT</version>
22   <packaging>pom</packaging>
23
24   <properties>
25     <config.version>0.3.0-SNAPSHOT</config.version>
26     <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
27     <jmxGeneratorPath>src/main/yang-gen-config</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     </dependencies>
49   </dependencyManagement>
50
51   <dependencies>
52     <dependency>
53       <groupId>org.opendaylight.controller</groupId>
54       <artifactId>config-api</artifactId>
55     </dependency>
56     <dependency>
57       <groupId>org.opendaylight.controller</groupId>
58       <artifactId>sal-binding-config</artifactId>
59     </dependency>
60   </dependencies>
61   <build>
62     <pluginManagement>
63       <plugins>
64         <plugin>
65           <groupId>org.opendaylight.yangtools</groupId>
66           <artifactId>yang-maven-plugin</artifactId>
67           <dependencies>
68             <dependency>
69               <groupId>org.opendaylight.controller</groupId>
70               <artifactId>yang-jmx-generator-plugin</artifactId>
71               <version>${config.version}</version>
72             </dependency>
73           </dependencies>
74           <executions>
75             <execution>
76               <id>config</id>
77               <goals>
78                 <goal>generate-sources</goal>
79               </goals>
80               <configuration>
81                 <codeGenerators>
82                   <generator>
83                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
84                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
85                     <additionalConfiguration>
86                       <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
87                     </additionalConfiguration>
88                   </generator>
89                 </codeGenerators>
90                 <inspectDependencies>true</inspectDependencies>
91               </configuration>
92             </execution>
93           </executions>
94         </plugin>
95         <plugin>
96           <artifactId>maven-clean-plugin</artifactId>
97           <configuration>
98             <filesets>
99               <fileset>
100                 <directory>${jmxGeneratorPath}</directory>
101                 <includes>
102                   <include>**</include>
103                 </includes>
104               </fileset>
105               <fileset>
106                 <directory>${salGeneratorPath}</directory>
107                 <includes>
108                   <include>**</include>
109                 </includes>
110               </fileset>
111             </filesets>
112           </configuration>
113         </plugin>
114       </plugins>
115     </pluginManagement>
116   </build>
117   <profiles>
118     <profile>
119       <activation>
120         <file>
121           <exists>${config.file}</exists>
122         </file>
123       </activation>
124       <build>
125         <pluginManagement>
126           <plugins>
127             <plugin>
128               <groupId>org.codehaus.mojo</groupId>
129               <artifactId>build-helper-maven-plugin</artifactId>
130               <executions>
131                 <execution>
132                   <id>attach-artifacts</id>
133                   <goals>
134                     <goal>attach-artifact</goal>
135                   </goals>
136                   <phase>package</phase>
137                   <configuration>
138                     <artifacts>
139                       <artifact>
140                         <file>${config.file}</file>
141                         <type>xml</type>
142                         <classifier>config</classifier>
143                       </artifact>
144                     </artifacts>
145                   </configuration>
146                 </execution>
147               </executions>
148             </plugin>
149           </plugins>
150         </pluginManagement>
151         <plugins>
152           <plugin>
153             <groupId>org.codehaus.mojo</groupId>
154             <artifactId>build-helper-maven-plugin</artifactId>
155           </plugin>
156         </plugins>
157       </build>
158     </profile>
159   </profiles>
160 </project>