Merge changes I67420353,I6851f9b9
[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         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
116         <plugin>
117           <groupId>org.eclipse.m2e</groupId>
118           <artifactId>lifecycle-mapping</artifactId>
119           <version>1.0.0</version>
120           <configuration>
121             <lifecycleMappingMetadata>
122               <pluginExecutions>
123                 <pluginExecution>
124                   <pluginExecutionFilter>
125                     <groupId>org.opendaylight.yangtools</groupId>
126                     <artifactId>yang-maven-plugin</artifactId>
127                     <versionRange>[0.5.7-SNAPSHOT,)</versionRange>
128                     <goals>
129                       <goal>generate-sources</goal>
130                     </goals>
131                   </pluginExecutionFilter>
132                   <action>
133                     <ignore></ignore>
134                   </action>
135                 </pluginExecution>
136               </pluginExecutions>
137             </lifecycleMappingMetadata>
138           </configuration>
139         </plugin>
140         <plugin>
141           <groupId>org.opendaylight.yangtools</groupId>
142           <artifactId>yang-maven-plugin</artifactId>
143           <version>${yangtools.version}</version>
144           <dependencies>
145             <dependency>
146               <groupId>org.opendaylight.yangtools</groupId>
147               <artifactId>maven-sal-api-gen-plugin</artifactId>
148               <version>${yangtools.version}</version>
149               <type>jar</type>
150             </dependency>
151           </dependencies>
152           <executions>
153             <execution>
154               <id>sal</id>
155               <goals>
156                 <goal>generate-sources</goal>
157               </goals>
158               <configuration>
159                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
160                 <codeGenerators>
161                   <generator>
162                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
163                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
164                   </generator>
165                   <generator>
166                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
167                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
168                   </generator>
169                 </codeGenerators>
170                 <inspectDependencies>true</inspectDependencies>
171               </configuration>
172             </execution>
173           </executions>
174         </plugin>
175       </plugins>
176     </pluginManagement>
177     <plugins>
178       <plugin>
179         <groupId>org.apache.maven.plugins</groupId>
180         <artifactId>maven-compiler-plugin</artifactId>
181       </plugin>
182       <plugin>
183         <groupId>org.apache.maven.plugins</groupId>
184         <artifactId>maven-surefire-plugin</artifactId>
185       </plugin>
186       <plugin>
187         <groupId>org.jacoco</groupId>
188         <artifactId>jacoco-maven-plugin</artifactId>
189         <version>${jacoco.version}</version>
190         <executions>
191           <execution>
192             <goals>
193               <goal>prepare-agent</goal>
194             </goals>
195           </execution>
196           <execution>
197             <id>report</id>
198             <goals>
199               <goal>check</goal>
200               <goal>report</goal>
201             </goals>
202             <phase>prepare-package</phase>
203             <configuration>
204               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
205               <haltOnFailure>false</haltOnFailure>
206               <check>
207                 <classRatio>80</classRatio>
208               </check>
209             </configuration>
210           </execution>
211         </executions>
212       </plugin>
213
214     </plugins>
215   </build>
216
217   <profiles>
218     <profile>
219       <id>integrationtests</id>
220       <activation>
221         <activeByDefault>false</activeByDefault>
222       </activation>
223       <modules>
224         <module>yang-jmx-generator-it</module>
225       </modules>
226     </profile>
227   </profiles>
228 </project>