Merge "Re-added config.version to config-module-archetype."
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4
5   <parent>
6     <groupId>org.opendaylight.controller</groupId>
7     <artifactId>commons.opendaylight</artifactId>
8     <version>1.4.2-SNAPSHOT</version>
9     <relativePath>../commons/opendaylight</relativePath>
10   </parent>
11   <artifactId>config-subsystem</artifactId>
12
13   <version>0.2.5-SNAPSHOT</version>
14   <packaging>pom</packaging>
15   <name>${project.artifactId}</name>
16   <prerequisites>
17     <maven>3.0.4</maven>
18   </prerequisites>
19   <modules>
20     <module>config-api</module>
21     <module>config-manager</module>
22     <module>config-plugin-parent</module>
23     <module>config-util</module>
24     <module>config-persister-api</module>
25     <module>config-persister-file-xml-adapter</module>
26     <module>yang-jmx-generator</module>
27     <module>yang-jmx-generator-plugin</module>
28     <module>yang-test</module>
29     <module>logback-config</module>
30     <module>threadpool-config-api</module>
31     <module>netty-config-api</module>
32     <module>threadpool-config-impl</module>
33     <module>netty-threadgroup-config</module>
34     <module>netty-event-executor-config</module>
35     <module>netty-timer-config</module>
36     <module>config-persister-directory-xml-adapter</module>
37     <module>yang-test-plugin</module>
38     <module>shutdown-api</module>
39     <module>shutdown-impl</module>
40     <module>netconf-config-dispatcher</module>
41     <module>config-module-archetype</module>
42     <module>feature</module>
43   </modules>
44
45   <dependencies>
46     <dependency>
47       <groupId>org.osgi</groupId>
48       <artifactId>org.osgi.compendium</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>org.osgi</groupId>
52       <artifactId>org.osgi.core</artifactId>
53     </dependency>
54     <dependency>
55       <groupId>ch.qos.logback</groupId>
56       <artifactId>logback-classic</artifactId>
57       <scope>test</scope>
58     </dependency>
59     <dependency>
60       <groupId>junit</groupId>
61       <artifactId>junit</artifactId>
62       <scope>test</scope>
63     </dependency>
64   </dependencies>
65
66   <build>
67
68     <pluginManagement>
69       <plugins>
70         <plugin>
71           <groupId>org.apache.felix</groupId>
72           <artifactId>maven-bundle-plugin</artifactId>
73           <extensions>true</extensions>
74           <configuration>
75             <instructions>
76               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
77             </instructions>
78           </configuration>
79         </plugin>
80         <plugin>
81           <groupId>org.apache.maven.plugins</groupId>
82           <artifactId>maven-antrun-plugin</artifactId>
83           <version>${maven.antrun.plugin.version}</version>
84         </plugin>
85         <plugin>
86           <groupId>org.apache.maven.plugins</groupId>
87           <artifactId>maven-jar-plugin</artifactId>
88           <executions>
89             <execution>
90               <goals>
91                 <goal>test-jar</goal>
92               </goals>
93               <phase>package</phase>
94             </execution>
95           </executions>
96         </plugin>
97         <plugin>
98           <groupId>org.apache.maven.plugins</groupId>
99           <artifactId>maven-surefire-plugin</artifactId>
100           <configuration>
101             <redirectTestOutputToFile>true</redirectTestOutputToFile>
102             <parallel>classes</parallel>
103             <forkCount>1C</forkCount>
104             <reuseForks>false</reuseForks>
105             <perCoreThreadCount>true</perCoreThreadCount>
106             <threadCount>2</threadCount>
107           </configuration>
108         </plugin>
109         <plugin>
110           <groupId>org.codehaus.groovy.maven</groupId>
111           <artifactId>gmaven-plugin</artifactId>
112           <version>${gmaven.plugin.version}</version>
113         </plugin>
114         <plugin>
115           <groupId>org.opendaylight.yangtools</groupId>
116           <artifactId>yang-maven-plugin</artifactId>
117           <version>${yangtools.version}</version>
118           <dependencies>
119             <dependency>
120               <groupId>org.opendaylight.yangtools</groupId>
121               <artifactId>maven-sal-api-gen-plugin</artifactId>
122               <version>${yangtools.version}</version>
123               <type>jar</type>
124             </dependency>
125           </dependencies>
126           <executions>
127             <execution>
128               <id>sal</id>
129               <goals>
130                 <goal>generate-sources</goal>
131               </goals>
132               <configuration>
133                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
134                 <codeGenerators>
135                   <generator>
136                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
137                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
138                   </generator>
139                   <generator>
140                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
141                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
142                   </generator>
143                 </codeGenerators>
144                 <inspectDependencies>true</inspectDependencies>
145               </configuration>
146             </execution>
147           </executions>
148         </plugin>
149       </plugins>
150     </pluginManagement>
151     <plugins>
152       <plugin>
153         <groupId>org.apache.maven.plugins</groupId>
154         <artifactId>maven-checkstyle-plugin</artifactId>
155         <configuration>
156           <failsOnError>false</failsOnError>
157           <failOnViolation>false</failOnViolation>
158           <configLocation>checkstyle-logging.xml</configLocation>
159           <consoleOutput>true</consoleOutput>
160           <includeTestSourceDirectory>true</includeTestSourceDirectory>
161           <sourceDirectory>${project.basedir}</sourceDirectory>
162           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
163           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
164         </configuration>
165         <dependencies>
166           <dependency>
167             <groupId>org.opendaylight.yangtools</groupId>
168             <artifactId>checkstyle-logging</artifactId>
169             <version>${yangtools.version}</version>
170           </dependency>
171         </dependencies>
172         <executions>
173           <execution>
174             <goals>
175               <goal>check</goal>
176             </goals>
177           </execution>
178         </executions>
179       </plugin>
180       <plugin>
181         <groupId>org.apache.maven.plugins</groupId>
182         <artifactId>maven-compiler-plugin</artifactId>
183       </plugin>
184       <plugin>
185         <groupId>org.apache.maven.plugins</groupId>
186         <artifactId>maven-surefire-plugin</artifactId>
187       </plugin>
188       <plugin>
189         <groupId>org.jacoco</groupId>
190         <artifactId>jacoco-maven-plugin</artifactId>
191         <executions>
192           <execution>
193             <goals>
194               <goal>prepare-agent</goal>
195             </goals>
196           </execution>
197           <execution>
198             <id>report</id>
199             <goals>
200               <goal>check</goal>
201               <goal>report</goal>
202             </goals>
203             <phase>prepare-package</phase>
204             <configuration>
205               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
206               <haltOnFailure>false</haltOnFailure>
207               <check>
208                 <classRatio>80</classRatio>
209               </check>
210             </configuration>
211           </execution>
212         </executions>
213       </plugin>
214
215     </plugins>
216   </build>
217
218   <profiles>
219     <profile>
220       <id>integrationtests</id>
221       <activation>
222         <activeByDefault>false</activeByDefault>
223       </activation>
224       <modules>
225         <module>yang-jmx-generator-it</module>
226       </modules>
227     </profile>
228   </profiles>
229 </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.