BUG-8: migrate newMBeanProxy() -> newMXBeanProxy()
[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.5.0-SNAPSHOT</version>
9     <relativePath>../commons/opendaylight</relativePath>
10   </parent>
11   <artifactId>config-subsystem</artifactId>
12
13   <version>0.3.0-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
45     <module>config-artifacts</module>
46   </modules>
47
48   <dependencies>
49     <dependency>
50       <groupId>org.osgi</groupId>
51       <artifactId>org.osgi.compendium</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>org.osgi</groupId>
55       <artifactId>org.osgi.core</artifactId>
56     </dependency>
57     <dependency>
58       <groupId>ch.qos.logback</groupId>
59       <artifactId>logback-classic</artifactId>
60       <scope>test</scope>
61     </dependency>
62     <dependency>
63       <groupId>junit</groupId>
64       <artifactId>junit</artifactId>
65       <scope>test</scope>
66     </dependency>
67   </dependencies>
68
69   <build>
70
71     <pluginManagement>
72       <plugins>
73         <plugin>
74           <groupId>org.apache.felix</groupId>
75           <artifactId>maven-bundle-plugin</artifactId>
76           <extensions>true</extensions>
77           <configuration>
78             <instructions>
79               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
80             </instructions>
81           </configuration>
82         </plugin>
83         <plugin>
84           <groupId>org.apache.maven.plugins</groupId>
85           <artifactId>maven-antrun-plugin</artifactId>
86           <version>${maven.antrun.plugin.version}</version>
87         </plugin>
88         <plugin>
89           <groupId>org.apache.maven.plugins</groupId>
90           <artifactId>maven-jar-plugin</artifactId>
91           <executions>
92             <execution>
93               <goals>
94                 <goal>test-jar</goal>
95               </goals>
96               <phase>package</phase>
97             </execution>
98           </executions>
99         </plugin>
100         <plugin>
101           <groupId>org.codehaus.groovy.maven</groupId>
102           <artifactId>gmaven-plugin</artifactId>
103           <version>${gmaven.plugin.version}</version>
104         </plugin>
105         <plugin>
106           <groupId>org.opendaylight.yangtools</groupId>
107           <artifactId>yang-maven-plugin</artifactId>
108           <version>${yangtools.version}</version>
109           <dependencies>
110             <dependency>
111               <groupId>org.opendaylight.yangtools</groupId>
112               <artifactId>maven-sal-api-gen-plugin</artifactId>
113               <version>${yangtools.version}</version>
114               <type>jar</type>
115             </dependency>
116           </dependencies>
117           <executions>
118             <execution>
119               <id>sal</id>
120               <goals>
121                 <goal>generate-sources</goal>
122               </goals>
123               <configuration>
124                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
125                 <codeGenerators>
126                   <generator>
127                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
128                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
129                   </generator>
130                   <generator>
131                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
132                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
133                   </generator>
134                 </codeGenerators>
135                 <inspectDependencies>true</inspectDependencies>
136               </configuration>
137             </execution>
138           </executions>
139         </plugin>
140       </plugins>
141     </pluginManagement>
142     <plugins>
143       <plugin>
144         <groupId>org.apache.maven.plugins</groupId>
145         <artifactId>maven-checkstyle-plugin</artifactId>
146         <configuration>
147           <failsOnError>false</failsOnError>
148           <failOnViolation>false</failOnViolation>
149           <configLocation>checkstyle-logging.xml</configLocation>
150           <consoleOutput>true</consoleOutput>
151           <includeTestSourceDirectory>true</includeTestSourceDirectory>
152           <sourceDirectory>${project.basedir}</sourceDirectory>
153           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
154           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
155         </configuration>
156         <dependencies>
157           <dependency>
158             <groupId>org.opendaylight.yangtools</groupId>
159             <artifactId>checkstyle-logging</artifactId>
160             <version>${yangtools.version}</version>
161           </dependency>
162         </dependencies>
163         <executions>
164           <execution>
165             <goals>
166               <goal>check</goal>
167             </goals>
168           </execution>
169         </executions>
170       </plugin>
171       <plugin>
172         <groupId>org.apache.maven.plugins</groupId>
173         <artifactId>maven-compiler-plugin</artifactId>
174       </plugin>
175       <plugin>
176         <groupId>org.apache.maven.plugins</groupId>
177         <artifactId>maven-surefire-plugin</artifactId>
178       </plugin>
179       <plugin>
180         <groupId>org.jacoco</groupId>
181         <artifactId>jacoco-maven-plugin</artifactId>
182         <executions>
183           <execution>
184             <goals>
185               <goal>prepare-agent</goal>
186             </goals>
187           </execution>
188           <execution>
189             <id>report</id>
190             <goals>
191               <goal>check</goal>
192               <goal>report</goal>
193             </goals>
194             <phase>prepare-package</phase>
195             <configuration>
196               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
197               <haltOnFailure>false</haltOnFailure>
198               <rules>
199                 <rule>
200                   <element>CLASS</element>
201                   <excludes>
202                     <exclude>*Test</exclude>
203                   </excludes>
204                   <limits>
205                     <limit>
206                       <counter>LINE</counter>
207                       <value>COVEREDRATIO</value>
208                       <minimum>0.50</minimum>
209                     </limit>
210                   </limits>
211                 </rule>
212               </rules>
213             </configuration>
214           </execution>
215         </executions>
216       </plugin>
217
218     </plugins>
219   </build>
220
221   <profiles>
222     <profile>
223       <id>integrationtests</id>
224       <activation>
225         <activeByDefault>false</activeByDefault>
226       </activation>
227       <modules>
228         <module>yang-jmx-generator-it</module>
229       </modules>
230     </profile>
231   </profiles>
232 </project>