Add release/snapshot property to repositories in poms
[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     <version>0.2.2-SNAPSHOT</version>
14     <artifactId>config-subsystem</artifactId>
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-util</module>
24         <module>config-persister-api</module>
25         <module>config-persister-file-adapter</module>
26         <module>yang-jmx-generator</module>
27         <module>yang-jmx-generator-plugin</module>
28         <module>yang-jmx-generator-it</module>
29         <module>yang-store-api</module>
30         <module>yang-store-impl</module>
31         <module>yang-test</module>
32         <module>logback-config</module>
33     </modules>
34     <properties>
35         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36         <java.version.source>1.7</java.version.source>
37         <java.version.target>1.7</java.version.target>
38         <junit.version>4.10</junit.version>
39         <maven.bundle.version>2.3.7</maven.bundle.version>
40         <osgi.version>5.0.0</osgi.version>
41         <jacoco.version>0.6.2.201302030002</jacoco.version>
42         <slf4j.version>1.7.2</slf4j.version>
43         <jolokia.version>1.1.1</jolokia.version>
44         <opendaylight.yang.version>0.5.9-SNAPSHOT</opendaylight.yang.version>
45         <opendaylight.binding.version>0.6.0-SNAPSHOT</opendaylight.binding.version>
46         <opendaylight.yangtools.version>0.1.1-SNAPSHOT</opendaylight.yangtools.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
118             <dependency>
119                 <groupId>${project.groupId}</groupId>
120                 <artifactId>config-api</artifactId>
121                 <version>${config.version}</version>
122             </dependency>
123
124             <dependency>
125                 <groupId>${project.groupId}</groupId>
126                 <artifactId>config-util</artifactId>
127                 <version>${config.version}</version>
128             </dependency>
129             <dependency>
130                 <groupId>${project.groupId}</groupId>
131                 <artifactId>config-util</artifactId>
132                 <version>${config.version}</version>
133                 <type>test-jar</type>
134             </dependency>
135             <dependency>
136                 <groupId>${project.groupId}</groupId>
137                 <artifactId>config-manager</artifactId>
138                 <version>${config.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>${project.groupId}</groupId>
142                 <artifactId>config-manager</artifactId>
143                 <version>${config.version}</version>
144                 <type>test-jar</type>
145             </dependency>
146             <dependency>
147                 <groupId>${project.groupId}</groupId>
148                 <artifactId>config-persister-api</artifactId>
149                 <version>${config.version}</version>
150             </dependency>
151             <dependency>
152                 <groupId>org.opendaylight.bgpcep</groupId>
153                 <artifactId>mockito-configuration</artifactId>
154                 <version>${bgpcep.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.yangtools</groupId>
158                 <artifactId>binding-generator-spi</artifactId>
159                 <version>${opendaylight.binding.version}</version>
160             </dependency>
161             <dependency>
162                 <groupId>org.opendaylight.yangtools</groupId>
163                 <artifactId>binding-generator-util</artifactId>
164                 <version>${opendaylight.binding.version}</version>
165             </dependency>
166             <dependency>
167                 <groupId>org.opendaylight.yangtools</groupId>
168                 <artifactId>yang-parser-impl</artifactId>
169                 <version>${opendaylight.yang.version}</version>
170             </dependency>
171             <dependency>
172                 <groupId>org.opendaylight.yangtools</groupId>
173                 <artifactId>binding-generator-impl</artifactId>
174                 <version>${opendaylight.binding.version}</version>
175             </dependency>
176             <dependency>
177                 <groupId>${project.groupId}</groupId>
178                 <artifactId>yang-test</artifactId>
179                 <version>${config.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.controller</groupId>
183                 <artifactId>yang-jmx-generator</artifactId>
184                 <version>${config.version}</version>
185             </dependency>
186             <dependency>
187                 <groupId>org.opendaylight.controller</groupId>
188                 <artifactId>yang-jmx-generator</artifactId>
189                 <version>${config.version}</version>
190                 <type>test-jar</type>
191             </dependency>
192             <dependency>
193                 <groupId>org.opendaylight.yangtools</groupId>
194                 <artifactId>binding-type-provider</artifactId>
195                 <version>${opendaylight.binding.version}</version>
196             </dependency>
197             <dependency>
198                 <groupId>org.opendaylight.yangtools</groupId>
199                 <artifactId>yang-maven-plugin-spi</artifactId>
200                 <version>${opendaylight.yang.version}</version>
201             </dependency>
202             <dependency>
203                 <groupId>${project.groupId}</groupId>
204                 <artifactId>yang-store-api</artifactId>
205                 <version>${config.version}</version>
206             </dependency>
207         </dependencies>
208     </dependencyManagement>
209
210
211     <build>
212         <plugins>
213             <plugin>
214                 <groupId>org.apache.maven.plugins</groupId>
215                 <artifactId>maven-compiler-plugin</artifactId>
216                 <version>2.5.1</version>
217                 <configuration>
218                     <source>${java.version.source}</source>
219                     <target>${java.version.target}</target>
220                     <testSource>${java.version.source}</testSource>
221                     <testTarget>${java.version.target}</testTarget>
222                 </configuration>
223             </plugin>
224             <plugin>
225                 <groupId>org.jacoco</groupId>
226                 <artifactId>jacoco-maven-plugin</artifactId>
227                 <version>${jacoco.version}</version>
228                 <executions>
229                     <execution>
230                         <goals>
231                             <goal>prepare-agent</goal>
232                         </goals>
233                     </execution>
234                     <execution>
235                         <id>report</id>
236                         <phase>prepare-package</phase>
237                         <goals>
238                             <goal>check</goal>
239                             <goal>report</goal>
240                         </goals>
241                         <configuration>
242                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
243                             <haltOnFailure>false</haltOnFailure>
244                             <check>
245                                 <classRatio>80</classRatio>
246                             </check>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251             <plugin>
252                 <groupId>org.apache.maven.plugins</groupId>
253                 <artifactId>maven-surefire-plugin</artifactId>
254             </plugin>
255             <plugin>
256                 <groupId>org.codehaus.mojo</groupId>
257                 <artifactId>build-helper-maven-plugin</artifactId>
258             </plugin>
259         </plugins>
260
261
262
263         <pluginManagement>
264             <plugins>
265                 <plugin>
266                     <groupId>org.opendaylight.yangtools</groupId>
267                     <artifactId>yang-maven-plugin</artifactId>
268                     <version>${opendaylight.yang.version}</version>
269                     <executions>
270                         <execution>
271                             <goals>
272                                 <goal>generate-sources</goal>
273                             </goals>
274                             <configuration>
275                                 <codeGenerators>
276                                     <generator>
277                                         <codeGeneratorClass>
278                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
279                                         </codeGeneratorClass>
280                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
281                                         <additionalConfiguration>
282                                             <namespaceToPackage1>
283                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
284                                             </namespaceToPackage1>
285                                         </additionalConfiguration>
286                                     </generator>
287                                 </codeGenerators>
288                                 <inspectDependencies>true</inspectDependencies>
289                             </configuration>
290                         </execution>
291                     </executions>
292                     <dependencies>
293                         <dependency>
294                             <groupId>org.opendaylight.controller</groupId>
295                             <artifactId>yang-jmx-generator-plugin</artifactId>
296                             <version>${config.version}</version>
297                         </dependency>
298                     </dependencies>
299                 </plugin>
300                 <!-- tell eclipse about generated source folders -->
301                 <plugin>
302                     <groupId>org.codehaus.mojo</groupId>
303                     <artifactId>build-helper-maven-plugin</artifactId>
304                     <version>1.8</version>
305                     <executions>
306                         <execution>
307                             <id>add-source</id>
308                             <phase>generate-sources</phase>
309                             <goals>
310                                 <goal>add-source</goal>
311                             </goals>
312                             <configuration>
313                                 <sources>
314                                     <source>${jmxGeneratorPath}</source>
315                                 </sources>
316                             </configuration>
317                         </execution>
318                     </executions>
319                 </plugin>
320                 <plugin>
321                     <groupId>org.apache.maven.plugins</groupId>
322                     <artifactId>maven-jar-plugin</artifactId>
323                     <version>2.4</version>
324                     <executions>
325                         <execution>
326                             <phase>package</phase>
327                             <goals>
328                                 <goal>test-jar</goal>
329                             </goals>
330                         </execution>
331                     </executions>
332                 </plugin>
333                 <plugin>
334                     <groupId>org.apache.felix</groupId>
335                     <artifactId>maven-bundle-plugin</artifactId>
336                     <version>${maven.bundle.version}</version>
337                     <extensions>true</extensions>
338                     <configuration>
339                         <instructions>
340                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
341                         </instructions>
342                     </configuration>
343                 </plugin>
344                 <plugin>
345                     <groupId>org.apache.maven.plugins</groupId>
346                     <artifactId>maven-surefire-plugin</artifactId>
347                     <version>2.14.1</version>
348                     <configuration>
349                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
350                         <parallel>classes</parallel>
351                         <forkCount>1C</forkCount>
352                         <reuseForks>false</reuseForks>
353                         <perCoreThreadCount>true</perCoreThreadCount>
354                         <threadCount>2</threadCount>
355                     </configuration>
356                 </plugin>
357                 <plugin>
358                     <groupId>org.apache.maven.plugins</groupId>
359                     <artifactId>maven-antrun-plugin</artifactId>
360                     <version>1.3</version>
361                 </plugin>
362                 <plugin>
363                     <groupId>org.codehaus.groovy.maven</groupId>
364                     <artifactId>gmaven-plugin</artifactId>
365                     <version>1.0</version>
366                 </plugin>
367                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
368                 <plugin>
369                     <groupId>org.eclipse.m2e</groupId>
370                     <artifactId>lifecycle-mapping</artifactId>
371                     <version>1.0.0</version>
372                     <configuration>
373                         <lifecycleMappingMetadata>
374                             <pluginExecutions>
375                                 <pluginExecution>
376                                     <pluginExecutionFilter>
377                                         <groupId>
378                                             org.opendaylight.yangtools
379                                         </groupId>
380                                         <artifactId>
381                                             yang-maven-plugin
382                                         </artifactId>
383                                         <versionRange>
384                                             [0.5.7-SNAPSHOT,)
385                                         </versionRange>
386                                         <goals>
387                                             <goal>
388                                                 generate-sources
389                                             </goal>
390                                         </goals>
391                                     </pluginExecutionFilter>
392                                     <action>
393                                         <ignore></ignore>
394                                     </action>
395                                 </pluginExecution>
396                             </pluginExecutions>
397                         </lifecycleMappingMetadata>
398                     </configuration>
399                 </plugin>
400             </plugins>
401         </pluginManagement>
402     </build>
403
404     <pluginRepositories>
405         <pluginRepository>
406             <id>nexus.opendaylight.org</id>
407             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release</url>
408             <releases>
409                 <enabled>true</enabled>
410             </releases>
411             <snapshots>
412                 <updatePolicy>daily</updatePolicy>
413             </snapshots>
414         </pluginRepository>
415     </pluginRepositories>
416
417     <repositories>
418         <repository>
419             <id>opendaylight-snapshot</id>
420             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
421             <snapshots>
422                 <updatePolicy>daily</updatePolicy>
423                 <enabled>true</enabled>
424             </snapshots>
425             <releases>
426                 <enabled>false</enabled>
427             </releases>
428         </repository>
429     </repositories>
430 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.