280e009dd54a550a081258c88deccaefd5674300
[bgpcep.git] / bmp / bmp-mock / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  Copyright (c) 2016 Cisco Systems, Inc. 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
10         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
11         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
12     <modelVersion>4.0.0</modelVersion>
13     <parent>
14         <groupId>org.opendaylight.bgpcep</groupId>
15         <artifactId>testtool-parent</artifactId>
16         <version>0.21.3-SNAPSHOT</version>
17         <relativePath>../../testtool-parent</relativePath>
18     </parent>
19
20     <artifactId>bgp-bmp-mock</artifactId>
21     <name>bmp-mock</name>
22
23     <dependencies>
24         <dependency>
25             <groupId>${project.groupId}</groupId>
26             <artifactId>concepts</artifactId>
27         </dependency>
28         <dependency>
29             <groupId>${project.groupId}</groupId>
30             <artifactId>bgp-bmp-api</artifactId>
31         </dependency>
32         <dependency>
33             <groupId>${project.groupId}</groupId>
34             <artifactId>bgp-bmp-spi</artifactId>
35         </dependency>
36         <dependency>
37             <groupId>${project.groupId}</groupId>
38             <artifactId>bgp-bmp-impl</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>${project.groupId}</groupId>
42             <artifactId>bgp-bmp-parser-impl</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>${project.groupId}</groupId>
46             <artifactId>bgp-parser-api</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>${project.groupId}</groupId>
50             <artifactId>bgp-parser-spi</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>${project.groupId}</groupId>
54             <artifactId>bgp-parser-impl</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>${project.groupId}</groupId>
58             <artifactId>bgp-concepts</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>${project.groupId}</groupId>
62             <artifactId>util</artifactId>
63         </dependency>
64
65         <dependency>
66             <groupId>ch.qos.logback</groupId>
67             <artifactId>logback-classic</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>com.google.guava</groupId>
71             <artifactId>guava</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>io.netty</groupId>
75             <artifactId>netty-transport</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>io.netty</groupId>
79             <artifactId>netty-common</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>net.sourceforge.argparse4j</groupId>
83             <artifactId>argparse4j</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.eclipse.jdt</groupId>
87             <artifactId>org.eclipse.jdt.annotation</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>org.opendaylight.yangtools</groupId>
91             <artifactId>yang-common</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
95             <artifactId>rfc6991-ietf-inet-types</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>org.opendaylight.mdsal</groupId>
99             <artifactId>yang-binding</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>${project.groupId}</groupId>
103             <artifactId>testtool-util</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.slf4j</groupId>
107             <artifactId>slf4j-api</artifactId>
108             <scope>compile</scope>
109         </dependency>
110     </dependencies>
111     <build>
112         <plugins>
113             <plugin>
114                 <groupId>org.apache.maven.plugins</groupId>
115                 <artifactId>maven-jar-plugin</artifactId>
116                 <configuration>
117                     <archive>
118                         <manifest>
119                             <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
120                         </manifest>
121                     </archive>
122                 </configuration>
123             </plugin>
124             <plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-shade-plugin</artifactId>
127                 <configuration>
128                     <!-- to solve the exception: "Invalid signature file digest for Manifest main attributes" -->
129                     <filters>
130                         <filter>
131                             <artifact>*:*</artifact>
132                             <excludes>
133                                 <exclude>META-INF/*.SF</exclude>
134                                 <exclude>META-INF/*.DSA</exclude>
135                                 <exclude>META-INF/*.RSA</exclude>
136                             </excludes>
137                         </filter>
138                     </filters>
139                 </configuration>
140                 <executions>
141                     <execution>
142                         <phase>package</phase>
143                         <goals>
144                             <goal>shade</goal>
145                         </goals>
146                         <configuration>
147                             <transformers>
148                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
149                                     <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
150                                 </transformer>
151                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
152                             </transformers>
153                             <shadedArtifactAttached>true</shadedArtifactAttached>
154                             <shadedClassifierName>executable</shadedClassifierName>
155                         </configuration>
156                     </execution>
157                 </executions>
158             </plugin>
159         </plugins>
160     </build>
161 </project>