apply checkstyle check during build for neutron-ovsdb
[groupbasedpolicy.git] / neutron-mapper / 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-mapper</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     <neutron.version>0.10.0-SNAPSHOT</neutron.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>l2-l3-domain-extension</artifactId>
47       <version>${project.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>org.opendaylight.neutron</groupId>
51       <artifactId>model</artifactId>
52       <version>${neutron.version}</version>
53     </dependency>
54     <!-- testing dependencies -->
55     <dependency>
56       <groupId>junit</groupId>
57       <artifactId>junit</artifactId>
58       <scope>test</scope>
59     </dependency>
60     <dependency>
61       <groupId>org.mockito</groupId>
62       <artifactId>mockito-core</artifactId>
63       <scope>test</scope>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.controller</groupId>
67       <artifactId>sal-binding-broker-impl</artifactId>
68       <type>test-jar</type>
69       <scope>test</scope>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.controller</groupId>
73       <artifactId>sal-binding-broker-impl</artifactId>
74       <scope>test</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.opendaylight.mdsal.model</groupId>
78       <artifactId>ietf-yang-types-20130715</artifactId>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.mdsal.model</groupId>
82       <artifactId>opendaylight-l2-types</artifactId>
83     </dependency>
84     <dependency>
85       <groupId>org.opendaylight.mdsal.model</groupId>
86       <artifactId>ietf-topology</artifactId>
87     </dependency>
88   </dependencies>
89
90  <build>
91     <plugins>
92       <plugin>
93         <groupId>org.apache.felix</groupId>
94         <artifactId>maven-bundle-plugin</artifactId>
95         <configuration>
96           <instructions>
97             <Export-Package>
98               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.*,
99               org.opendaylight.groupbasedpolicy.neutron.gbp.util
100             </Export-Package>
101             <Import-Package>*</Import-Package>
102           </instructions>
103         </configuration>
104       </plugin>
105       <plugin>
106         <groupId>org.codehaus.mojo</groupId>
107         <artifactId>build-helper-maven-plugin</artifactId>
108         <executions>
109           <execution>
110             <id>attach-artifacts</id>
111             <phase>package</phase>
112             <goals>
113               <goal>attach-artifact</goal>
114             </goals>
115             <configuration>
116               <artifacts>
117                 <artifact>
118                   <file>${project.build.directory}/classes/startup.cfg</file>
119                   <type>cfg</type>
120                   <classifier>config</classifier>
121                 </artifact>
122               </artifacts>
123             </configuration>
124           </execution>
125         </executions>
126       </plugin>
127       <plugin>
128         <artifactId>maven-checkstyle-plugin</artifactId>
129         <configuration>
130           <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
131           <consoleOutput>true</consoleOutput>
132           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
133         </configuration>
134         <executions>
135           <execution>
136             <goals>
137               <goal>check</goal>
138             </goals>
139             <phase>process-sources</phase>
140           </execution>
141         </executions>
142       </plugin>
143     </plugins>
144   </build>
145 </project>