Create custom checkstyle rules for NN
[neutron.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <prerequisites>
5     <maven>3.0</maven>
6   </prerequisites>
7
8   <parent>
9     <groupId>org.opendaylight.odlparent</groupId>
10     <artifactId>odlparent</artifactId>
11     <version>1.6.0-SNAPSHOT</version>
12     <relativePath/>
13   </parent>
14
15   <groupId>org.opendaylight.neutron</groupId>
16   <artifactId>project-neutron-parent</artifactId>
17   <version>0.6.0-SNAPSHOT</version>
18   <packaging>pom</packaging>
19
20   <properties>
21     <aaa.version>0.2.0-SNAPSHOT</aaa.version>
22     <ietf-yang-types.version>2010.09.24.7-SNAPSHOT</ietf-yang-types.version>
23     <ietf-inet-types.version>2010.09.24.7-SNAPSHOT</ietf-inet-types.version>
24     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
25     <yang.binding.version>0.8.0-SNAPSHOT</yang.binding.version>
26     <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
27     <yang-ext.version>2013.09.07.7-SNAPSHOT</yang-ext.version>
28     <sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
29     <sonar.jacoco.itReportPath>../target/jacoco-it.exec</sonar.jacoco.itReportPath>
30     <checkstyle.location>${project.build.resources[0].directory}</checkstyle.location>
31   </properties>
32   <scm>
33     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
34     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
35     <tag>HEAD</tag>
36   </scm>
37
38   <dependencyManagement>
39     <dependencies>
40       <dependency>
41         <groupId>org.opendaylight.yangtools</groupId>
42         <artifactId>yang-binding</artifactId>
43         <version>${yang.binding.version}</version>
44       </dependency>
45       <dependency>
46         <groupId>org.opendaylight.yangtools</groupId>
47         <artifactId>yang-common</artifactId>
48         <version>${yang.binding.version}</version>
49       </dependency>
50       <dependency>
51         <groupId>org.opendaylight.yangtools.model</groupId>
52         <artifactId>ietf-inet-types</artifactId>
53         <version>${ietf-inet-types.version}</version>
54       </dependency>
55       <dependency>
56         <groupId>org.opendaylight.yangtools.model</groupId>
57         <artifactId>ietf-yang-types</artifactId>
58         <version>${ietf-yang-types.version}</version>
59       </dependency>
60       <dependency>
61         <groupId>org.opendaylight.yangtools.model</groupId>
62         <artifactId>yang-ext</artifactId>
63         <version>${yang-ext.version}</version>
64       </dependency>
65     </dependencies>
66   </dependencyManagement>
67
68   <build>
69     <pluginManagement>
70       <plugins>
71         <plugin>
72           <artifactId>maven-checkstyle-plugin</artifactId>
73           <configuration>
74             <configLocation>${checkstyle.location}/java_rules.xml</configLocation>
75             <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
76             <consoleOutput>true</consoleOutput>
77           </configuration>
78           <executions>
79             <execution>
80               <goals>
81                 <goal>check</goal>
82               </goals>
83               <phase>process-sources</phase>
84             </execution>
85           </executions>
86         </plugin>
87         <plugin>
88           <groupId>org.jacoco</groupId>
89           <artifactId>jacoco-maven-plugin</artifactId>
90           <version>${jacoco.version}</version>
91         </plugin>
92         <plugin>
93           <groupId>org.apache.maven.plugins</groupId>
94           <artifactId>maven-source-plugin</artifactId>
95           <version>2.2.1</version>
96         </plugin>
97         <plugin>
98           <groupId>org.apache.maven.plugins</groupId>
99           <artifactId>maven-jar-plugin</artifactId>
100           <version>2.4</version>
101         </plugin>
102         <plugin>
103           <groupId>org.opendaylight.yangtools</groupId>
104           <artifactId>yang-maven-plugin</artifactId>
105           <version>${yangtools.version}</version>
106         </plugin>
107         <plugin>
108           <groupId>org.apache.felix</groupId>
109           <artifactId>maven-bundle-plugin</artifactId>
110           <version>${maven.bundle.version}</version>
111         </plugin>
112 <!--        <plugin>
113           <groupId>org.apache.maven.plugins</groupId>
114           <artifactId>maven-surefire-plugin</artifactId>
115           <version>${maven.surefire.version}</version>
116           <configuration>
117             <argLine>${surefireArgLine}</argLine>
118             <skipTests>${skip.unit.tests}</skipTests>
119             <excludes>
120                <exclude>**/IT*.java</exclude>
121             </excludes>
122           </configuration>
123         </plugin> -->
124       </plugins>
125     </pluginManagement>
126     <plugins>
127       <plugin>
128         <groupId>org.jacoco</groupId>
129         <artifactId>jacoco-maven-plugin</artifactId>
130         <executions>
131           <execution>
132             <id>pre-unit-test</id>
133             <goals>
134               <goal>prepare-agent</goal>
135             </goals>
136             <configuration>
137               <destFile>${sonar.jacoco.reportPath}</destFile>
138             </configuration>
139           </execution>
140           <execution>
141             <id>post-unit-test</id>
142             <goals>
143               <goal>report</goal>
144             </goals>
145             <configuration>
146                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
147             </configuration>
148           </execution>
149         </executions>
150       </plugin>
151       <plugin>
152         <groupId>org.apache.felix</groupId>
153         <artifactId>maven-bundle-plugin</artifactId>
154         <extensions>true</extensions>
155         <configuration>
156           <instructions>
157             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
158           </instructions>
159           <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
160         </configuration>
161       </plugin>
162       <plugin>
163         <groupId>org.apache.maven.plugins</groupId>
164         <artifactId>maven-compiler-plugin</artifactId>
165         <inherited>true</inherited>
166         <configuration>
167           <source>1.7</source>
168           <target>1.7</target>
169         </configuration>
170       </plugin>
171       <plugin>
172         <artifactId>maven-source-plugin</artifactId>
173         <executions>
174           <execution>
175             <id>attach-sources</id>
176             <phase>deploy</phase>
177             <goals>
178               <goal>jar-no-fork</goal>
179             </goals>
180           </execution>
181         </executions>
182       </plugin>
183     </plugins>
184   </build>
185 </project>