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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.