7a234fe351d36961a5942607e846b3ed19881ec8
[netvirt.git] / bgpmanager / impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12     <parent>
13         <groupId>org.opendaylight.netvirt</groupId>
14         <artifactId>managed-tx-parent</artifactId>
15         <version>0.7.0-SNAPSHOT</version>
16         <relativePath>../../commons/managed-tx-parent</relativePath>
17     </parent>
18
19     <artifactId>bgpmanager-impl</artifactId>
20     <name>ODL :: netvirt :: ${project.artifactId}</name>
21     <packaging>bundle</packaging>
22     <modelVersion>4.0.0</modelVersion>
23
24     <dependencies>
25         <dependency>
26             <groupId>${project.groupId}</groupId>
27             <artifactId>bgpmanager-api</artifactId>
28             <version>${project.version}</version>
29         </dependency>
30         <dependency>
31             <groupId>${project.groupId}</groupId>
32             <artifactId>elanmanager-api</artifactId>
33             <version>${project.version}</version>
34         </dependency>
35         <dependency>
36             <groupId>org.opendaylight.genius</groupId>
37             <artifactId>mdsalutil-api</artifactId>
38             <version>${genius.version}</version>
39         </dependency>
40         <dependency>
41             <groupId>${project.groupId}</groupId>
42             <artifactId>model-bgp</artifactId>
43             <version>${model.bgp.version}</version>
44         </dependency>
45         <dependency>
46             <groupId>org.apache.thrift</groupId>
47             <artifactId>libthrift</artifactId>
48             <version>0.9.3</version>
49         </dependency>
50         <dependency>
51             <groupId>${project.groupId}</groupId>
52             <artifactId>vpnmanager-api</artifactId>
53             <version>${project.version}</version>
54         </dependency>
55         <dependency>
56             <groupId>org.opendaylight.controller</groupId>
57             <artifactId>sal-binding-broker-impl</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>org.opendaylight.controller</groupId>
62             <artifactId>sal-binding-broker-impl</artifactId>
63             <scope>test</scope>
64             <type>test-jar</type>
65         </dependency>
66         <dependency>
67             <groupId>org.apache.karaf.shell</groupId>
68             <artifactId>org.apache.karaf.shell.console</artifactId>
69             <scope>provided</scope>
70         </dependency>
71         <dependency>
72             <groupId>com.google.truth</groupId>
73             <artifactId>truth</artifactId>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.opendaylight.infrautils</groupId>
78             <artifactId>metrics-api</artifactId>
79             <version>${infrautils.version}</version>
80         </dependency>
81     </dependencies>
82
83     <build>
84         <plugins>
85             <plugin>
86                 <groupId>org.apache.aries.blueprint</groupId>
87                 <artifactId>blueprint-maven-plugin</artifactId>
88             </plugin>
89             <plugin>
90                 <groupId>org.apache.felix</groupId>
91                 <artifactId>maven-bundle-plugin</artifactId>
92                 <extensions>true</extensions>
93                 <configuration>
94                     <instructions>
95                         <!-- We purposely don't export any packages to avoid any dependencies
96                              on this bundle and prevent @Singleton annotated classes from being
97                              accidently included in another bundle's blueprint XML  -->
98                         <Export-Package/>
99                     </instructions>
100                 </configuration>
101             </plugin>
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-checkstyle-plugin</artifactId>
105                 <configuration>
106                     <excludes>**/gen/**/*</excludes>
107                 </configuration>
108             </plugin>
109             <plugin>
110                 <groupId>org.apache.maven.plugins</groupId>
111                 <artifactId>maven-pmd-plugin</artifactId>
112                 <configuration>
113                     <excludes>**/gen/**/*</excludes>
114                 </configuration>
115             </plugin>
116             <plugin>
117                 <groupId>org.codehaus.mojo</groupId>
118                 <artifactId>findbugs-maven-plugin</artifactId>
119                 <configuration>
120                     <failOnError>true</failOnError>
121                     <!--
122                       We specifically include the packages to analyze since we don't want the
123                       thrift-generated classes analyzed since they yield violations. It would be
124                       better to specify the packages to exclude which can be done via an
125                       <excludeFilterFile> but then we wouldn't pick up the exclusions filter file
126                       from odlparent.
127
128                       NOTE: it would be nice to list each package on a separate line but FindBugs
129                       doesn't seem to trim WS between the commas.
130                     -->
131                     <onlyAnalyze>
132                         org.opendaylight.netvirt.bgpmanager.*,org.opendaylight.netvirt.bgpmanager.commands.*,org.opendaylight.netvirt.bgpmanager.oam.*,org.opendaylight.netvirt.bgpmanager.thrift.client.*,org.opendaylight.netvirt.bgpmanager.thrift.server.*
133                     </onlyAnalyze>
134                 </configuration>
135             </plugin>
136         </plugins>
137     </build>
138 </project>