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