Merge "Prepare for mvn release:prepare release:perform operation"
[controller.git] / opendaylight / sal / yang-prototype / 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
4     <modelVersion>4.0.0</modelVersion>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>yang-prototype</artifactId>
7     <version>0.5-SNAPSHOT</version>
8     <packaging>pom</packaging>
9     <name>${project.artifactId}</name>
10     <description>
11         yang-prototype
12     </description>
13     <scm>
14       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
15       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
16       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
17     </scm>
18
19     <modules>
20         <module>sal</module>
21         <module>concepts-lang</module>
22     </modules>
23
24     <properties>
25         <yangtools.version>0.5.5-SNAPSHOT</yangtools.version>
26         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
27         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
28         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
29         <siteplugin>3.2</siteplugin>
30         <defaultStylesheet>${project.basedir}/src/site/resources/stylesheet.css</defaultStylesheet>
31         <projectinfo>2.6</projectinfo>
32         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33         <compiler.version>2.3.2</compiler.version>
34         <surefire.version>2.13</surefire.version>
35         <exam.version>3.0.0</exam.version>
36         <url.version>1.5.0</url.version>
37         <enunciate.version>1.26.2</enunciate.version>
38         <sonar.branch>${user.name}-private-view</sonar.branch>
39         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
40         <logback.version>1.0.9</logback.version>
41         <slf4j.version>1.7.2</slf4j.version>
42     </properties>
43
44     <pluginRepositories>
45         <pluginRepository>
46             <id>central</id>
47             <name>central</name>
48             <url>${nexusproxy}/repositories/central/</url>
49         </pluginRepository>
50         <pluginRepository>
51             <id>central2</id>
52             <name>central2</name>
53             <url>${nexusproxy}/repositories/central2/</url>
54         </pluginRepository>
55         <pluginRepository>
56             <id>opendaylight.snapshot</id>
57             <name>opendaylight.snapshot</name>
58             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
59         </pluginRepository>
60     </pluginRepositories>
61
62
63     <repositories>
64         <!-- EBR release -->
65         <!-- http://repository.springsource.com/maven/bundles/release -->
66         <repository>
67             <id>ebr-bundles-release</id>
68             <name>ebr-bundles-release</name>
69             <url>${nexusproxy}/repositories/ebr-bundles-release/</url>
70         </repository>
71         <!-- EBR external -->
72         <!-- http://repository.springsource.com/maven/bundles/external -->
73         <repository>
74             <id>ebr-bundles-external</id>
75             <name>ebr-bundles-external</name>
76             <url>${nexusproxy}/repositories/ebr-bundles-external/</url>
77         </repository>
78         <!-- Maven repo2 mirror -->
79         <!-- http://repo2.maven.org/maven2 -->
80         <repository>
81             <id>central2</id>
82             <name>central2</name>
83             <url>${nexusproxy}/repositories/central2/</url>
84         </repository>
85         <!-- Maven repo1 mirror -->
86         <!-- http://repo1.maven.org/maven2 -->
87         <repository>
88             <id>central</id>
89             <name>central</name>
90             <url>${nexusproxy}/repositories/central/</url>
91         </repository>
92         <!-- Pax mirror -->
93         <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->
94         <repository>
95             <id>ops4j-releases</id>
96             <name>ops4j-releases</name>
97             <url>${nexusproxy}/repositories/ops4j-releases/</url>
98         </repository>
99         <!-- Third Packages hosted in local maven because not available in 
100             other places -->
101         <repository>
102             <id>thirdparty</id>
103             <name>thirdparty</name>
104             <url>${nexusproxy}/repositories/thirdparty/</url>
105         </repository>
106         <!-- Jboss mirror -->
107         <!-- https://repository.jboss.org/nexus/content/repositories/releases -->
108         <repository>
109             <id>jboss.releases</id>
110             <name>jboss.releases</name>
111             <url>${nexusproxy}/repositories/jboss.releases/</url>
112         </repository>
113         <!-- OpenDayLight Released artifact -->
114         <repository>
115             <id>opendaylight-release</id>
116             <name>opendaylight-release</name>
117             <url>${nexusproxy}/repositories/opendaylight.release/</url>
118         </repository>
119         <!-- OpenDayLight Snapshot artifact -->
120         <repository>
121             <id>opendaylight-snapshot</id>
122             <name>opendaylight-snapshot</name>
123             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
124         </repository>
125     </repositories>
126
127     <distributionManagement>
128         <!-- OpenDayLight Released artifact -->
129         <repository>
130             <id>opendaylight-release</id>
131             <url>${nexusproxy}/repositories/opendaylight.release/</url>
132         </repository>
133         <!-- OpenDayLight Snapshot artifact -->
134         <snapshotRepository>
135             <id>opendaylight-snapshot</id>
136             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
137         </snapshotRepository>
138         <site>
139             <id>${project.artifactId}-site</id>
140             <url>./</url>
141         </site>
142     </distributionManagement>
143
144     <dependencyManagement>
145         <dependencies>
146             <dependency>
147                 <groupId>junit</groupId>
148                 <artifactId>junit</artifactId>
149                 <version>4.10</version>
150                 <scope>test</scope>
151                 <optional>true</optional>
152             </dependency>
153             <dependency>
154                 <groupId>org.slf4j</groupId>
155                 <artifactId>slf4j-api</artifactId>
156                 <version>1.7.2</version>
157             </dependency>
158         </dependencies>
159     </dependencyManagement>
160
161     <build>
162         <plugins>
163             <plugin>
164                 <groupId>org.apache.maven.plugins</groupId>
165                 <artifactId>maven-compiler-plugin</artifactId>
166                 <version>${compiler.version}</version>
167                 <inherited>true</inherited>
168                 <configuration>
169                     <source>1.7</source>
170                     <target>1.7</target>
171                 </configuration>
172             </plugin>
173             <plugin>
174                 <artifactId>maven-source-plugin</artifactId>
175                 <executions>
176                     <execution>
177                         <id>attach-sources</id>
178                         <phase>deploy</phase>
179                         <goals>
180                             <goal>jar-no-fork</goal>
181                         </goals>
182                     </execution>
183                 </executions>
184             </plugin>
185             <plugin>
186                 <!-- explicitly define maven-deploy-plugin after other to 
187                     force exec order -->
188                 <artifactId>maven-deploy-plugin</artifactId>
189                 <executions>
190                     <execution>
191                         <id>deploy</id>
192                         <phase>deploy</phase>
193                         <goals>
194                             <goal>deploy</goal>
195                         </goals>
196                     </execution>
197                 </executions>
198             </plugin>
199
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-javadoc-plugin</artifactId>
203                 <configuration>
204                     <stylesheetfile>${defaultStylesheet}</stylesheetfile>
205                     <excludePackageNames>
206                         *.opendaylight.controller.antlrv4.code.gen
207                     </excludePackageNames>
208                 </configuration>
209                 <executions>
210                     <execution>
211                         <id>aggregate</id>
212                         <goals>
213                             <goal>aggregate</goal>
214                         </goals>
215                         <phase>site</phase>
216                     </execution>
217                     <execution>
218                         <id>attach-javadocs</id>
219                         <phase>deploy</phase>
220                         <goals>
221                             <goal>jar</goal>
222                         </goals>
223                     </execution>
224                 </executions>
225             </plugin>
226
227             <plugin>
228                 <groupId>org.apache.maven.plugins</groupId>
229                 <artifactId>maven-site-plugin</artifactId>
230                 <inherited>false</inherited>
231                 <dependencies>
232                     <dependency>
233                         <groupId>org.apache.maven.doxia</groupId>
234                         <artifactId>doxia-module-markdown</artifactId>
235                         <version>1.3</version>
236                     </dependency>
237                 </dependencies>
238                 <configuration>
239                     <siteDirectory>${project.basedir}/src/site</siteDirectory>
240                     <inputEncoding>UTF-8</inputEncoding>
241                     <outputEncoding>UTF-8</outputEncoding>
242                 </configuration>
243             </plugin>
244         </plugins>
245
246         <pluginManagement>
247             <plugins>
248                 <plugin>
249                     <groupId>org.apache.maven.plugins</groupId>
250                     <artifactId>maven-source-plugin</artifactId>
251                     <version>2.2.1</version>
252                 </plugin>
253                 <plugin>
254                     <groupId>org.apache.maven.plugins</groupId>
255                     <artifactId>maven-deploy-plugin</artifactId>
256                     <version>2.7</version>
257                 </plugin>
258                 <plugin>
259                     <groupId>org.apache.maven.plugins</groupId>
260                     <artifactId>maven-surefire-plugin</artifactId>
261                     <version>2.15</version>
262                 </plugin>
263                 <plugin>
264                     <groupId>org.apache.maven.plugins</groupId>
265                     <artifactId>maven-site-plugin</artifactId>
266                     <dependencies>
267                         <dependency>
268                             <groupId>org.apache.maven.doxia</groupId>
269                             <artifactId>doxia-module-markdown</artifactId>
270                             <version>1.3</version>
271                         </dependency>
272                     </dependencies>
273                     <configuration>
274                         <siteDirectory>${project.parent.basedir}/src/site</siteDirectory>
275                         <inputEncoding>UTF-8</inputEncoding>
276                         <outputEncoding>UTF-8</outputEncoding>
277                     </configuration>
278                 </plugin>
279                 <plugin>
280                     <groupId>org.apache.maven.plugins</groupId>
281                     <artifactId>maven-javadoc-plugin</artifactId>
282                     <version>2.9.1</version>
283                     <configuration>
284                         <stylesheetfile>${defaultStylesheet}</stylesheetfile>
285                     </configuration>
286                     <executions>
287                         <execution>
288                             <id>aggregate</id>
289                             <goals>
290                                 <goal>aggregate</goal>
291                             </goals>
292                             <phase>site</phase>
293                         </execution>
294                         <execution>
295                             <id>attach-javadocs</id>
296                             <phase>deploy</phase>
297                             <goals>
298                                 <goal>jar</goal>
299                             </goals>
300                         </execution>
301                     </executions>
302                 </plugin>
303             </plugins>
304         </pluginManagement>
305
306     </build>
307
308     <reporting>
309         <plugins>
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-javadoc-plugin</artifactId>
313                 <version>2.9.1</version>
314                 <reportSets>
315                     <reportSet>
316                         <reports>
317                             <report>javadoc</report>
318                         </reports>
319                     </reportSet>
320                 </reportSets>
321             </plugin>
322             <plugin>
323                 <groupId>org.codehaus.mojo</groupId>
324                 <artifactId>findbugs-maven-plugin</artifactId>
325                 <version>2.4.0</version>
326                 <configuration>
327                     <effort>Max</effort>
328                     <threshold>Low</threshold>
329                     <goal>site</goal>
330                 </configuration>
331             </plugin>
332             <plugin>
333                 <groupId>org.codehaus.mojo</groupId>
334                 <artifactId>jdepend-maven-plugin</artifactId>
335                 <version>2.0-beta-2</version>
336             </plugin>
337         </plugins>
338     </reporting>
339
340     <profiles>
341         <profile>
342             <id>viewbuild</id>
343             <activation>
344                 <activeByDefault>true</activeByDefault>
345             </activation>
346             <properties>
347                 <build.suffix>${project.version}</build.suffix>
348             </properties>
349         </profile>
350         <profile>
351             <id>jenkins</id>
352             <activation>
353                 <property>
354                     <name>BUILDSUFFIX</name>
355                 </property>
356             </activation>
357             <properties>
358                 <build.suffix>${BUILDSUFFIX}</build.suffix>
359             </properties>
360         </profile>
361     </profiles>
362
363 </project>