efc84237b5ba202b0806bfa2e34db3a94e0d7a20
[controller.git] / opendaylight / md-sal / 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     <groupId>org.opendaylight.controller</groupId>
5     <artifactId>sal-parent</artifactId>
6     <version>1.0-SNAPSHOT</version>
7     <packaging>pom</packaging>
8     <scm>
9         <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
10         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
11         <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
12     </scm>
13
14     <modules>
15         <!-- Common APIs & Implementation -->
16         <module>sal-common</module>
17         <module>sal-common-api</module>
18         <module>sal-common-impl</module>
19         <module>sal-common-util</module>
20
21         <!-- Binding Independent -->
22         <module>sal-dom-api</module>
23         <module>sal-dom-broker</module>
24         <module>sal-dom-spi</module>
25
26         <!-- Binding Aware -->
27         <module>sal-binding-api</module>
28         <module>sal-binding-config</module>
29         <module>sal-binding-broker</module>
30
31         <module>sal-binding-util</module>
32         <module>sal-binding-dom-it</module>
33
34         <!-- Samples -->
35         <module>samples</module>
36
37         <!-- Base Models -->
38         <module>model</module>
39
40
41         <!-- Connectors -->
42         <module>sal-connector-api</module>
43         <module>sal-rest-connector</module>
44         <module>sal-netconf-connector</module>
45
46         <module>remoterpc-routingtable/implementation</module>
47         <module>sal-remoterpc-connector/implementation</module>
48         <!-- Clustered Data Store -->
49         <module>clustered-data-store/implementation</module>
50
51         <module>inventory-manager</module>
52         <module>statistics-manager</module>
53         <module>topology-manager</module>
54         <module>forwardingrules-manager</module>
55         <module>topology-lldp-discovery</module>
56
57         <!-- Compability Packages -->
58         <module>compatibility</module>
59     </modules>
60
61
62     <profiles>
63         <profile>
64             <id>integrationtests</id>
65             <activation>
66                 <activeByDefault>false</activeByDefault>
67             </activation>
68             <modules>
69                 <module>sal-binding-it</module>
70                 <module>clustered-data-store/integrationtest</module>
71                 <!--module>zeromq-routingtable/integrationtest</module -->
72                 <!--module>sal-remoterpc-connector/integrationtest</module -->
73                 <!--module>test/sal-rest-connector-it</modulei -->
74             </modules>
75         </profile>
76         <profile>
77             <id>IDE</id>
78             <activation>
79                 <property>
80                     <name>m2e.version</name>
81                 </property>
82             </activation>
83             <build>
84                 <!-- Put the IDE's build output in a folder other than target, 
85                     so that IDE builds don't interact with Maven builds -->
86                 <directory>target-ide</directory>
87             </build>
88         </profile>
89     </profiles>
90
91     <properties>
92         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
93         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
94         <!-- Java Versions -->
95         <maven.compiler.source>1.7</maven.compiler.source>
96         <maven.compiler.target>1.7</maven.compiler.target>
97
98         <!-- Plugin Versions -->
99         <bundle.plugin.version>2.4.0</bundle.plugin.version>
100         <releaseplugin.version>2.3.2</releaseplugin.version>
101
102         <!-- Dependency Versions -->
103         <slf4j.version>1.7.2</slf4j.version>
104         <yang.version>0.5.9-SNAPSHOT</yang.version>
105         <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
106         <yang.codegen.version>0.6.0-SNAPSHOT</yang.codegen.version>
107         <guava.version>14.0.1</guava.version>
108         <osgi.core.version>5.0.0</osgi.core.version>
109         <junit.version>4.8.1</junit.version>
110         <powermock.version>1.5.1</powermock.version>
111         <mockito.version>1.9.5</mockito.version>
112         <xtend.version>2.4.3</xtend.version>
113         <maven.clean.plugin.version>2.5</maven.clean.plugin.version>
114         <jacoco.version>0.5.3.201107060350</jacoco.version>
115         <sal.version>0.5.1-SNAPSHOT</sal.version>  <!-- AD Sal version -->
116
117         <!-- Sonar properties using jacoco to retrieve integration test results -->
118         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
119         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
120         <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
121         <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
122         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
123         <sonar.branch>${user.name}-private-view</sonar.branch>
124         <sonar.language>java</sonar.language>
125         <exam.version>3.0.0</exam.version>
126     </properties>
127
128     <pluginRepositories>
129         <!-- OpenDayLight Repo Mirror -->
130         <pluginRepository>
131             <id>opendaylight-mirror</id>
132             <name>opendaylight-mirror</name>
133             <url>${nexusproxy}/groups/public/</url>
134             <snapshots>
135                 <enabled>false</enabled>
136             </snapshots>
137             <releases>
138                 <enabled>true</enabled>
139                 <updatePolicy>never</updatePolicy>
140             </releases>
141         </pluginRepository>
142         <!-- OpenDayLight Snapshot artifact -->
143         <pluginRepository>
144             <id>opendaylight-snapshot</id>
145             <name>opendaylight-snapshot</name>
146             <url> ${nexusproxy}/repositories/opendaylight.snapshot/</url>
147             <snapshots>
148                 <enabled>true</enabled>
149             </snapshots>
150             <releases>
151                 <enabled>false</enabled>
152             </releases>
153         </pluginRepository>
154     </pluginRepositories>
155
156
157     <repositories>
158         <!-- OpenDayLight Repo Mirror -->
159         <repository>
160             <id>opendaylight-mirror</id>
161             <name>opendaylight-mirror</name>
162             <url>${nexusproxy}/groups/public/</url>
163             <snapshots>
164                 <enabled>false</enabled>
165             </snapshots>
166             <releases>
167                 <enabled>true</enabled>
168                 <updatePolicy>never</updatePolicy>
169             </releases>
170         </repository>
171         <!-- OpenDayLight Snapshot artifact -->
172         <repository>
173             <id>opendaylight-snapshot</id>
174             <name>opendaylight-snapshot</name>
175             <url> ${nexusproxy}/repositories/opendaylight.snapshot/</url>
176             <snapshots>
177                 <enabled>true</enabled>
178             </snapshots>
179             <releases>
180                 <enabled>false</enabled>
181             </releases>
182         </repository>
183     </repositories>
184
185     <distributionManagement>
186         <!-- OpenDayLight Released artifact -->
187         <repository>
188             <id>opendaylight-release</id>
189             <url>${nexusproxy}/repositories/opendaylight.release/</url>
190         </repository>
191         <!-- OpenDayLight Snapshot artifact -->
192         <snapshotRepository>
193             <id>opendaylight-snapshot</id>
194             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
195         </snapshotRepository>
196         <!-- Site deployment -->
197         <site>
198             <id>website</id>
199             <url>${sitedeploy}</url>
200         </site>
201     </distributionManagement>
202
203
204     <dependencyManagement>
205         <dependencies>
206             <dependency>
207                 <groupId>xml-apis</groupId>
208                 <artifactId>xml-apis</artifactId>
209                 <version>1.4.01</version>
210             </dependency>
211
212             <!-- YANG Tools Dependencies -->
213             <dependency>
214                 <groupId>org.opendaylight.yangtools</groupId>
215                 <artifactId>yang-binding</artifactId>
216                 <version>${yang.binding.version}</version>
217             </dependency>
218             <dependency>
219                 <groupId>org.opendaylight.yangtools</groupId>
220                 <artifactId>yang-common</artifactId>
221                 <version>${yang.version}</version>
222             </dependency>
223             <dependency>
224                 <groupId>org.opendaylight.yangtools</groupId>
225                 <artifactId>yang-data-api</artifactId>
226                 <version>${yang.version}</version>
227             </dependency>
228             <dependency>
229                 <groupId>org.opendaylight.yangtools</groupId>
230                 <artifactId>yang-data-impl</artifactId>
231                 <version>${yang.version}</version>
232             </dependency>
233             <dependency>
234                 <groupId>org.opendaylight.yangtools</groupId>
235                 <artifactId>yang-model-api</artifactId>
236                 <version>${yang.version}</version>
237             </dependency>
238             <dependency>
239                 <groupId>org.opendaylight.yangtools</groupId>
240                 <artifactId>yang-data-util</artifactId>
241                 <version>${yang.version}</version>
242             </dependency>
243             <!-- SAL Dependencies -->
244             <dependency>
245                 <groupId>${project.groupId}</groupId>
246                 <artifactId>sal-connector-api</artifactId>
247                 <version>${project.version}</version>
248             </dependency>
249             <dependency>
250                 <groupId>org.opendaylight.controller</groupId>
251                 <artifactId>sal</artifactId>
252                 <version>${sal.version}</version>
253                 <exclusions>
254                     <exclusion>
255                         <groupId>org.osgi</groupId>
256                         <artifactId>org.osgi.compendium</artifactId>
257                     </exclusion>
258                 </exclusions>
259             </dependency>
260
261             <!-- Supporting Libraries -->
262             <dependency>
263                 <groupId>org.slf4j</groupId>
264                 <artifactId>slf4j-api</artifactId>
265                 <version>${slf4j.version}</version>
266             </dependency>
267             <dependency>
268                 <groupId>com.google.guava</groupId>
269                 <artifactId>guava</artifactId>
270                 <version>${guava.version}</version>
271             </dependency>
272             <dependency>
273                 <groupId>org.eclipse.xtend</groupId>
274                 <artifactId>org.eclipse.xtend.lib</artifactId>
275                 <version>${xtend.version}</version>
276             </dependency>
277             <dependency>
278                 <groupId>org.osgi</groupId>
279                 <artifactId>org.osgi.core</artifactId>
280                 <version>${osgi.core.version}</version>
281             </dependency>
282             <!-- Testing Dependencies -->
283             <dependency>
284                 <groupId>junit</groupId>
285                 <artifactId>junit</artifactId>
286                 <version>${junit.version}</version>
287                 <scope>test</scope>
288             </dependency>
289             <dependency>
290                 <groupId>org.mockito</groupId>
291                 <artifactId>mockito-all</artifactId>
292                 <version>${mockito.version}</version>
293                 <scope>test</scope>
294             </dependency>
295             <dependency>
296                 <groupId>org.powermock</groupId>
297                 <artifactId>powermock-module-junit4</artifactId>
298                 <version>${powermock.version}</version>
299                 <scope>test</scope>
300             </dependency>
301             <dependency>
302                 <groupId>org.powermock</groupId>
303                 <artifactId>powermock-api-mockito</artifactId>
304                 <version>${powermock.version}</version>
305                 <scope>test</scope>
306             </dependency>
307             <dependency>
308                 <groupId>org.powermock</groupId>
309                 <artifactId>powermock-core</artifactId>
310                 <version>${powermock.version}</version>
311                 <scope>test</scope>
312             </dependency>
313         </dependencies>
314     </dependencyManagement>
315     <build>
316         <pluginManagement>
317             <plugins>
318                 <plugin>
319                     <groupId>org.apache.maven.plugins</groupId>
320                     <artifactId>maven-release-plugin</artifactId>
321                     <version>${releaseplugin.version}</version>
322                 </plugin>
323                 <plugin>
324                     <groupId>org.apache.felix</groupId>
325                     <artifactId>maven-bundle-plugin</artifactId>
326                     <version>${bundle.plugin.version}</version>
327                     <extensions>true</extensions>
328                     <!--executions> <execution> <id>bundle-manifest</id> 
329                         <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> 
330                         </executions -->
331                     <configuration>
332                         <instructions>
333                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
334                         </instructions>
335                         <manifestLocation>${project.basedir}/META-INF</manifestLocation>
336                     </configuration>
337                 </plugin>
338                 <plugin>
339                     <groupId>org.eclipse.xtend</groupId>
340                     <artifactId>xtend-maven-plugin</artifactId>
341                     <version>${xtend.version}</version>
342                     <executions>
343                         <execution>
344                             <goals>
345                                 <goal>compile</goal>
346                             </goals>
347                             <configuration>
348                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
349                             </configuration>
350                         </execution>
351                     </executions>
352                 </plugin>
353                 <plugin>
354                     <artifactId>maven-clean-plugin</artifactId>
355                     <version>${maven.clean.plugin.version}</version>
356                     <configuration>
357                         <filesets>
358                             <fileset>
359                                 <directory>${basedir}/src/main/xtend-gen</directory>
360                                 <includes>
361                                     <include>**</include>
362                                 </includes>
363                             </fileset>
364                         </filesets>
365                     </configuration>
366                 </plugin>
367                 <plugin>
368                     <groupId>org.jacoco</groupId>
369                     <artifactId>jacoco-maven-plugin</artifactId>
370                     <version>${jacoco.version}</version>
371                 </plugin>
372                 <!--This plugin's configuration is used to store Eclipse 
373                     m2e settings only. It has no influence on the Maven build itself. -->
374                 <plugin>
375                     <groupId>org.eclipse.m2e</groupId>
376                     <artifactId>lifecycle-mapping</artifactId>
377                     <version>1.0.0</version>
378                     <configuration>
379                         <lifecycleMappingMetadata>
380                             <pluginExecutions>
381                                 <pluginExecution>
382                                     <pluginExecutionFilter>
383                                         <groupId>org.opendaylight.yangtools</groupId>
384                                         <artifactId>yang-maven-plugin</artifactId>
385                                         <versionRange>[0,)</versionRange>
386                                         <goals>
387                                             <goal>generate-sources</goal>
388                                         </goals>
389                                     </pluginExecutionFilter>
390                                     <action>
391                                         <ignore />
392                                     </action>
393                                 </pluginExecution>
394                                 <pluginExecution>
395                                     <pluginExecutionFilter>
396                                         <groupId>net.alchim31.maven</groupId>
397                                         <artifactId>scala-maven-plugin</artifactId>
398                                         <versionRange>[0,)</versionRange>
399                                         <goals>
400                                             <goal>compile</goal>
401                                             <goal>testCompile</goal>
402                                         </goals>
403                                     </pluginExecutionFilter>
404                                     <action>
405                                         <ignore />
406                                     </action>
407                                 </pluginExecution>
408                                 <pluginExecution>
409                                     <pluginExecutionFilter>
410                                         <groupId>org.jacoco</groupId>
411                                         <artifactId>jacoco-maven-plugin</artifactId>
412                                         <versionRange>[0,)</versionRange>
413                                         <goals>
414                                             <goal>prepare-agent</goal>
415                                         </goals>
416                                     </pluginExecutionFilter>
417                                     <action>
418                                         <ignore />
419                                     </action>
420                                 </pluginExecution>
421                             </pluginExecutions>
422                         </lifecycleMappingMetadata>
423                     </configuration>
424                 </plugin>
425             </plugins>
426
427         </pluginManagement>
428         <plugins>
429             <plugin>
430                 <groupId>org.apache.felix</groupId>
431                 <artifactId>maven-bundle-plugin</artifactId>
432             </plugin>
433             <plugin>
434                 <groupId>org.codehaus.mojo</groupId>
435                 <artifactId>build-helper-maven-plugin</artifactId>
436                 <version>1.8</version>
437                 <executions>
438                     <execution>
439                         <id>add-source</id>
440                         <phase>generate-sources</phase>
441                         <goals>
442                             <goal>add-source</goal>
443                         </goals>
444                         <configuration>
445                             <sources>
446                                 <source>${project.build.directory}/generated-sources/config</source>
447                                 <source>${project.build.directory}/generated-sources/sal</source>
448                             </sources>
449                         </configuration>
450                     </execution>
451                 </executions>
452             </plugin>
453             <plugin>
454                 <groupId>org.apache.maven.plugins</groupId>
455                 <artifactId>maven-jar-plugin</artifactId>
456                 <version>2.4</version>
457             </plugin>
458             <plugin>
459                 <groupId>org.apache.maven.plugins</groupId>
460                 <artifactId>maven-javadoc-plugin</artifactId>
461                 <version>2.8.1</version>
462                 <configuration>
463                     <stylesheet>maven</stylesheet>
464                     <failOnError>false</failOnError>
465                 </configuration>
466                 <executions>
467                     <execution>
468                         <goals>
469                             <goal>aggregate</goal>
470                         </goals>
471                         <phase>site</phase>
472                     </execution>
473                 </executions>
474             </plugin>
475         </plugins>
476     </build>
477     <reporting>
478         <plugins>
479             <plugin>
480                 <groupId>org.codehaus.mojo</groupId>
481                 <artifactId>findbugs-maven-plugin</artifactId>
482                 <version>2.4.0</version>
483                 <configuration>
484                     <effort>Max</effort>
485                     <threshold>Low</threshold>
486                     <goal>site</goal>
487                 </configuration>
488             </plugin>
489             <plugin>
490                 <groupId>org.codehaus.mojo</groupId>
491                 <artifactId>jdepend-maven-plugin</artifactId>
492                 <version>2.0-beta-2</version>
493             </plugin>
494         </plugins>
495     </reporting>
496 </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.