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