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