207475b1680df76bd22bd36c8b94cb76c62d51c5
[bgpcep.git] / bmp / 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.bgpcep</groupId>
8         <artifactId>testtool-parent</artifactId>
9         <version>0.9.0-SNAPSHOT</version>
10         <relativePath>../../testtool-parent</relativePath>
11     </parent>
12
13     <artifactId>bgp-bmp-mock</artifactId>
14     <version>0.9.0-SNAPSHOT</version>
15     <name>bmp-mock</name>
16
17     <dependencies>
18         <dependency>
19             <groupId>org.opendaylight.bgpcep</groupId>
20             <artifactId>bgp-bmp-api</artifactId>
21         </dependency>
22         <dependency>
23             <groupId>org.opendaylight.bgpcep</groupId>
24             <artifactId>bgp-bmp-spi</artifactId>
25         </dependency>
26         <dependency>
27             <groupId>org.opendaylight.bgpcep</groupId>
28             <artifactId>bgp-bmp-impl</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.bgpcep</groupId>
32             <artifactId>bgp-bmp-parser-impl</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.opendaylight.bgpcep</groupId>
36             <artifactId>bgp-parser-api</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.bgpcep</groupId>
40             <artifactId>bgp-parser-spi</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.opendaylight.bgpcep</groupId>
44             <artifactId>bgp-parser-impl</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.opendaylight.bgpcep</groupId>
48             <artifactId>bgp-concepts</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>org.opendaylight.mdsal.model</groupId>
52             <artifactId>ietf-inet-types-2013-07-15</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.opendaylight.mdsal</groupId>
56             <artifactId>yang-binding</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>io.netty</groupId>
60             <artifactId>netty-transport</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.slf4j</groupId>
64             <artifactId>slf4j-api</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>ch.qos.logback</groupId>
68             <artifactId>logback-classic</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>com.google.guava</groupId>
72             <artifactId>guava</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>net.sourceforge.argparse4j</groupId>
76             <artifactId>argparse4j</artifactId>
77             <version>0.7.0</version>
78         </dependency>
79         <dependency>
80             <groupId>${project.groupId}</groupId>
81             <artifactId>testtool-util</artifactId>
82         </dependency>
83         <!-- test-scope dependencies -->
84         <dependency>
85             <groupId>junit</groupId>
86             <artifactId>junit</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.mockito</groupId>
90             <artifactId>mockito-core</artifactId>
91         </dependency>
92     </dependencies>
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.apache.maven.plugins</groupId>
97                 <artifactId>maven-jar-plugin</artifactId>
98                 <configuration>
99                     <archive>
100                         <manifest>
101                             <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
102                         </manifest>
103                     </archive>
104                 </configuration>
105             </plugin>
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-shade-plugin</artifactId>
109                 <configuration>
110                     <!-- to solve the exception: "Invalid signature file digest for Manifest main attributes" -->
111                     <filters>
112                         <filter>
113                             <artifact>*:*</artifact>
114                             <excludes>
115                                 <exclude>META-INF/*.SF</exclude>
116                                 <exclude>META-INF/*.DSA</exclude>
117                                 <exclude>META-INF/*.RSA</exclude>
118                             </excludes>
119                         </filter>
120                     </filters>
121                 </configuration>
122                 <executions>
123                     <execution>
124                         <phase>package</phase>
125                         <goals>
126                             <goal>shade</goal>
127                         </goals>
128                         <configuration>
129                             <transformers>
130                                 <transformer
131                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
132                                     <mainClass>org.opendaylight.protocol.bmp.mock.BmpMock</mainClass>
133                                 </transformer>
134                             </transformers>
135                             <shadedArtifactAttached>true</shadedArtifactAttached>
136                             <shadedClassifierName>executable</shadedClassifierName>
137                         </configuration>
138                     </execution>
139                 </executions>
140             </plugin>
141         </plugins>
142     </build>
143 </project>