6b9d0a81e1bfd2317172e829e535affc28014c3b
[bgpcep.git] / bgp / bmp-mock / pom.xml
1 <?xml version="1.0"?>
2 <project
3  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4  xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5     <modelVersion>4.0.0</modelVersion>
6     <parent>
7         <groupId>org.opendaylight.odlparent</groupId>
8         <artifactId>odlparent</artifactId>
9         <version>2.0.4</version>
10         <relativePath/>
11     </parent>
12
13     <groupId>org.opendaylight.bgpcep</groupId>
14     <artifactId>bgp-bmp-mock</artifactId>
15     <version>0.8.0-SNAPSHOT</version>
16     <name>bmp-mock</name>
17
18     <dependencyManagement>
19         <dependencies>
20             <dependency>
21                 <groupId>org.opendaylight.bgpcep</groupId>
22                 <artifactId>bgpcep-parent</artifactId>
23                 <version>0.8.0-SNAPSHOT</version>
24                 <type>pom</type>
25                 <scope>import</scope>
26             </dependency>
27         </dependencies>
28     </dependencyManagement>
29
30     <dependencies>
31         <dependency>
32             <groupId>org.opendaylight.bgpcep</groupId>
33              <artifactId>bgp-bmp-api</artifactId>
34         </dependency>
35         <dependency>
36             <groupId>org.opendaylight.bgpcep</groupId>
37             <artifactId>bgp-bmp-spi</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.opendaylight.bgpcep</groupId>
41             <artifactId>bgp-bmp-impl</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.opendaylight.bgpcep</groupId>
45             <artifactId>bgp-bmp-parser-impl</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>org.opendaylight.bgpcep</groupId>
49             <artifactId>bgp-parser-api</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>org.opendaylight.bgpcep</groupId>
53             <artifactId>bgp-parser-spi</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.opendaylight.bgpcep</groupId>
57             <artifactId>bgp-parser-impl</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>org.opendaylight.bgpcep</groupId>
61             <artifactId>bgp-concepts</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.opendaylight.mdsal.model</groupId>
65             <artifactId>ietf-inet-types-2013-07-15</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.opendaylight.mdsal</groupId>
69             <artifactId>yang-binding</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>io.netty</groupId>
73             <artifactId>netty-transport</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.slf4j</groupId>
77             <artifactId>slf4j-api</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>ch.qos.logback</groupId>
81             <artifactId>logback-classic</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>com.google.guava</groupId>
85             <artifactId>guava</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>net.sourceforge.argparse4j</groupId>
89             <artifactId>argparse4j</artifactId>
90             <version>0.7.0</version>
91         </dependency>
92         <dependency>
93             <groupId>${project.groupId}</groupId>
94             <artifactId>testtool-util</artifactId>
95         </dependency>
96         <!-- test-scope dependencies -->
97         <dependency>
98             <groupId>junit</groupId>
99             <artifactId>junit</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>org.mockito</groupId>
103             <artifactId>mockito-core</artifactId>
104         </dependency>
105     </dependencies>
106     <build>
107         <plugins>
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-jar-plugin</artifactId>
111                 <configuration>
112                     <archive>
113                         <manifest>
114                             <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
115                         </manifest>
116                     </archive>
117                 </configuration>
118             </plugin>
119             <plugin>
120                 <groupId>org.apache.maven.plugins</groupId>
121                 <artifactId>maven-shade-plugin</artifactId>
122                 <configuration>
123                     <!-- to solve the exception: "Invalid signature file digest for Manifest main attributes" -->
124                     <filters>
125                         <filter>
126                             <artifact>*:*</artifact>
127                             <excludes>
128                                 <exclude>META-INF/*.SF</exclude>
129                                 <exclude>META-INF/*.DSA</exclude>
130                                 <exclude>META-INF/*.RSA</exclude>
131                             </excludes>
132                         </filter>
133                     </filters>
134                 </configuration>
135                 <executions>
136                     <execution>
137                         <phase>package</phase>
138                         <goals>
139                             <goal>shade</goal>
140                         </goals>
141                        <configuration>
142                            <transformers>
143                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
144                                <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
145                            </transformer>
146                            </transformers>
147                            <shadedArtifactAttached>true</shadedArtifactAttached>
148                            <shadedClassifierName>executable</shadedClassifierName>
149                        </configuration>
150                     </execution>
151                 </executions>
152             </plugin>
153         </plugins>
154  </build>
155
156   <!--
157       Maven Site Configuration
158
159       The following configuration is necessary for maven-site-plugin to
160       correctly identify the correct deployment path for OpenDaylight Maven
161       sites.
162   -->
163   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
164
165   <distributionManagement>
166     <site>
167       <id>opendaylight-site</id>
168       <url>${nexus.site.url}/${project.artifactId}/</url>
169     </site>
170   </distributionManagement>
171 </project>