Merge "Bug 1308 - Unable to publish NodeUpdated message via NotificationService"
[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>config-netty-config</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.codehaus.groovy.maven</groupId>
99           <artifactId>gmaven-plugin</artifactId>
100           <version>${gmaven.plugin.version}</version>
101         </plugin>
102         <plugin>
103           <groupId>org.opendaylight.yangtools</groupId>
104           <artifactId>yang-maven-plugin</artifactId>
105           <version>${yangtools.version}</version>
106           <dependencies>
107             <dependency>
108               <groupId>org.opendaylight.yangtools</groupId>
109               <artifactId>maven-sal-api-gen-plugin</artifactId>
110               <version>${yangtools.version}</version>
111               <type>jar</type>
112             </dependency>
113           </dependencies>
114           <executions>
115             <execution>
116               <id>sal</id>
117               <goals>
118                 <goal>generate-sources</goal>
119               </goals>
120               <configuration>
121                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
122                 <codeGenerators>
123                   <generator>
124                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
125                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
126                   </generator>
127                   <generator>
128                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
129                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
130                   </generator>
131                 </codeGenerators>
132                 <inspectDependencies>true</inspectDependencies>
133               </configuration>
134             </execution>
135           </executions>
136         </plugin>
137       </plugins>
138     </pluginManagement>
139     <plugins>
140       <plugin>
141         <groupId>org.apache.maven.plugins</groupId>
142         <artifactId>maven-checkstyle-plugin</artifactId>
143         <configuration>
144           <failsOnError>false</failsOnError>
145           <failOnViolation>false</failOnViolation>
146           <configLocation>checkstyle-logging.xml</configLocation>
147           <consoleOutput>true</consoleOutput>
148           <includeTestSourceDirectory>true</includeTestSourceDirectory>
149           <sourceDirectory>${project.basedir}</sourceDirectory>
150           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
151           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
152         </configuration>
153         <dependencies>
154           <dependency>
155             <groupId>org.opendaylight.yangtools</groupId>
156             <artifactId>checkstyle-logging</artifactId>
157             <version>${yangtools.version}</version>
158           </dependency>
159         </dependencies>
160         <executions>
161           <execution>
162             <goals>
163               <goal>check</goal>
164             </goals>
165           </execution>
166         </executions>
167       </plugin>
168       <plugin>
169         <groupId>org.apache.maven.plugins</groupId>
170         <artifactId>maven-compiler-plugin</artifactId>
171       </plugin>
172       <plugin>
173         <groupId>org.apache.maven.plugins</groupId>
174         <artifactId>maven-surefire-plugin</artifactId>
175       </plugin>
176       <plugin>
177         <groupId>org.jacoco</groupId>
178         <artifactId>jacoco-maven-plugin</artifactId>
179         <executions>
180           <execution>
181             <goals>
182               <goal>prepare-agent</goal>
183             </goals>
184           </execution>
185           <execution>
186             <id>report</id>
187             <goals>
188               <goal>check</goal>
189               <goal>report</goal>
190             </goals>
191             <phase>prepare-package</phase>
192             <configuration>
193               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
194               <haltOnFailure>false</haltOnFailure>
195               <check>
196                 <classRatio>80</classRatio>
197               </check>
198             </configuration>
199           </execution>
200         </executions>
201       </plugin>
202
203     </plugins>
204   </build>
205
206   <profiles>
207     <profile>
208       <id>integrationtests</id>
209       <activation>
210         <activeByDefault>false</activeByDefault>
211       </activation>
212       <modules>
213         <module>yang-jmx-generator-it</module>
214       </modules>
215     </profile>
216   </profiles>
217 </project>