Remove powermock dependency from md-sal.
[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         <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
116         <!-- Sonar properties using jacoco to retrieve integration test results -->
117         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
118         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
119         <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
120         <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
121         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
122         <sonar.branch>${user.name}-private-view</sonar.branch>
123         <sonar.language>java</sonar.language>
124         <exam.version>3.0.0</exam.version>
125         <sal.version>0.7.0-SNAPSHOT</sal.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>${yangtools.version}</version>
217             </dependency>
218             <dependency>
219                 <groupId>org.opendaylight.yangtools</groupId>
220                 <artifactId>yang-model-util</artifactId>
221                 <version>${yangtools.version}</version>
222             </dependency>
223             <dependency>
224                 <groupId>org.opendaylight.yangtools</groupId>
225                 <artifactId>yang-common</artifactId>
226                 <version>${yangtools.version}</version>
227             </dependency>
228             <dependency>
229                 <groupId>org.opendaylight.yangtools</groupId>
230                 <artifactId>yang-data-api</artifactId>
231                 <version>${yangtools.version}</version>
232             </dependency>
233             <dependency>
234                 <groupId>org.opendaylight.yangtools</groupId>
235                 <artifactId>yang-data-impl</artifactId>
236                 <version>${yangtools.version}</version>
237             </dependency>
238             <dependency>
239                 <groupId>org.opendaylight.yangtools</groupId>
240                 <artifactId>yang-model-api</artifactId>
241                 <version>${yangtools.version}</version>
242             </dependency>
243             <dependency>
244                 <groupId>org.opendaylight.yangtools</groupId>
245                 <artifactId>yang-data-util</artifactId>
246                 <version>${yangtools.version}</version>
247             </dependency>
248             <!-- SAL Dependencies -->
249             <dependency>
250                 <groupId>${project.groupId}</groupId>
251                 <artifactId>sal-connector-api</artifactId>
252                 <version>${project.version}</version>
253             </dependency>
254             <dependency>
255                 <groupId>org.opendaylight.controller</groupId>
256                 <artifactId>sal</artifactId>
257                 <version>${sal.version}</version>
258                 <exclusions>
259                     <exclusion>
260                         <groupId>org.osgi</groupId>
261                         <artifactId>org.osgi.compendium</artifactId>
262                     </exclusion>
263                 </exclusions>
264             </dependency>
265
266             <!-- Supporting Libraries -->
267             <dependency>
268                 <groupId>org.slf4j</groupId>
269                 <artifactId>slf4j-api</artifactId>
270                 <version>${slf4j.version}</version>
271             </dependency>
272             <dependency>
273                 <groupId>com.google.guava</groupId>
274                 <artifactId>guava</artifactId>
275                 <version>${guava.version}</version>
276             </dependency>
277             <dependency>
278                 <groupId>org.eclipse.xtend</groupId>
279                 <artifactId>org.eclipse.xtend.lib</artifactId>
280                 <version>${xtend.version}</version>
281             </dependency>
282             <dependency>
283                 <groupId>org.osgi</groupId>
284                 <artifactId>org.osgi.core</artifactId>
285                 <version>${osgi.core.version}</version>
286             </dependency>
287             <!-- Testing Dependencies -->
288             <dependency>
289                 <groupId>junit</groupId>
290                 <artifactId>junit</artifactId>
291                 <version>${junit.version}</version>
292                 <scope>test</scope>
293             </dependency>
294             <dependency>
295                 <groupId>org.mockito</groupId>
296                 <artifactId>mockito-all</artifactId>
297                 <version>${mockito.version}</version>
298                 <scope>test</scope>
299             </dependency>
300             <dependency>
301                 <groupId>org.opendaylight.yangtools</groupId>
302                 <artifactId>binding-generator-impl</artifactId>
303                 <version>0.6.0-SNAPSHOT</version>
304             </dependency>
305             <dependency>
306                 <groupId>org.opendaylight.yangtools</groupId>
307                 <artifactId>yang-parser-impl</artifactId>
308                 <version>0.6.0-SNAPSHOT</version>
309             </dependency>
310         </dependencies>
311     </dependencyManagement>
312     <build>
313         <pluginManagement>
314             <plugins>
315                 <plugin>
316                     <groupId>org.apache.maven.plugins</groupId>
317                     <artifactId>maven-release-plugin</artifactId>
318                     <version>${releaseplugin.version}</version>
319                 </plugin>
320                 <plugin>
321                     <groupId>org.apache.felix</groupId>
322                     <artifactId>maven-bundle-plugin</artifactId>
323                     <version>${bundle.plugin.version}</version>
324                     <extensions>true</extensions>
325                     <!--executions> <execution> <id>bundle-manifest</id> 
326                         <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> 
327                         </executions -->
328                     <configuration>
329                         <instructions>
330                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
331                         </instructions>
332                         <manifestLocation>${project.basedir}/META-INF</manifestLocation>
333                     </configuration>
334                 </plugin>
335                 <plugin>
336                     <groupId>org.eclipse.xtend</groupId>
337                     <artifactId>xtend-maven-plugin</artifactId>
338                     <version>${xtend.version}</version>
339                     <executions>
340                         <execution>
341                             <goals>
342                                 <goal>compile</goal>
343                             </goals>
344                             <configuration>
345                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
346                             </configuration>
347                         </execution>
348                     </executions>
349                 </plugin>
350                 <plugin>
351                     <artifactId>maven-clean-plugin</artifactId>
352                     <version>${maven.clean.plugin.version}</version>
353                     <configuration>
354                         <filesets>
355                             <fileset>
356                                 <directory>${basedir}/src/main/xtend-gen</directory>
357                                 <includes>
358                                     <include>**</include>
359                                 </includes>
360                             </fileset>
361                         </filesets>
362                     </configuration>
363                 </plugin>
364                 <plugin>
365                     <groupId>org.jacoco</groupId>
366                     <artifactId>jacoco-maven-plugin</artifactId>
367                     <version>${jacoco.version}</version>
368                 </plugin>
369                 <!--This plugin's configuration is used to store Eclipse 
370                     m2e settings only. It has no influence on the Maven build itself. -->
371                 <plugin>
372                     <groupId>org.eclipse.m2e</groupId>
373                     <artifactId>lifecycle-mapping</artifactId>
374                     <version>1.0.0</version>
375                     <configuration>
376                         <lifecycleMappingMetadata>
377                             <pluginExecutions>
378                                 <pluginExecution>
379                                     <pluginExecutionFilter>
380                                         <groupId>org.opendaylight.yangtools</groupId>
381                                         <artifactId>yang-maven-plugin</artifactId>
382                                         <versionRange>[0,)</versionRange>
383                                         <goals>
384                                             <goal>generate-sources</goal>
385                                         </goals>
386                                     </pluginExecutionFilter>
387                                     <action>
388                                         <ignore />
389                                     </action>
390                                 </pluginExecution>
391                                 <pluginExecution>
392                                     <pluginExecutionFilter>
393                                         <groupId>net.alchim31.maven</groupId>
394                                         <artifactId>scala-maven-plugin</artifactId>
395                                         <versionRange>[0,)</versionRange>
396                                         <goals>
397                                             <goal>compile</goal>
398                                             <goal>testCompile</goal>
399                                         </goals>
400                                     </pluginExecutionFilter>
401                                     <action>
402                                         <ignore />
403                                     </action>
404                                 </pluginExecution>
405                                 <pluginExecution>
406                                     <pluginExecutionFilter>
407                                         <groupId>org.jacoco</groupId>
408                                         <artifactId>jacoco-maven-plugin</artifactId>
409                                         <versionRange>[0,)</versionRange>
410                                         <goals>
411                                             <goal>prepare-agent</goal>
412                                         </goals>
413                                     </pluginExecutionFilter>
414                                     <action>
415                                         <ignore />
416                                     </action>
417                                 </pluginExecution>
418                             </pluginExecutions>
419                         </lifecycleMappingMetadata>
420                     </configuration>
421                 </plugin>
422             </plugins>
423
424         </pluginManagement>
425         <plugins>
426             <plugin>
427                 <groupId>org.apache.felix</groupId>
428                 <artifactId>maven-bundle-plugin</artifactId>
429             </plugin>
430             <plugin>
431                 <groupId>org.codehaus.mojo</groupId>
432                 <artifactId>build-helper-maven-plugin</artifactId>
433                 <version>1.8</version>
434                 <executions>
435                     <execution>
436                         <id>add-source</id>
437                         <phase>generate-sources</phase>
438                         <goals>
439                             <goal>add-source</goal>
440                         </goals>
441                         <configuration>
442                             <sources>
443                                 <source>${project.build.directory}/generated-sources/config</source>
444                                 <source>${project.build.directory}/generated-sources/sal</source>
445                                 <source>src/main/xtend-gen</source>
446                             </sources>
447                         </configuration>
448                     </execution>
449                 </executions>
450             </plugin>
451             <plugin>
452                 <groupId>org.apache.maven.plugins</groupId>
453                 <artifactId>maven-jar-plugin</artifactId>
454                 <version>2.4</version>
455             </plugin>
456             <plugin>
457                 <groupId>org.apache.maven.plugins</groupId>
458                 <artifactId>maven-javadoc-plugin</artifactId>
459                 <version>2.8.1</version>
460                 <configuration>
461                     <stylesheet>maven</stylesheet>
462                     <failOnError>false</failOnError>
463                 </configuration>
464                 <executions>
465                     <execution>
466                         <goals>
467                             <goal>aggregate</goal>
468                         </goals>
469                         <phase>site</phase>
470                     </execution>
471                 </executions>
472             </plugin>
473         </plugins>
474     </build>
475     <reporting>
476         <plugins>
477             <plugin>
478                 <groupId>org.codehaus.mojo</groupId>
479                 <artifactId>findbugs-maven-plugin</artifactId>
480                 <version>2.4.0</version>
481                 <configuration>
482                     <effort>Max</effort>
483                     <threshold>Low</threshold>
484                     <goal>site</goal>
485                 </configuration>
486             </plugin>
487             <plugin>
488                 <groupId>org.codehaus.mojo</groupId>
489                 <artifactId>jdepend-maven-plugin</artifactId>
490                 <version>2.0-beta-2</version>
491             </plugin>
492         </plugins>
493     </reporting>
494 </project>