Replace exception.printStacktrace with write to log.
[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>central2</id>
47           <name>central2</name>
48           <url>http://repo2.maven.org/maven2</url>
49         </pluginRepository>
50         <pluginRepository>
51             <id>opendaylight.snapshot</id>
52             <name>opendaylight.snapshot</name>
53             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
54         </pluginRepository>
55     </pluginRepositories>
56
57
58     <repositories>
59         <!-- EBR release -->
60         <!-- http://repository.springsource.com/maven/bundles/release -->
61         <repository>
62             <id>ebr-bundles-release</id>
63             <name>ebr-bundles-release</name>
64             <url>${nexusproxy}/repositories/ebr-bundles-release/</url>
65         </repository>
66         <!-- EBR external -->
67         <!-- http://repository.springsource.com/maven/bundles/external -->
68         <repository>
69             <id>ebr-bundles-external</id>
70             <name>ebr-bundles-external</name>
71             <url>${nexusproxy}/repositories/ebr-bundles-external/</url>
72         </repository>
73         <repository>
74           <id>central2</id>
75           <name>central2</name>
76           <url>http://repo2.maven.org/maven2</url>
77         </repository>
78         <repository>
79           <id>central</id>
80           <name>central</name>
81           <url>http://repo1.maven.org/maven2</url>
82         </repository>
83         <!-- Pax mirror -->
84         <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->
85         <repository>
86             <id>ops4j-releases</id>
87             <name>ops4j-releases</name>
88             <url>${nexusproxy}/repositories/ops4j-releases/</url>
89         </repository>
90         <!-- Third Packages hosted in local maven because not available in 
91             other places -->
92         <repository>
93             <id>thirdparty</id>
94             <name>thirdparty</name>
95             <url>${nexusproxy}/repositories/thirdparty/</url>
96         </repository>
97         <!-- Jboss mirror -->
98         <!-- https://repository.jboss.org/nexus/content/repositories/releases -->
99         <repository>
100             <id>jboss.releases</id>
101             <name>jboss.releases</name>
102             <url>${nexusproxy}/repositories/jboss.releases/</url>
103         </repository>
104         <!-- OpenDayLight Released artifact -->
105         <repository>
106             <id>opendaylight-release</id>
107             <name>opendaylight-release</name>
108             <url>${nexusproxy}/repositories/opendaylight.release/</url>
109         </repository>
110         <!-- OpenDayLight Snapshot artifact -->
111         <repository>
112             <id>opendaylight-snapshot</id>
113             <name>opendaylight-snapshot</name>
114             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
115         </repository>
116     </repositories>
117
118     <distributionManagement>
119         <!-- OpenDayLight Released artifact -->
120         <repository>
121             <id>opendaylight-release</id>
122             <url>${nexusproxy}/repositories/opendaylight.release/</url>
123         </repository>
124         <!-- OpenDayLight Snapshot artifact -->
125         <snapshotRepository>
126             <id>opendaylight-snapshot</id>
127             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
128         </snapshotRepository>
129         <site>
130             <id>${project.artifactId}-site</id>
131             <url>./</url>
132         </site>
133     </distributionManagement>
134
135     <dependencyManagement>
136         <dependencies>
137             <dependency>
138                 <groupId>junit</groupId>
139                 <artifactId>junit</artifactId>
140                 <version>4.10</version>
141                 <scope>test</scope>
142                 <optional>true</optional>
143             </dependency>
144             <dependency>
145                 <groupId>org.slf4j</groupId>
146                 <artifactId>slf4j-api</artifactId>
147                 <version>1.7.2</version>
148             </dependency>
149         </dependencies>
150     </dependencyManagement>
151
152     <build>
153         <plugins>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-compiler-plugin</artifactId>
157                 <version>${compiler.version}</version>
158                 <inherited>true</inherited>
159                 <configuration>
160                     <source>1.7</source>
161                     <target>1.7</target>
162                 </configuration>
163             </plugin>
164             <plugin>
165                 <artifactId>maven-source-plugin</artifactId>
166                 <executions>
167                     <execution>
168                         <id>attach-sources</id>
169                         <phase>deploy</phase>
170                         <goals>
171                             <goal>jar-no-fork</goal>
172                         </goals>
173                     </execution>
174                 </executions>
175             </plugin>
176             <plugin>
177                 <!-- explicitly define maven-deploy-plugin after other to 
178                     force exec order -->
179                 <artifactId>maven-deploy-plugin</artifactId>
180                 <executions>
181                     <execution>
182                         <id>deploy</id>
183                         <phase>deploy</phase>
184                         <goals>
185                             <goal>deploy</goal>
186                         </goals>
187                     </execution>
188                 </executions>
189             </plugin>
190
191             <plugin>
192                 <groupId>org.apache.maven.plugins</groupId>
193                 <artifactId>maven-javadoc-plugin</artifactId>
194                 <configuration>
195                     <stylesheetfile>${defaultStylesheet}</stylesheetfile>
196                     <excludePackageNames>
197                         *.opendaylight.controller.antlrv4.code.gen
198                     </excludePackageNames>
199                 </configuration>
200                 <executions>
201                     <execution>
202                         <id>aggregate</id>
203                         <goals>
204                             <goal>aggregate</goal>
205                         </goals>
206                         <phase>site</phase>
207                     </execution>
208                     <execution>
209                         <id>attach-javadocs</id>
210                         <phase>deploy</phase>
211                         <goals>
212                             <goal>jar</goal>
213                         </goals>
214                     </execution>
215                 </executions>
216             </plugin>
217
218             <plugin>
219                 <groupId>org.apache.maven.plugins</groupId>
220                 <artifactId>maven-site-plugin</artifactId>
221                 <version>${siteplugin}</version>
222                 <inherited>false</inherited>
223                 <dependencies>
224                     <dependency>
225                         <groupId>org.apache.maven.doxia</groupId>
226                         <artifactId>doxia-module-markdown</artifactId>
227                         <version>1.3</version>
228                     </dependency>
229                 </dependencies>
230                 <configuration>
231                     <siteDirectory>${project.basedir}/src/site</siteDirectory>
232                     <inputEncoding>UTF-8</inputEncoding>
233                     <outputEncoding>UTF-8</outputEncoding>
234                 </configuration>
235             </plugin>
236         </plugins>
237
238         <pluginManagement>
239             <plugins>
240                 <plugin>
241                     <groupId>org.apache.maven.plugins</groupId>
242                     <artifactId>maven-source-plugin</artifactId>
243                     <version>2.2.1</version>
244                 </plugin>
245                 <plugin>
246                     <groupId>org.apache.maven.plugins</groupId>
247                     <artifactId>maven-deploy-plugin</artifactId>
248                     <version>2.7</version>
249                 </plugin>
250                 <plugin>
251                     <groupId>org.apache.maven.plugins</groupId>
252                     <artifactId>maven-surefire-plugin</artifactId>
253                     <version>2.15</version>
254                 </plugin>
255                 <plugin>
256                     <groupId>org.apache.maven.plugins</groupId>
257                     <artifactId>maven-site-plugin</artifactId>
258                     <version>${siteplugin}</version>
259                     <dependencies>
260                         <dependency>
261                             <groupId>org.apache.maven.doxia</groupId>
262                             <artifactId>doxia-module-markdown</artifactId>
263                             <version>1.3</version>
264                         </dependency>
265                     </dependencies>
266                     <configuration>
267                         <siteDirectory>${project.parent.basedir}/src/site</siteDirectory>
268                         <inputEncoding>UTF-8</inputEncoding>
269                         <outputEncoding>UTF-8</outputEncoding>
270                     </configuration>
271                 </plugin>
272                 <plugin>
273                     <groupId>org.apache.maven.plugins</groupId>
274                     <artifactId>maven-javadoc-plugin</artifactId>
275                     <version>2.9.1</version>
276                     <configuration>
277                         <stylesheetfile>${defaultStylesheet}</stylesheetfile>
278                     </configuration>
279                     <executions>
280                         <execution>
281                             <id>aggregate</id>
282                             <goals>
283                                 <goal>aggregate</goal>
284                             </goals>
285                             <phase>site</phase>
286                         </execution>
287                         <execution>
288                             <id>attach-javadocs</id>
289                             <phase>deploy</phase>
290                             <goals>
291                                 <goal>jar</goal>
292                             </goals>
293                         </execution>
294                     </executions>
295                 </plugin>
296             </plugins>
297         </pluginManagement>
298
299     </build>
300
301     <reporting>
302         <plugins>
303             <plugin>
304                 <groupId>org.apache.maven.plugins</groupId>
305                 <artifactId>maven-javadoc-plugin</artifactId>
306                 <version>2.9.1</version>
307                 <reportSets>
308                     <reportSet>
309                         <reports>
310                             <report>javadoc</report>
311                         </reports>
312                     </reportSet>
313                 </reportSets>
314             </plugin>
315             <plugin>
316                 <groupId>org.codehaus.mojo</groupId>
317                 <artifactId>findbugs-maven-plugin</artifactId>
318                 <version>2.4.0</version>
319                 <configuration>
320                     <effort>Max</effort>
321                     <threshold>Low</threshold>
322                     <goal>site</goal>
323                 </configuration>
324             </plugin>
325             <plugin>
326                 <groupId>org.codehaus.mojo</groupId>
327                 <artifactId>jdepend-maven-plugin</artifactId>
328                 <version>2.0-beta-2</version>
329             </plugin>
330         </plugins>
331     </reporting>
332
333     <profiles>
334         <profile>
335             <id>viewbuild</id>
336             <activation>
337                 <activeByDefault>true</activeByDefault>
338             </activation>
339             <properties>
340                 <build.suffix>${project.version}</build.suffix>
341             </properties>
342         </profile>
343         <profile>
344             <id>jenkins</id>
345             <activation>
346                 <property>
347                     <name>BUILDSUFFIX</name>
348                 </property>
349             </activation>
350             <properties>
351                 <build.suffix>${BUILDSUFFIX}</build.suffix>
352             </properties>
353         </profile>
354     </profiles>
355
356 </project>