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