7607fb77933dd27490537d697aed03209af0d63e
[controller.git] / opendaylight / config / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2          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.0-SNAPSHOT</version>
9         <relativePath>../commons/opendaylight</relativePath>
10     </parent>
11
12
13     <groupId>org.opendaylight.controller</groupId>
14     <version>0.2.1-SNAPSHOT</version>
15     <artifactId>config-subsystem</artifactId>
16     <packaging>pom</packaging>
17     <name>${project.artifactId}</name>
18     <prerequisites>
19         <maven>3.0.4</maven>
20     </prerequisites>
21     <modules>
22         <module>config-api</module>
23         <module>config-manager</module>
24         <module>config-util</module>
25         <module>yang-jmx-generator</module>
26         <module>yang-jmx-generator-plugin</module>
27         <module>yang-jmx-generator-it</module>
28         <module>yang-store-api</module>
29         <module>yang-store-impl</module>
30         <module>yang-test</module>
31     </modules>
32     <properties>
33         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34         <java.version.source>1.7</java.version.source>
35         <java.version.target>1.7</java.version.target>
36         <junit.version>4.10</junit.version>
37         <maven.bundle.version>2.3.7</maven.bundle.version>
38         <osgi.version>5.0.0</osgi.version>
39         <jacoco.version>0.6.2.201302030002</jacoco.version>
40         <slf4j.version>1.7.2</slf4j.version>
41         <jolokia.version>1.1.1</jolokia.version>
42         <opendaylight.yang.version>0.5.7-SNAPSHOT</opendaylight.yang.version>
43         <opendaylight.binding.version>0.5.7-SNAPSHOT</opendaylight.binding.version>
44         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
45     </properties>
46
47     <dependencies>
48         <dependency>
49             <groupId>junit</groupId>
50             <artifactId>junit</artifactId>
51             <scope>test</scope>
52         </dependency>
53         <dependency>
54             <groupId>ch.qos.logback</groupId>
55             <artifactId>logback-classic</artifactId>
56             <version>${logback.version}</version>
57             <scope>test</scope>
58         </dependency>
59     </dependencies>
60
61     <dependencyManagement>
62         <dependencies>
63             <dependency>
64                 <groupId>org.slf4j</groupId>
65                 <artifactId>slf4j-api</artifactId>
66                 <version>${slf4j.version}</version>
67             </dependency>
68             <dependency>
69                 <groupId>org.osgi</groupId>
70                 <artifactId>org.osgi.core</artifactId>
71                 <version>${osgi.version}</version>
72             </dependency>
73             <dependency>
74                 <groupId>com.google.code.findbugs</groupId>
75                 <artifactId>jsr305</artifactId>
76                 <version>2.0.1</version>
77             </dependency>
78             <dependency>
79                 <groupId>commons-io</groupId>
80                 <artifactId>commons-io</artifactId>
81                 <version>2.4</version>
82             </dependency>
83             <dependency>
84                 <groupId>com.google.guava</groupId>
85                 <artifactId>guava</artifactId>
86                 <version>14.0.1</version>
87             </dependency>
88             <dependency>
89                 <groupId>org.jolokia</groupId>
90                 <artifactId>jolokia-core</artifactId>
91                 <version>${jolokia.version}</version>
92             </dependency>
93             <dependency>
94                 <groupId>org.jolokia</groupId>
95                 <artifactId>jolokia-jvm</artifactId>
96                 <version>${jolokia.version}</version>
97                 <classifier>agent</classifier>
98             </dependency>
99             <dependency>
100                 <groupId>org.jolokia</groupId>
101                 <artifactId>jolokia-client-java</artifactId>
102                 <version>${jolokia.version}</version>
103             </dependency>
104             <dependency>
105                 <groupId>junit</groupId>
106                 <artifactId>junit</artifactId>
107                 <version>${junit.version}</version>
108             </dependency>
109             <dependency>
110                 <groupId>org.apache.commons</groupId>
111                 <artifactId>commons-lang3</artifactId>
112                 <version>${commons.lang.version}</version>
113             </dependency>
114         </dependencies>
115     </dependencyManagement>
116
117
118     <build>
119         <plugins>
120             <plugin>
121                 <groupId>org.apache.maven.plugins</groupId>
122                 <artifactId>maven-compiler-plugin</artifactId>
123                 <version>2.5.1</version>
124                 <configuration>
125                     <source>${java.version.source}</source>
126                     <target>${java.version.target}</target>
127                     <testSource>${java.version.source}</testSource>
128                     <testTarget>${java.version.target}</testTarget>
129                 </configuration>
130             </plugin>
131             <plugin>
132                 <groupId>org.jacoco</groupId>
133                 <artifactId>jacoco-maven-plugin</artifactId>
134                 <version>${jacoco.version}</version>
135                 <executions>
136                     <execution>
137                         <goals>
138                             <goal>prepare-agent</goal>
139                         </goals>
140                     </execution>
141                     <execution>
142                         <id>report</id>
143                         <phase>prepare-package</phase>
144                         <goals>
145                             <goal>check</goal>
146                             <goal>report</goal>
147                         </goals>
148                         <configuration>
149                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
150                             <haltOnFailure>false</haltOnFailure>
151                             <check>
152                                 <classRatio>80</classRatio>
153                             </check>
154                         </configuration>
155                     </execution>
156                 </executions>
157             </plugin>
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-surefire-plugin</artifactId>
161             </plugin>
162             <plugin>
163                 <groupId>org.codehaus.mojo</groupId>
164                 <artifactId>build-helper-maven-plugin</artifactId>
165             </plugin>
166         </plugins>
167         <pluginManagement>
168             <plugins>
169                 <plugin>
170                     <groupId>org.opendaylight.yangtools</groupId>
171                     <artifactId>yang-maven-plugin</artifactId>
172                     <version>${opendaylight.yang.version}</version>
173                     <executions>
174                         <execution>
175                             <goals>
176                                 <goal>generate-sources</goal>
177                             </goals>
178                             <configuration>
179                                 <codeGenerators>
180                                     <generator>
181                                         <codeGeneratorClass>
182                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
183                                         </codeGeneratorClass>
184                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
185                                         <additionalConfiguration>
186                                             <namespaceToPackage1>
187                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
188                                             </namespaceToPackage1>
189                                         </additionalConfiguration>
190                                     </generator>
191                                 </codeGenerators>
192                                 <inspectDependencies>true</inspectDependencies>
193                             </configuration>
194                         </execution>
195                     </executions>
196                     <dependencies>
197                         <dependency>
198                             <groupId>org.opendaylight.controller</groupId>
199                             <artifactId>yang-jmx-generator-plugin</artifactId>
200                             <version>0.2.1-SNAPSHOT</version>
201                         </dependency>
202                     </dependencies>
203                 </plugin>
204                 <!-- tell eclipse about generated source folders -->
205                 <plugin>
206                     <groupId>org.codehaus.mojo</groupId>
207                     <artifactId>build-helper-maven-plugin</artifactId>
208                     <version>1.8</version>
209                     <executions>
210                         <execution>
211                             <id>add-source</id>
212                             <phase>generate-sources</phase>
213                             <goals>
214                                 <goal>add-source</goal>
215                             </goals>
216                             <configuration>
217                                 <sources>
218                                     <source>${jmxGeneratorPath}</source>
219                                 </sources>
220                             </configuration>
221                         </execution>
222                     </executions>
223                 </plugin>
224                 <plugin>
225                     <groupId>org.apache.maven.plugins</groupId>
226                     <artifactId>maven-jar-plugin</artifactId>
227                     <version>2.4</version>
228                     <executions>
229                         <execution>
230                             <phase>package</phase>
231                             <goals>
232                                 <goal>test-jar</goal>
233                             </goals>
234                         </execution>
235                     </executions>
236                 </plugin>
237                 <plugin>
238                     <groupId>org.apache.felix</groupId>
239                     <artifactId>maven-bundle-plugin</artifactId>
240                     <version>${maven.bundle.version}</version>
241                     <extensions>true</extensions>
242                     <configuration>
243                         <instructions>
244                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
245                         </instructions>
246                     </configuration>
247                 </plugin>
248                 <plugin>
249                     <groupId>org.apache.maven.plugins</groupId>
250                     <artifactId>maven-surefire-plugin</artifactId>
251                     <version>2.14.1</version>
252                     <configuration>
253                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
254                         <parallel>classes</parallel>
255                         <forkCount>1C</forkCount>
256                         <reuseForks>false</reuseForks>
257                         <perCoreThreadCount>true</perCoreThreadCount>
258                         <threadCount>2</threadCount>
259                     </configuration>
260                 </plugin>
261                 <plugin>
262                     <groupId>org.apache.maven.plugins</groupId>
263                     <artifactId>maven-antrun-plugin</artifactId>
264                     <version>1.3</version>
265                 </plugin>
266                 <plugin>
267                     <groupId>org.codehaus.groovy.maven</groupId>
268                     <artifactId>gmaven-plugin</artifactId>
269                     <version>1.0</version>
270                 </plugin>
271             </plugins>
272         </pluginManagement>
273     </build>
274
275     <pluginRepositories>
276         <pluginRepository>
277             <id>nexus.opendaylight.org</id>
278             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
279             <releases>
280                 <enabled>true</enabled>
281             </releases>
282             <snapshots>
283                 <updatePolicy>daily</updatePolicy>
284             </snapshots>
285         </pluginRepository>
286     </pluginRepositories>
287
288     <repositories>
289         <repository>
290             <id>opendaylight-snapshot</id>
291             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
292             <snapshots>
293                 <updatePolicy>daily</updatePolicy>
294             </snapshots>
295         </repository>
296     </repositories>
297 </project>