Release Beryllium-SR3
[netconf.git] / opendaylight / netconf / tools / netconf-testtool / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2014 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
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13
14     <parent>
15         <groupId>org.opendaylight.netconf</groupId>
16         <artifactId>netconf-tools</artifactId>
17         <version>1.0.3-Beryllium-SR3</version>
18     </parent>
19
20     <artifactId>netconf-testtool</artifactId>
21     <name>${project.artifactId}</name>
22
23     <dependencies>
24         <dependency>
25             <groupId>net.sourceforge.argparse4j</groupId>
26             <artifactId>argparse4j</artifactId>
27             <version>0.4.3</version>
28         </dependency>
29         <dependency>
30             <groupId>ch.qos.logback</groupId>
31             <artifactId>logback-classic</artifactId>
32             <scope>compile</scope>
33         </dependency>
34         <dependency>
35             <groupId>com.ning</groupId>
36             <artifactId>async-http-client</artifactId>
37             <version>1.9.24</version>
38         </dependency>
39         <dependency>
40             <groupId>org.bouncycastle</groupId>
41             <artifactId>bcpkix-jdk15on</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.bouncycastle</groupId>
45             <artifactId>bcprov-jdk15on</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>netconf-netty-util</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>${project.groupId}</groupId>
53             <artifactId>netconf-auth</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.opendaylight.controller</groupId>
57             <artifactId>commons.logback_settings</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>${project.groupId}</groupId>
61             <artifactId>config-netconf-connector</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>${project.groupId}</groupId>
65             <artifactId>sal-netconf-connector</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.opendaylight.controller</groupId>
69             <artifactId>logback-config</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.opendaylight.yangtools</groupId>
73             <artifactId>mockito-configuration</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.slf4j</groupId>
77             <artifactId>slf4j-api</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>com.google.guava</groupId>
81             <artifactId>guava</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.opendaylight.controller</groupId>
85             <artifactId>config-util</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>${project.groupId}</groupId>
89             <artifactId>netconf-api</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>${project.groupId}</groupId>
93             <artifactId>ietf-netconf-monitoring</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>${project.groupId}</groupId>
97             <artifactId>ietf-netconf-monitoring-extension</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>${project.groupId}</groupId>
101             <artifactId>netconf-client</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.opendaylight.mdsal.model</groupId>
105             <artifactId>ietf-yang-types</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.opendaylight.mdsal.model</groupId>
109             <artifactId>ietf-inet-types</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>${project.groupId}</groupId>
113             <artifactId>netconf-impl</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>${project.groupId}</groupId>
117             <artifactId>netconf-mapping-api</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>${project.groupId}</groupId>
121             <artifactId>netconf-monitoring</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>${project.groupId}</groupId>
125             <artifactId>netconf-ssh</artifactId>
126         </dependency>
127         <dependency>
128             <groupId>org.opendaylight.controller</groupId>
129             <artifactId>netty-config-api</artifactId>
130         </dependency>
131         <dependency>
132             <groupId>org.opendaylight.controller</groupId>
133             <artifactId>sal-inmemory-datastore</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>org.opendaylight.netconf</groupId>
137             <artifactId>mdsal-netconf-connector</artifactId>
138         </dependency>
139     </dependencies>
140
141     <build>
142         <plugins>
143             <plugin>
144                 <groupId>org.apache.maven.plugins</groupId>
145                 <artifactId>maven-dependency-plugin</artifactId>
146                 <executions>
147                     <execution>
148                         <id>stress-client dependency copy</id>
149                         <goals>
150                             <goal>copy</goal>
151                         </goals>
152                         <configuration>
153                             <artifactItems>
154                                 <artifactItem>
155                                     <groupId>org.bouncycastle</groupId>
156                                     <artifactId>bcpkix-jdk15on</artifactId>
157                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
158                                     <overWrite>true</overWrite>
159                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
160                                 </artifactItem>
161                                 <artifactItem>
162                                     <groupId>org.bouncycastle</groupId>
163                                     <artifactId>bcprov-jdk15on</artifactId>
164                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
165                                     <overWrite>true</overWrite>
166                                     <destFileName>bcprov-jdk15on.jar</destFileName>
167                                 </artifactItem>
168                             </artifactItems>
169                         </configuration>
170                     </execution>
171                 </executions>
172             </plugin>
173             <plugin>
174                 <groupId>org.apache.maven.plugins</groupId>
175                 <artifactId>maven-shade-plugin</artifactId>
176                 <configuration></configuration>
177                 <executions>
178                     <execution>
179                         <goals>
180                             <goal>shade</goal>
181                         </goals>
182                         <phase>package</phase>
183                         <configuration>
184                             <!-- TODO investigate why jar fails without this filter-->
185                             <filters>
186                                 <filter>
187                                     <artifact>*:*</artifact>
188                                     <excludes>
189                                         <exclude>META-INF/*.SF</exclude>
190                                         <exclude>META-INF/*.DSA</exclude>
191                                         <exclude>META-INF/*.RSA</exclude>
192                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
193                                     </excludes>
194                                 </filter>
195                             </filters>
196                             <artifactSet>
197                                 <excludes>
198                                     <exclude>com.ning</exclude>
199                                 </excludes>
200                             </artifactSet>
201                             <transformers>
202                                 <transformer
203                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
204                                     <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
205                                 </transformer>
206                             </transformers>
207                             <shadedArtifactAttached>true</shadedArtifactAttached>
208                             <shadedClassifierName>executable</shadedClassifierName>
209                         </configuration>
210                     </execution>
211
212                     <execution>
213                         <id>stress-client</id>
214                         <goals>
215                             <goal>shade</goal>
216                         </goals>
217                         <phase>package</phase>
218                         <configuration>
219                             <shadedArtifactId>stress-client</shadedArtifactId>
220                             <filters>
221                                 <filter>
222                                     <artifact>*:*</artifact>
223                                     <excludes>
224                                         <exclude>META-INF/*.SF</exclude>
225                                         <exclude>META-INF/*.DSA</exclude>
226                                         <exclude>META-INF/*.RSA</exclude>
227                                         <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
228                                         <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
229                                         <exclude>AcceptingAuthProvider</exclude>
230                                         <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
231                                         <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
232                                         <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
233                                         <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
234                                     </excludes>
235                                 </filter>
236                             </filters>
237                             <artifactSet>
238                                 <excludes>
239                                     <exclude>org.bouncycastle:*</exclude>
240                                 </excludes>
241                             </artifactSet>
242                             <transformers>
243                                 <transformer
244                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
245                                     <manifestEntries>
246                                         <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
247                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
248                                     </manifestEntries>
249                                 </transformer>
250                             </transformers>
251                             <shadedArtifactAttached>true</shadedArtifactAttached>
252                             <shadedClassifierName>stress-client</shadedClassifierName>
253                         </configuration>
254                     </execution>
255
256                     <execution>
257                         <id>restconf-perf-client</id>
258                         <goals>
259                             <goal>shade</goal>
260                         </goals>
261                         <phase>package</phase>
262                         <configuration>
263                             <shadedArtifactId>rest-perf-client</shadedArtifactId>
264                             <filters>
265                                 <filter>
266                                     <artifact>*:*</artifact>
267                                     <excludes>
268                                         <exclude>META-INF/*.SF</exclude>
269                                         <exclude>META-INF/*.DSA</exclude>
270                                         <exclude>META-INF/*.RSA</exclude>
271                                         <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
272                                         <exclude>AcceptingAuthProvider</exclude>
273                                         <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
274                                         <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
275                                         <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
276                                         <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
277                                     </excludes>
278                                 </filter>
279                             </filters>
280                             <artifactSet>
281                                 <excludes>
282                                     <exclude>org.bouncycastle:*</exclude>
283                                     <exclude>com.google:*</exclude>
284                                     <exclude>org.opendaylight.yangtools</exclude>
285                                     <exclude>org.opendaylight.yang</exclude>
286                                 </excludes>
287                             </artifactSet>
288                             <transformers>
289                                 <transformer
290                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
291                                     <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
292                                 </transformer>
293                             </transformers>
294                             <shadedArtifactAttached>true</shadedArtifactAttached>
295                             <shadedClassifierName>rest-perf-client</shadedClassifierName>
296                         </configuration>
297                     </execution>
298                 </executions>
299             </plugin>
300             <plugin>
301                 <artifactId>maven-assembly-plugin</artifactId>
302                 <configuration>
303                     <descriptors>
304                         <descriptor>src/main/assembly/stress-client.xml</descriptor>
305                     </descriptors>
306                     <finalName>stress-client-${project.version}-package</finalName>
307                 </configuration>
308                 <executions>
309                     <execution>
310                         <id>make-assembly</id>
311                         <phase>package</phase>
312                         <goals>
313                             <goal>single</goal>
314                         </goals>
315                     </execution>
316                 </executions>
317             </plugin>
318         </plugins>
319     </build>
320
321 </project>