Bug 651 - Added back IDE profile and changed target for yang sources
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2     <modelVersion>4.0.0</modelVersion>
3
4     <parent>
5         <groupId>org.opendaylight.controller</groupId>
6         <artifactId>commons.opendaylight</artifactId>
7         <version>1.4.2-SNAPSHOT</version>
8         <relativePath>../commons/opendaylight</relativePath>
9     </parent>
10
11     <artifactId>sal-parent</artifactId>
12     <version>1.1-SNAPSHOT</version>
13     <packaging>pom</packaging>
14     <scm>
15         <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
16         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
17         <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
18       <tag>HEAD</tag>
19   </scm>
20
21     <modules>
22         <!-- Common APIs & Implementation -->
23         <module>sal-common</module>
24         <module>sal-common-api</module>
25         <module>sal-common-impl</module>
26         <module>sal-common-util</module>
27
28         <!-- Binding Independent -->
29         <module>sal-dom-api</module>
30         <module>sal-dom-broker</module>
31         <module>sal-dom-spi</module>
32
33         <!-- Binding Aware -->
34         <module>sal-binding-api</module>
35         <module>sal-binding-config</module>
36         <module>sal-binding-broker</module>
37
38         <module>sal-binding-util</module>
39
40
41         <!-- Samples -->
42         <module>samples</module>
43
44         <!-- Base Models -->
45         <module>model</module>
46         <module>sal-remote</module>
47         <module>sal-restconf-broker</module>
48
49
50         <!-- Connectors -->
51         <module>sal-connector-api</module>
52         <module>sal-rest-connector</module>
53         <module>sal-netconf-connector</module>
54
55         
56         <module>inventory-manager</module>
57         <module>statistics-manager</module>
58         <module>topology-manager</module>
59         <module>forwardingrules-manager</module>
60         <module>topology-lldp-discovery</module>
61
62         <!-- Compability Packages -->
63         <module>compatibility</module>
64
65         <!-- Clustering -->
66               <module>remoterpc-routingtable/implementation</module>
67         <module>sal-remoterpc-connector/implementation</module>
68         <!--module>clustered-data-store/implementation</module>
69          -->
70         
71     </modules>
72
73
74     <profiles>
75         <profile>
76             <id>integrationtests</id>
77             <activation>
78                 <activeByDefault>false</activeByDefault>
79             </activation>
80             <modules>
81                 <module>sal-binding-it</module>
82                 <module>sal-binding-dom-it</module>
83                 <!--module>clustered-data-store/integrationtest</module -->
84                 <!--module>zeromq-routingtable/integrationtest</module -->
85                 <!--module>sal-remoterpc-connector/integrationtest</module -->
86                 <!--module>test/sal-rest-connector-it</modulei -->
87             </modules>
88         </profile>
89     </profiles>
90
91     <properties>
92         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
93
94         <!-- Plugin Versions -->
95         <bundle.plugin.version>2.4.0</bundle.plugin.version>
96         <maven.clean.plugin.version>2.5</maven.clean.plugin.version>
97
98         <!-- Dependency Versions -->
99         <mockito.version>1.9.5</mockito.version>
100
101
102         <!-- Sonar properties using jacoco to retrieve integration test results -->
103         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
104         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
105         <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
106         <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
107         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
108         <sonar.branch>${user.name}-private-view</sonar.branch>
109         <sonar.language>java</sonar.language>
110         <exam.version>3.0.0</exam.version>
111         <sal.version>0.8.1-SNAPSHOT</sal.version>
112     </properties>
113
114     <dependencyManagement>
115         <dependencies>
116             <dependency>
117                 <groupId>xml-apis</groupId>
118                 <artifactId>xml-apis</artifactId>
119                 <version>1.4.01</version>
120             </dependency>
121
122             <!-- SAL Dependencies -->
123             <dependency>
124                 <groupId>${project.groupId}</groupId>
125                 <artifactId>sal-connector-api</artifactId>
126                 <version>${project.version}</version>
127             </dependency>
128             <dependency>
129                 <groupId>org.opendaylight.controller</groupId>
130                 <artifactId>sal-binding-api</artifactId>
131                 <version>${project.version}</version>
132             </dependency>
133             <dependency>
134                 <groupId>org.opendaylight.controller</groupId>
135                 <artifactId>sal</artifactId>
136                 <version>${sal.version}</version>
137                 <exclusions>
138                     <exclusion>
139                         <groupId>org.osgi</groupId>
140                         <artifactId>org.osgi.compendium</artifactId>
141                     </exclusion>
142                 </exclusions>
143             </dependency>
144             <dependency>
145                 <groupId>org.opendaylight.controller</groupId>
146                 <artifactId>sal-remote</artifactId>
147                 <version>${project.version}</version>
148             </dependency>
149             <dependency>
150                 <groupId>org.opendaylight.controller</groupId>
151                 <artifactId>sal-binding-util</artifactId>
152                 <version>${project.version}</version>
153             </dependency>
154
155             <!-- Supporting Libraries -->
156             <dependency>
157                 <groupId>org.slf4j</groupId>
158                 <artifactId>slf4j-api</artifactId>
159                 <version>${slf4j.version}</version>
160             </dependency>
161
162             <dependency>
163                 <groupId>org.osgi</groupId>
164                 <artifactId>org.osgi.core</artifactId>
165                 <version>${osgi.core.version}</version>
166             </dependency>
167             <dependency>
168                 <groupId>org.opendaylight.yangtools</groupId>
169                 <artifactId>binding-generator-impl</artifactId>
170                 <version>${yangtools.version}</version>
171             </dependency>
172             <dependency>
173                 <groupId>org.opendaylight.yangtools</groupId>
174                 <artifactId>yang-parser-impl</artifactId>
175                 <version>${yangtools.version}</version>
176             </dependency>
177
178             <!-- Testing Dependencies -->
179             <dependency>
180                 <groupId>org.mockito</groupId>
181                 <artifactId>mockito-all</artifactId>
182                 <version>${mockito.version}</version>
183                 <scope>test</scope>
184             </dependency>
185         </dependencies>
186     </dependencyManagement>
187     <build>
188         <pluginManagement>
189             <plugins>
190                 <plugin>
191                     <groupId>org.apache.felix</groupId>
192                     <artifactId>maven-bundle-plugin</artifactId>
193                     <version>${bundle.plugin.version}</version>
194                     <extensions>true</extensions>
195                     <!--executions> <execution> <id>bundle-manifest</id>
196                         <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution>
197                         </executions -->
198                     <configuration>
199                         <instructions>
200                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
201                         </instructions>
202                         <manifestLocation>${project.basedir}/META-INF</manifestLocation>
203                     </configuration>
204                 </plugin>
205                 <plugin>
206                     <groupId>org.eclipse.xtend</groupId>
207                     <artifactId>xtend-maven-plugin</artifactId>
208                     <version>${xtend.version}</version>
209                 </plugin>
210                 <plugin>
211                     <groupId>org.jacoco</groupId>
212                     <artifactId>jacoco-maven-plugin</artifactId>
213                     <version>${jacoco.version}</version>
214                 </plugin>
215                 <!--This plugin's configuration is used to store Eclipse
216                     m2e settings only. It has no influence on the Maven build itself. -->
217                 <plugin>
218                     <groupId>org.eclipse.m2e</groupId>
219                     <artifactId>lifecycle-mapping</artifactId>
220                     <version>1.0.0</version>
221                     <configuration>
222                         <lifecycleMappingMetadata>
223                             <pluginExecutions>
224                                 <pluginExecution>
225                                     <pluginExecutionFilter>
226                                         <groupId>org.opendaylight.yangtools</groupId>
227                                         <artifactId>yang-maven-plugin</artifactId>
228                                         <versionRange>[0,)</versionRange>
229                                         <goals>
230                                             <goal>generate-sources</goal>
231                                         </goals>
232                                     </pluginExecutionFilter>
233                                     <action>
234                                         <ignore />
235                                     </action>
236                                 </pluginExecution>
237                                 <pluginExecution>
238                                     <pluginExecutionFilter>
239                                         <groupId>net.alchim31.maven</groupId>
240                                         <artifactId>scala-maven-plugin</artifactId>
241                                         <versionRange>[0,)</versionRange>
242                                         <goals>
243                                             <goal>compile</goal>
244                                             <goal>testCompile</goal>
245                                         </goals>
246                                     </pluginExecutionFilter>
247                                     <action>
248                                         <ignore />
249                                     </action>
250                                 </pluginExecution>
251                                 <pluginExecution>
252                                     <pluginExecutionFilter>
253                                         <groupId>org.jacoco</groupId>
254                                         <artifactId>jacoco-maven-plugin</artifactId>
255                                         <versionRange>[0,)</versionRange>
256                                         <goals>
257                                             <goal>prepare-agent</goal>
258                                         </goals>
259                                     </pluginExecutionFilter>
260                                     <action>
261                                         <ignore />
262                                     </action>
263                                 </pluginExecution>
264                             </pluginExecutions>
265                         </lifecycleMappingMetadata>
266                     </configuration>
267                 </plugin>
268             </plugins>
269
270         </pluginManagement>
271         <plugins>
272             <plugin>
273                 <groupId>org.apache.felix</groupId>
274                 <artifactId>maven-bundle-plugin</artifactId>
275             </plugin>
276             <plugin>
277                 <groupId>org.apache.maven.plugins</groupId>
278                 <artifactId>maven-jar-plugin</artifactId>
279                 <version>2.4</version>
280             </plugin>
281             <plugin>
282                 <!-- FIXME: BUG-272: remove this configuration override -->
283                 <groupId>org.apache.maven.plugins</groupId>
284                 <artifactId>maven-checkstyle-plugin</artifactId>
285                 <version>${checkstyle.version}</version>
286                 <executions>
287                   <execution>
288                     <phase>none</phase>
289                   </execution>
290                 </executions>
291             </plugin>
292         </plugins>
293     </build>
294     <reporting>
295         <plugins>
296             <plugin>
297                 <groupId>org.codehaus.mojo</groupId>
298                 <artifactId>findbugs-maven-plugin</artifactId>
299                 <version>2.4.0</version>
300                 <configuration>
301                     <effort>Max</effort>
302                     <threshold>Low</threshold>
303                     <goal>site</goal>
304                 </configuration>
305             </plugin>
306             <plugin>
307                 <groupId>org.codehaus.mojo</groupId>
308                 <artifactId>jdepend-maven-plugin</artifactId>
309                 <version>2.0-beta-2</version>
310             </plugin>
311         </plugins>
312     </reporting>
313 </project>