apply checkstyle check during build for neutron-ovsdb
[groupbasedpolicy.git] / neutron-ovsdb / pom.xml
1 <?xml version="1.0"?>
2 <!-- Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
3   This program and the accompanying materials are made available under the
4   terms of the Eclipse Public License v1.0 which accompanies this distribution,
5   and is available at http://www.eclipse.org/legal/epl-v10.html -->
6 <project
7   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
8   xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
9   <modelVersion>4.0.0</modelVersion>
10
11   <parent>
12     <groupId>org.opendaylight.mdsal</groupId>
13     <artifactId>binding-parent</artifactId>
14     <version>0.12.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>org.opendaylight.groupbasedpolicy</groupId>
19   <artifactId>neutron-ovsdb</artifactId>
20   <version>0.7.0-SNAPSHOT</version>
21   <packaging>bundle</packaging>
22   <!-- <name> formatting is used by autorelease to parse and notify projects on
23        build failure. Please do not modify this unless you have a good reason. -->
24   <name>ODL :: groupbasedpolicy :: ${project.artifactId}</name>
25
26   <properties>
27     <ovsdb.version>1.6.0-SNAPSHOT</ovsdb.version>
28   </properties>
29
30   <dependencyManagement>
31     <dependencies>
32       <dependency>
33         <groupId>org.opendaylight.controller</groupId>
34         <artifactId>mdsal-artifacts</artifactId>
35         <version>1.7.0-SNAPSHOT</version>
36         <type>pom</type>
37         <scope>import</scope>
38       </dependency>
39     </dependencies>
40   </dependencyManagement>
41
42   <dependencies>
43     <!-- project specific dependencies -->
44     <dependency>
45       <groupId>${project.groupId}</groupId>
46       <artifactId>groupbasedpolicy</artifactId>
47       <version>${project.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>${project.groupId}</groupId>
51       <artifactId>ofoverlay-renderer</artifactId>
52       <version>${project.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>${project.groupId}</groupId>
56       <artifactId>neutron-mapper</artifactId>
57       <version>${project.version}</version>
58     </dependency>
59     <!-- OVSDB dependencies -->
60     <dependency>
61       <groupId>org.opendaylight.ovsdb</groupId>
62       <artifactId>southbound-api</artifactId>
63       <version>${ovsdb.version}</version>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.ovsdb</groupId>
67       <artifactId>southbound-impl</artifactId>
68       <version>${ovsdb.version}</version>
69     </dependency>
70     <!-- testing dependencies -->
71     <dependency>
72       <groupId>junit</groupId>
73       <artifactId>junit</artifactId>
74       <scope>test</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.mockito</groupId>
78       <artifactId>mockito-core</artifactId>
79       <scope>test</scope>
80     </dependency>
81     <dependency>
82       <groupId>org.opendaylight.controller</groupId>
83       <artifactId>sal-binding-broker-impl</artifactId>
84       <type>test-jar</type>
85       <scope>test</scope>
86     </dependency>
87     <dependency>
88       <groupId>org.opendaylight.groupbasedpolicy</groupId>
89       <artifactId>groupbasedpolicy</artifactId>
90       <version>${project.version}</version>
91       <type>test-jar</type>
92       <scope>test</scope>
93     </dependency>
94   </dependencies>
95
96   <build>
97     <plugins>
98       <plugin>
99         <groupId>org.apache.felix</groupId>
100         <artifactId>maven-bundle-plugin</artifactId>
101         <configuration>
102           <instructions>
103             <Export-Package></Export-Package>
104             <Import-Package>*</Import-Package>
105           </instructions>
106         </configuration>
107       </plugin>
108       <plugin>
109         <artifactId>maven-checkstyle-plugin</artifactId>
110         <configuration>
111           <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
112           <consoleOutput>true</consoleOutput>
113           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
114         </configuration>
115         <executions>
116           <execution>
117             <goals>
118               <goal>check</goal>
119             </goals>
120             <phase>process-sources</phase>
121           </execution>
122         </executions>
123       </plugin>
124     </plugins>
125   </build>
126 </project>