1812fbb4493e2d7583179fb384f9843da60ec6e3
[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.1-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>config-persister-api</module>
26         <module>config-persister-file-adapter</module>
27         <module>yang-jmx-generator</module>
28         <module>yang-jmx-generator-plugin</module>
29         <module>yang-jmx-generator-it</module>
30         <module>yang-store-api</module>
31         <module>yang-store-impl</module>
32         <module>yang-test</module>
33         <module>logback-config</module>
34     </modules>
35     <properties>
36         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37         <java.version.source>1.7</java.version.source>
38         <java.version.target>1.7</java.version.target>
39         <junit.version>4.10</junit.version>
40         <maven.bundle.version>2.3.7</maven.bundle.version>
41         <osgi.version>5.0.0</osgi.version>
42         <jacoco.version>0.6.2.201302030002</jacoco.version>
43         <slf4j.version>1.7.2</slf4j.version>
44         <jolokia.version>1.1.1</jolokia.version>
45         <opendaylight.yang.version>0.5.9-SNAPSHOT</opendaylight.yang.version>
46         <opendaylight.binding.version>0.6.0-SNAPSHOT</opendaylight.binding.version>
47         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
48     </properties>
49
50     <dependencies>
51         <dependency>
52             <groupId>junit</groupId>
53             <artifactId>junit</artifactId>
54             <scope>test</scope>
55         </dependency>
56         <dependency>
57             <groupId>ch.qos.logback</groupId>
58             <artifactId>logback-classic</artifactId>
59             <version>${logback.version}</version>
60             <scope>test</scope>
61         </dependency>
62     </dependencies>
63
64     <dependencyManagement>
65         <dependencies>
66             <dependency>
67                 <groupId>org.slf4j</groupId>
68                 <artifactId>slf4j-api</artifactId>
69                 <version>${slf4j.version}</version>
70             </dependency>
71             <dependency>
72                 <groupId>org.osgi</groupId>
73                 <artifactId>org.osgi.core</artifactId>
74                 <version>${osgi.version}</version>
75             </dependency>
76             <dependency>
77                 <groupId>com.google.code.findbugs</groupId>
78                 <artifactId>jsr305</artifactId>
79                 <version>2.0.1</version>
80             </dependency>
81             <dependency>
82                 <groupId>commons-io</groupId>
83                 <artifactId>commons-io</artifactId>
84                 <version>2.4</version>
85             </dependency>
86             <dependency>
87                 <groupId>com.google.guava</groupId>
88                 <artifactId>guava</artifactId>
89                 <version>14.0.1</version>
90             </dependency>
91             <dependency>
92                 <groupId>org.jolokia</groupId>
93                 <artifactId>jolokia-core</artifactId>
94                 <version>${jolokia.version}</version>
95             </dependency>
96             <dependency>
97                 <groupId>org.jolokia</groupId>
98                 <artifactId>jolokia-jvm</artifactId>
99                 <version>${jolokia.version}</version>
100                 <classifier>agent</classifier>
101             </dependency>
102             <dependency>
103                 <groupId>org.jolokia</groupId>
104                 <artifactId>jolokia-client-java</artifactId>
105                 <version>${jolokia.version}</version>
106             </dependency>
107             <dependency>
108                 <groupId>junit</groupId>
109                 <artifactId>junit</artifactId>
110                 <version>${junit.version}</version>
111             </dependency>
112             <dependency>
113                 <groupId>org.apache.commons</groupId>
114                 <artifactId>commons-lang3</artifactId>
115                 <version>${commons.lang.version}</version>
116             </dependency>
117         </dependencies>
118     </dependencyManagement>
119
120
121     <build>
122         <plugins>
123             <plugin>
124                 <groupId>org.apache.maven.plugins</groupId>
125                 <artifactId>maven-compiler-plugin</artifactId>
126                 <version>2.5.1</version>
127                 <configuration>
128                     <source>${java.version.source}</source>
129                     <target>${java.version.target}</target>
130                     <testSource>${java.version.source}</testSource>
131                     <testTarget>${java.version.target}</testTarget>
132                 </configuration>
133             </plugin>
134             <plugin>
135                 <groupId>org.jacoco</groupId>
136                 <artifactId>jacoco-maven-plugin</artifactId>
137                 <version>${jacoco.version}</version>
138                 <executions>
139                     <execution>
140                         <goals>
141                             <goal>prepare-agent</goal>
142                         </goals>
143                     </execution>
144                     <execution>
145                         <id>report</id>
146                         <phase>prepare-package</phase>
147                         <goals>
148                             <goal>check</goal>
149                             <goal>report</goal>
150                         </goals>
151                         <configuration>
152                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
153                             <haltOnFailure>false</haltOnFailure>
154                             <check>
155                                 <classRatio>80</classRatio>
156                             </check>
157                         </configuration>
158                     </execution>
159                 </executions>
160             </plugin>
161             <plugin>
162                 <groupId>org.apache.maven.plugins</groupId>
163                 <artifactId>maven-surefire-plugin</artifactId>
164             </plugin>
165             <plugin>
166                 <groupId>org.codehaus.mojo</groupId>
167                 <artifactId>build-helper-maven-plugin</artifactId>
168             </plugin>
169         </plugins>
170         <pluginManagement>
171             <plugins>
172                 <plugin>
173                     <groupId>org.opendaylight.yangtools</groupId>
174                     <artifactId>yang-maven-plugin</artifactId>
175                     <version>${opendaylight.yang.version}</version>
176                     <executions>
177                         <execution>
178                             <goals>
179                                 <goal>generate-sources</goal>
180                             </goals>
181                             <configuration>
182                                 <codeGenerators>
183                                     <generator>
184                                         <codeGeneratorClass>
185                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
186                                         </codeGeneratorClass>
187                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
188                                         <additionalConfiguration>
189                                             <namespaceToPackage1>
190                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
191                                             </namespaceToPackage1>
192                                         </additionalConfiguration>
193                                     </generator>
194                                 </codeGenerators>
195                                 <inspectDependencies>true</inspectDependencies>
196                             </configuration>
197                         </execution>
198                     </executions>
199                     <dependencies>
200                         <dependency>
201                             <groupId>org.opendaylight.controller</groupId>
202                             <artifactId>yang-jmx-generator-plugin</artifactId>
203                             <version>0.2.1-SNAPSHOT</version>
204                         </dependency>
205                     </dependencies>
206                 </plugin>
207                 <!-- tell eclipse about generated source folders -->
208                 <plugin>
209                     <groupId>org.codehaus.mojo</groupId>
210                     <artifactId>build-helper-maven-plugin</artifactId>
211                     <version>1.8</version>
212                     <executions>
213                         <execution>
214                             <id>add-source</id>
215                             <phase>generate-sources</phase>
216                             <goals>
217                                 <goal>add-source</goal>
218                             </goals>
219                             <configuration>
220                                 <sources>
221                                     <source>${jmxGeneratorPath}</source>
222                                 </sources>
223                             </configuration>
224                         </execution>
225                     </executions>
226                 </plugin>
227                 <plugin>
228                     <groupId>org.apache.maven.plugins</groupId>
229                     <artifactId>maven-jar-plugin</artifactId>
230                     <version>2.4</version>
231                     <executions>
232                         <execution>
233                             <phase>package</phase>
234                             <goals>
235                                 <goal>test-jar</goal>
236                             </goals>
237                         </execution>
238                     </executions>
239                 </plugin>
240                 <plugin>
241                     <groupId>org.apache.felix</groupId>
242                     <artifactId>maven-bundle-plugin</artifactId>
243                     <version>${maven.bundle.version}</version>
244                     <extensions>true</extensions>
245                     <configuration>
246                         <instructions>
247                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
248                         </instructions>
249                     </configuration>
250                 </plugin>
251                 <plugin>
252                     <groupId>org.apache.maven.plugins</groupId>
253                     <artifactId>maven-surefire-plugin</artifactId>
254                     <version>2.14.1</version>
255                     <configuration>
256                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
257                         <parallel>classes</parallel>
258                         <forkCount>1C</forkCount>
259                         <reuseForks>false</reuseForks>
260                         <perCoreThreadCount>true</perCoreThreadCount>
261                         <threadCount>2</threadCount>
262                     </configuration>
263                 </plugin>
264                 <plugin>
265                     <groupId>org.apache.maven.plugins</groupId>
266                     <artifactId>maven-antrun-plugin</artifactId>
267                     <version>1.3</version>
268                 </plugin>
269                 <plugin>
270                     <groupId>org.codehaus.groovy.maven</groupId>
271                     <artifactId>gmaven-plugin</artifactId>
272                     <version>1.0</version>
273                 </plugin>
274                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
275                 <plugin>
276                     <groupId>org.eclipse.m2e</groupId>
277                     <artifactId>lifecycle-mapping</artifactId>
278                     <version>1.0.0</version>
279                     <configuration>
280                         <lifecycleMappingMetadata>
281                             <pluginExecutions>
282                                 <pluginExecution>
283                                     <pluginExecutionFilter>
284                                         <groupId>
285                                             org.opendaylight.yangtools
286                                         </groupId>
287                                         <artifactId>
288                                             yang-maven-plugin
289                                         </artifactId>
290                                         <versionRange>
291                                             [0.5.7-SNAPSHOT,)
292                                         </versionRange>
293                                         <goals>
294                                             <goal>
295                                                 generate-sources
296                                             </goal>
297                                         </goals>
298                                     </pluginExecutionFilter>
299                                     <action>
300                                         <ignore></ignore>
301                                     </action>
302                                 </pluginExecution>
303                             </pluginExecutions>
304                         </lifecycleMappingMetadata>
305                     </configuration>
306                 </plugin>
307             </plugins>
308         </pluginManagement>
309     </build>
310
311     <pluginRepositories>
312         <pluginRepository>
313             <id>nexus.opendaylight.org</id>
314             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release</url>
315             <releases>
316                 <enabled>true</enabled>
317             </releases>
318             <snapshots>
319                 <updatePolicy>daily</updatePolicy>
320             </snapshots>
321         </pluginRepository>
322     </pluginRepositories>
323
324     <repositories>
325         <repository>
326             <id>opendaylight-snapshot</id>
327             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
328             <snapshots>
329                 <updatePolicy>daily</updatePolicy>
330             </snapshots>
331         </repository>
332     </repositories>
333 </project>