Merge "Bug 949: Fixed support for DataChangeListeners listening directly on Augmentation"
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <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">
4   <modelVersion>4.0.0</modelVersion>
5
6   <parent>
7     <groupId>org.opendaylight.controller</groupId>
8     <artifactId>commons.opendaylight</artifactId>
9     <version>1.4.2-SNAPSHOT</version>
10     <relativePath>../commons/opendaylight</relativePath>
11   </parent>
12   <artifactId>config-subsystem</artifactId>
13
14   <version>0.2.5-SNAPSHOT</version>
15   <packaging>pom</packaging>
16   <name>${project.artifactId}</name>
17   <prerequisites>
18     <maven>3.0.4</maven>
19   </prerequisites>
20   <modules>
21     <module>config-api</module>
22     <module>config-manager</module>
23     <module>config-plugin-parent</module>
24     <module>config-util</module>
25     <module>config-persister-api</module>
26     <module>config-persister-file-xml-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>config-module-archetype</module>
42   </modules>
43
44   <dependencies>
45     <dependency>
46       <groupId>org.osgi</groupId>
47       <artifactId>org.osgi.compendium</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>org.osgi</groupId>
51       <artifactId>org.osgi.core</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>ch.qos.logback</groupId>
55       <artifactId>logback-classic</artifactId>
56       <scope>test</scope>
57     </dependency>
58     <dependency>
59       <groupId>junit</groupId>
60       <artifactId>junit</artifactId>
61       <scope>test</scope>
62     </dependency>
63   </dependencies>
64
65   <build>
66
67     <pluginManagement>
68       <plugins>
69         <plugin>
70           <groupId>org.apache.felix</groupId>
71           <artifactId>maven-bundle-plugin</artifactId>
72           <extensions>true</extensions>
73           <configuration>
74             <instructions>
75               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
76             </instructions>
77           </configuration>
78         </plugin>
79         <plugin>
80           <groupId>org.apache.maven.plugins</groupId>
81           <artifactId>maven-antrun-plugin</artifactId>
82           <version>1.3</version>
83         </plugin>
84         <plugin>
85           <groupId>org.apache.maven.plugins</groupId>
86           <artifactId>maven-jar-plugin</artifactId>
87           <version>2.4</version>
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           <version>2.14.1</version>
101           <configuration>
102             <redirectTestOutputToFile>true</redirectTestOutputToFile>
103             <parallel>classes</parallel>
104             <forkCount>1C</forkCount>
105             <reuseForks>false</reuseForks>
106             <perCoreThreadCount>true</perCoreThreadCount>
107             <threadCount>2</threadCount>
108           </configuration>
109         </plugin>
110         <plugin>
111           <groupId>org.codehaus.groovy.maven</groupId>
112           <artifactId>gmaven-plugin</artifactId>
113           <version>1.0</version>
114         </plugin>
115         <plugin>
116           <groupId>org.opendaylight.yangtools</groupId>
117           <artifactId>yang-maven-plugin</artifactId>
118           <version>${yangtools.version}</version>
119           <dependencies>
120             <dependency>
121               <groupId>org.opendaylight.yangtools</groupId>
122               <artifactId>maven-sal-api-gen-plugin</artifactId>
123               <version>${yangtools.version}</version>
124               <type>jar</type>
125             </dependency>
126           </dependencies>
127           <executions>
128             <execution>
129               <id>sal</id>
130               <goals>
131                 <goal>generate-sources</goal>
132               </goals>
133               <configuration>
134                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
135                 <codeGenerators>
136                   <generator>
137                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
138                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
139                   </generator>
140                   <generator>
141                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
142                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
143                   </generator>
144                 </codeGenerators>
145                 <inspectDependencies>true</inspectDependencies>
146               </configuration>
147             </execution>
148           </executions>
149         </plugin>
150       </plugins>
151     </pluginManagement>
152     <plugins>
153       <plugin>
154         <groupId>org.apache.maven.plugins</groupId>
155         <artifactId>maven-compiler-plugin</artifactId>
156       </plugin>
157       <plugin>
158         <groupId>org.apache.maven.plugins</groupId>
159         <artifactId>maven-surefire-plugin</artifactId>
160       </plugin>
161       <plugin>
162         <groupId>org.jacoco</groupId>
163         <artifactId>jacoco-maven-plugin</artifactId>
164         <version>${jacoco.version}</version>
165         <executions>
166           <execution>
167             <goals>
168               <goal>prepare-agent</goal>
169             </goals>
170           </execution>
171           <execution>
172             <id>report</id>
173             <goals>
174               <goal>check</goal>
175               <goal>report</goal>
176             </goals>
177             <phase>prepare-package</phase>
178             <configuration>
179               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
180               <haltOnFailure>false</haltOnFailure>
181               <check>
182                 <classRatio>80</classRatio>
183               </check>
184             </configuration>
185           </execution>
186         </executions>
187       </plugin>
188
189     </plugins>
190   </build>
191
192   <profiles>
193     <profile>
194       <id>integrationtests</id>
195       <activation>
196         <activeByDefault>false</activeByDefault>
197       </activation>
198       <modules>
199         <module>yang-jmx-generator-it</module>
200       </modules>
201     </profile>
202   </profiles>
203 </project>