BUG-693 Config module for netconf client dispatcher.
[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   </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>1.3</version>
84         </plugin>
85         <plugin>
86           <groupId>org.apache.maven.plugins</groupId>
87           <artifactId>maven-jar-plugin</artifactId>
88           <version>2.4</version>
89           <executions>
90             <execution>
91               <goals>
92                 <goal>test-jar</goal>
93               </goals>
94               <phase>package</phase>
95             </execution>
96           </executions>
97         </plugin>
98         <plugin>
99           <groupId>org.apache.maven.plugins</groupId>
100           <artifactId>maven-surefire-plugin</artifactId>
101           <version>2.14.1</version>
102           <configuration>
103             <redirectTestOutputToFile>true</redirectTestOutputToFile>
104             <parallel>classes</parallel>
105             <forkCount>1C</forkCount>
106             <reuseForks>false</reuseForks>
107             <perCoreThreadCount>true</perCoreThreadCount>
108             <threadCount>2</threadCount>
109           </configuration>
110         </plugin>
111         <plugin>
112           <groupId>org.codehaus.groovy.maven</groupId>
113           <artifactId>gmaven-plugin</artifactId>
114           <version>1.0</version>
115         </plugin>
116         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
117         <plugin>
118           <groupId>org.eclipse.m2e</groupId>
119           <artifactId>lifecycle-mapping</artifactId>
120           <version>1.0.0</version>
121           <configuration>
122             <lifecycleMappingMetadata>
123               <pluginExecutions>
124                 <pluginExecution>
125                   <pluginExecutionFilter>
126                     <groupId>org.opendaylight.yangtools</groupId>
127                     <artifactId>yang-maven-plugin</artifactId>
128                     <versionRange>[0.5.7-SNAPSHOT,)</versionRange>
129                     <goals>
130                       <goal>generate-sources</goal>
131                     </goals>
132                   </pluginExecutionFilter>
133                   <action>
134                     <ignore></ignore>
135                   </action>
136                 </pluginExecution>
137               </pluginExecutions>
138             </lifecycleMappingMetadata>
139           </configuration>
140         </plugin>
141         <plugin>
142           <groupId>org.opendaylight.yangtools</groupId>
143           <artifactId>yang-maven-plugin</artifactId>
144           <version>${yangtools.version}</version>
145           <dependencies>
146             <dependency>
147               <groupId>org.opendaylight.yangtools</groupId>
148               <artifactId>maven-sal-api-gen-plugin</artifactId>
149               <version>${yangtools.version}</version>
150               <type>jar</type>
151             </dependency>
152           </dependencies>
153           <executions>
154             <execution>
155               <id>sal</id>
156               <goals>
157                 <goal>generate-sources</goal>
158               </goals>
159               <configuration>
160                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
161                 <codeGenerators>
162                   <generator>
163                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
164                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
165                   </generator>
166                   <generator>
167                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
168                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
169                   </generator>
170                 </codeGenerators>
171                 <inspectDependencies>true</inspectDependencies>
172               </configuration>
173             </execution>
174           </executions>
175         </plugin>
176       </plugins>
177     </pluginManagement>
178     <plugins>
179       <plugin>
180         <groupId>org.apache.maven.plugins</groupId>
181         <artifactId>maven-compiler-plugin</artifactId>
182       </plugin>
183       <plugin>
184         <groupId>org.apache.maven.plugins</groupId>
185         <artifactId>maven-surefire-plugin</artifactId>
186       </plugin>
187       <plugin>
188         <groupId>org.jacoco</groupId>
189         <artifactId>jacoco-maven-plugin</artifactId>
190         <version>${jacoco.version}</version>
191         <executions>
192           <execution>
193             <goals>
194               <goal>prepare-agent</goal>
195             </goals>
196           </execution>
197           <execution>
198             <id>report</id>
199             <goals>
200               <goal>check</goal>
201               <goal>report</goal>
202             </goals>
203             <phase>prepare-package</phase>
204             <configuration>
205               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
206               <haltOnFailure>false</haltOnFailure>
207               <check>
208                 <classRatio>80</classRatio>
209               </check>
210             </configuration>
211           </execution>
212         </executions>
213       </plugin>
214
215     </plugins>
216   </build>
217
218   <profiles>
219     <profile>
220       <id>integrationtests</id>
221       <activation>
222         <activeByDefault>false</activeByDefault>
223       </activation>
224       <modules>
225         <module>yang-jmx-generator-it</module>
226       </modules>
227     </profile>
228   </profiles>
229 </project>