Fix warning by adding version to maven-clean-plugin
[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-broker</module>
29         <module>sal-binding-it</module>
30
31         <!-- Samples -->
32         <module>samples</module>
33
34         <!-- Base Models -->
35         <module>model</module>
36
37         <!-- Compability Packages -->
38         <module>sal-compability</module>
39
40         <!-- Connectors -->
41         <module>sal-connector-api</module>
42         <module>sal-rest-connector</module>
43         <module>flow-management-compatibility</module>
44     </modules>
45
46     <properties>
47         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
49         <!-- Java Versions -->
50         <maven.compiler.source>1.7</maven.compiler.source>
51         <maven.compiler.target>1.7</maven.compiler.target>
52
53         <!-- Plugin Versions -->
54         <bundle.plugin.version>2.4.0</bundle.plugin.version>
55         <releaseplugin.version>2.3.2</releaseplugin.version>
56
57         <!-- Dependency Versions -->
58         <slf4j.version>1.7.2</slf4j.version>
59         <yang.version>0.5.9-SNAPSHOT</yang.version>
60         <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
61         <yang.codegen.version>0.6.0-SNAPSHOT</yang.codegen.version>
62         <guava.version>14.0.1</guava.version>
63         <osgi.core.version>5.0.0</osgi.core.version>
64         <junit.version>4.8.1</junit.version>
65         <xtend.version>2.4.3</xtend.version>
66         <maven.clean.plugin.version>2.5</maven.clean.plugin.version>
67         <jacoco.version>0.5.3.201107060350</jacoco.version>
68         <!-- Sonar properties using jacoco to retrieve integration test results -->
69         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
70         <!-- Sonar properties using jacoco to retrieve integration test results -->
71         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
72         <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
73         <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
74         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
75         <sonar.branch>${user.name}-private-view</sonar.branch>
76         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
77         <sonar.language>java</sonar.language>
78     </properties>
79
80     <pluginRepositories>
81         <pluginRepository>
82             <id>central</id>
83             <name>maven repo1</name>
84             <url>http://repo1.maven.org/maven2</url>
85             <snapshots>
86                 <enabled>false</enabled>
87             </snapshots>
88             <releases>
89                 <enabled>true</enabled>
90             </releases>
91         </pluginRepository>
92         <pluginRepository>
93             <id>opendaylight-snapshot</id>
94             <name>opendaylight-snapshot</name>
95             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
96         </pluginRepository>
97         <pluginRepository>
98             <id>opendaylight.release</id>
99             <name>opendaylight.release</name>
100             <url>${nexusproxy}/repositories/opendaylight.release/</url>
101         </pluginRepository>
102     </pluginRepositories>
103
104
105     <repositories>
106         <repository>
107             <id>opendaylight-release</id>
108             <name>opendaylight-release</name>
109             <url>${nexusproxy}/repositories/opendaylight.release/</url>
110         </repository>
111         <!-- OpenDayLight Snapshot artifact -->
112         <repository>
113             <id>opendaylight-snapshot</id>
114             <name>opendaylight-snapshot</name>
115             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
116         </repository>
117         <repository>
118             <id>thirdparty</id>
119             <name>thirdparty</name>
120             <url>${nexusproxy}/repositories/thirdparty/</url>
121         </repository>
122         <repository>
123             <id>central</id>
124             <name>central</name>
125             <url>http://repo1.maven.org/maven2</url>
126             <snapshots>
127                 <enabled>false</enabled>
128             </snapshots>
129             <releases>
130                 <enabled>true</enabled>
131             </releases>
132         </repository>
133     </repositories>
134
135     <distributionManagement>
136         <!-- OpenDayLight Released artifact -->
137         <repository>
138             <id>opendaylight-release</id>
139             <url>${nexusproxy}/repositories/opendaylight.release/</url>
140         </repository>
141         <!-- OpenDayLight Snapshot artifact -->
142         <snapshotRepository>
143             <id>opendaylight-snapshot</id>
144             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
145         </snapshotRepository>
146         <!-- Site deployment -->
147         <site>
148             <id>website</id>
149             <url>${sitedeploy}</url>
150         </site>
151     </distributionManagement>
152
153
154     <dependencyManagement>
155         <dependencies>
156
157
158
159
160             <!-- YANG Tools Dependencies -->
161             <dependency>
162                 <groupId>org.opendaylight.yangtools</groupId>
163                 <artifactId>yang-binding</artifactId>
164                 <version>${yang.binding.version}</version>
165             </dependency>
166             <dependency>
167                 <groupId>org.opendaylight.yangtools</groupId>
168                 <artifactId>yang-common</artifactId>
169                 <version>${yang.version}</version>
170             </dependency>
171             <dependency>
172                 <groupId>org.opendaylight.yangtools</groupId>
173                 <artifactId>yang-data-api</artifactId>
174                 <version>${yang.version}</version>
175             </dependency>
176             <dependency>
177                 <groupId>org.opendaylight.yangtools</groupId>
178                 <artifactId>yang-model-api</artifactId>
179                 <version>${yang.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.yangtools</groupId>
183                 <artifactId>yang-data-util</artifactId>
184                 <version>${yang.version}</version>
185             </dependency>
186             <!-- SAL Dependencies -->
187             <dependency>
188                 <groupId>${project.groupId}</groupId>
189                 <artifactId>sal-connector-api</artifactId>
190                 <version>${project.version}</version>
191             </dependency>
192
193             <!-- Supporting Libraries -->
194             <dependency>
195                 <groupId>org.slf4j</groupId>
196                 <artifactId>slf4j-api</artifactId>
197                 <version>${slf4j.version}</version>
198             </dependency>
199             <dependency>
200                 <groupId>com.google.guava</groupId>
201                 <artifactId>guava</artifactId>
202                 <version>${guava.version}</version>
203             </dependency>
204             <dependency>
205                 <groupId>org.eclipse.xtend</groupId>
206                 <artifactId>org.eclipse.xtend.lib</artifactId>
207                 <version>${xtend.version}</version>
208             </dependency>
209
210             <!-- Testing Dependencies -->
211             <dependency>
212                 <groupId>junit</groupId>
213                 <artifactId>junit</artifactId>
214                 <version>${junit.version}</version>
215                 <scope>test</scope>
216             </dependency>
217             <dependency>
218                 <groupId>org.mockito</groupId>
219                 <artifactId>mockito-all</artifactId>
220                 <version>1.9.5</version>
221                 <scope>test</scope>
222             </dependency>
223         </dependencies>
224     </dependencyManagement>
225     <build>
226         <pluginManagement>
227             <plugins>
228                 <plugin>
229                     <groupId>org.apache.maven.plugins</groupId>
230                     <artifactId>maven-release-plugin</artifactId>
231                     <version>${releaseplugin.version}</version>
232                 </plugin>
233                 <plugin>
234                     <groupId>org.apache.felix</groupId>
235                     <artifactId>maven-bundle-plugin</artifactId>
236                     <version>${bundle.plugin.version}</version>
237                     <extensions>true</extensions>
238                     <!--executions>
239                         <execution>
240                             <id>bundle-manifest</id>
241                             <phase>process-classes</phase>
242                             <goals>
243                                 <goal>manifest</goal>
244                             </goals>
245                         </execution>
246                     </executions-->
247                     <configuration>
248                         <instructions>
249                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
250                         </instructions>
251                         <manifestLocation>${project.basedir}/META-INF</manifestLocation>
252                     </configuration>
253                 </plugin>
254                 <plugin>
255                     <groupId>org.eclipse.xtend</groupId>
256                     <artifactId>xtend-maven-plugin</artifactId>
257                     <version>${xtend.version}</version>
258                     <executions>
259                         <execution>
260                             <goals>
261                                 <goal>compile</goal>
262                             </goals>
263                             <configuration>
264                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
265                             </configuration>
266                         </execution>
267                     </executions>
268                 </plugin>
269                 <plugin>
270                     <artifactId>maven-clean-plugin</artifactId>
271                     <version>${maven.clean.plugin.version}</version>
272                     <configuration>
273                         <filesets>
274                             <fileset>
275                                 <directory>${basedir}/src/main/xtend-gen</directory>
276                                 <includes>
277                                     <include>**</include>
278                                 </includes>
279                             </fileset>
280                         </filesets>
281                     </configuration>
282                 </plugin>
283                 <plugin>
284                     <groupId>org.jacoco</groupId>
285                     <artifactId>jacoco-maven-plugin</artifactId>
286                     <version>${jacoco.version}</version>
287                 </plugin>
288             </plugins>
289         </pluginManagement>
290         <plugins>
291             <plugin>
292                 <groupId>org.apache.felix</groupId>
293                 <artifactId>maven-bundle-plugin</artifactId>
294             </plugin>
295             <plugin>
296                 <groupId>org.apache.maven.plugins</groupId>
297                 <artifactId>maven-jar-plugin</artifactId>
298                 <version>2.4</version>
299             </plugin>
300             <plugin>
301                 <groupId>org.apache.maven.plugins</groupId>
302                 <artifactId>maven-javadoc-plugin</artifactId>
303                 <version>2.8.1</version>
304                 <configuration>
305                     <stylesheet>maven</stylesheet>
306                     <failOnError>false</failOnError>
307                 </configuration>
308                 <executions>
309                     <execution>
310                         <goals>
311                             <goal>aggregate</goal>
312                         </goals>
313                         <phase>site</phase>
314                     </execution>
315                 </executions>
316             </plugin>
317             <plugin>
318                 <groupId>org.jacoco</groupId>
319                 <artifactId>jacoco-maven-plugin</artifactId>
320                 <configuration>
321                   <includes>org.opendaylight.controller.*</includes>
322                 </configuration>
323                 <executions>
324                   <execution>
325                     <id>pre-test</id>
326                     <goals>
327                       <goal>prepare-agent</goal>
328                     </goals>
329                   </execution>
330                   <execution>
331                     <id>post-test</id>
332                     <phase>test</phase>
333                     <goals>
334                       <goal>report</goal>
335                     </goals>
336                   </execution>
337                 </executions>
338             </plugin>
339         </plugins>
340     </build>
341     <reporting>
342         <plugins>
343             <plugin>
344                 <groupId>org.codehaus.mojo</groupId>
345                 <artifactId>findbugs-maven-plugin</artifactId>
346                 <version>2.4.0</version>
347                 <configuration>
348                     <effort>Max</effort>
349                     <threshold>Low</threshold>
350                     <goal>site</goal>
351                 </configuration>
352             </plugin>
353             <plugin>
354                 <groupId>org.codehaus.mojo</groupId>
355                 <artifactId>jdepend-maven-plugin</artifactId>
356                 <version>2.0-beta-2</version>
357             </plugin>
358         </plugins>
359     </reporting>
360 </project>