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