BUG-2643: enable checkstyle/findbugs in archetype
[controller.git] / opendaylight / md-sal / mdsal-trace / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright © 2016 Red Hat and others. All rights reserved.
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
7 -->
8 <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">
9   <modelVersion>4.0.0</modelVersion>
10
11   <parent>
12     <groupId>org.opendaylight.odlparent</groupId>
13     <artifactId>odlparent-lite</artifactId>
14     <version>2.0.4</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>org.opendaylight.controller</groupId>
19   <artifactId>mdsal-trace-aggregator</artifactId>
20   <version>1.7.0-SNAPSHOT</version>
21   <name>mdsaltrace</name>
22   <packaging>pom</packaging>
23
24   <modules>
25     <module>api</module>
26     <module>dom-impl</module>
27     <module>binding-impl</module>
28     <module>features</module>
29   </modules>
30
31   <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
32   <build>
33     <plugins>
34       <plugin>
35         <groupId>org.apache.maven.plugins</groupId>
36         <artifactId>maven-deploy-plugin</artifactId>
37         <configuration>
38           <skip>true</skip>
39         </configuration>
40       </plugin>
41       <plugin>
42         <groupId>org.apache.maven.plugins</groupId>
43         <artifactId>maven-install-plugin</artifactId>
44         <configuration>
45           <skip>true</skip>
46         </configuration>
47       </plugin>
48     </plugins>
49   </build>
50
51   <profiles>
52     <profile>
53       <!--
54           This profile is to ensure we only build javadocs reports
55           when we plan to deploy Maven site for our project.
56       -->
57       <id>maven-site</id>
58       <activation>
59         <file>
60           <exists>${user.dir}/deploy-site.xml</exists>
61         </file>
62       </activation>
63
64       <build>
65         <plugins>
66           <plugin>
67             <groupId>org.apache.maven.plugins</groupId>
68             <artifactId>maven-javadoc-plugin</artifactId>
69             <inherited>false</inherited>
70             <executions>
71               <execution>
72                 <id>aggregate</id>
73                 <goals>
74                   <goal>aggregate</goal>
75                 </goals>
76                 <phase>package</phase>
77             </execution>
78             </executions>
79           </plugin>
80           <plugin>
81             <groupId>org.apache.maven.plugins</groupId>
82             <artifactId>maven-checkstyle-plugin</artifactId>
83             <configuration>
84               <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
85             </configuration>
86           </plugin>
87         </plugins>
88       </build>
89     </profile>
90   </profiles>
91
92   <!--
93       Maven Site Configuration
94
95       The following configuration is necessary for maven-site-plugin to
96       correctly identify the correct deployment path for OpenDaylight Maven
97       sites.
98   -->
99   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
100
101   <distributionManagement>
102     <site>
103       <id>opendaylight-site</id>
104       <url>${nexus.site.url}/</url>
105     </site>
106   </distributionManagement>
107 </project>