Merge "BUG-980: stop emiting copyright"
[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>netconf-config-dispatcher</module>
42     <module>config-module-archetype</module>
43     <module>feature</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>1.3</version>
85         </plugin>
86         <plugin>
87           <groupId>org.apache.maven.plugins</groupId>
88           <artifactId>maven-jar-plugin</artifactId>
89           <version>2.4</version>
90           <executions>
91             <execution>
92               <goals>
93                 <goal>test-jar</goal>
94               </goals>
95               <phase>package</phase>
96             </execution>
97           </executions>
98         </plugin>
99         <plugin>
100           <groupId>org.apache.maven.plugins</groupId>
101           <artifactId>maven-surefire-plugin</artifactId>
102           <version>2.14.1</version>
103           <configuration>
104             <redirectTestOutputToFile>true</redirectTestOutputToFile>
105             <parallel>classes</parallel>
106             <forkCount>1C</forkCount>
107             <reuseForks>false</reuseForks>
108             <perCoreThreadCount>true</perCoreThreadCount>
109             <threadCount>2</threadCount>
110           </configuration>
111         </plugin>
112         <plugin>
113           <groupId>org.codehaus.groovy.maven</groupId>
114           <artifactId>gmaven-plugin</artifactId>
115           <version>1.0</version>
116         </plugin>
117         <plugin>
118           <groupId>org.opendaylight.yangtools</groupId>
119           <artifactId>yang-maven-plugin</artifactId>
120           <version>${yangtools.version}</version>
121           <dependencies>
122             <dependency>
123               <groupId>org.opendaylight.yangtools</groupId>
124               <artifactId>maven-sal-api-gen-plugin</artifactId>
125               <version>${yangtools.version}</version>
126               <type>jar</type>
127             </dependency>
128           </dependencies>
129           <executions>
130             <execution>
131               <id>sal</id>
132               <goals>
133                 <goal>generate-sources</goal>
134               </goals>
135               <configuration>
136                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
137                 <codeGenerators>
138                   <generator>
139                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
140                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
141                   </generator>
142                   <generator>
143                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
144                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
145                   </generator>
146                 </codeGenerators>
147                 <inspectDependencies>true</inspectDependencies>
148               </configuration>
149             </execution>
150           </executions>
151         </plugin>
152       </plugins>
153     </pluginManagement>
154     <plugins>
155       <plugin>
156         <groupId>org.apache.maven.plugins</groupId>
157         <artifactId>maven-compiler-plugin</artifactId>
158       </plugin>
159       <plugin>
160         <groupId>org.apache.maven.plugins</groupId>
161         <artifactId>maven-surefire-plugin</artifactId>
162       </plugin>
163       <plugin>
164         <groupId>org.jacoco</groupId>
165         <artifactId>jacoco-maven-plugin</artifactId>
166         <executions>
167           <execution>
168             <goals>
169               <goal>prepare-agent</goal>
170             </goals>
171           </execution>
172           <execution>
173             <id>report</id>
174             <goals>
175               <goal>check</goal>
176               <goal>report</goal>
177             </goals>
178             <phase>prepare-package</phase>
179             <configuration>
180               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
181               <haltOnFailure>false</haltOnFailure>
182               <check>
183                 <classRatio>80</classRatio>
184               </check>
185             </configuration>
186           </execution>
187         </executions>
188       </plugin>
189
190     </plugins>
191   </build>
192
193   <profiles>
194     <profile>
195       <id>integrationtests</id>
196       <activation>
197         <activeByDefault>false</activeByDefault>
198       </activation>
199       <modules>
200         <module>yang-jmx-generator-it</module>
201       </modules>
202     </profile>
203   </profiles>
204 </project>