BUG-3335 Disable keepalives in netconf testtool
[controller.git] / opendaylight / netconf / 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.controller</groupId>
16         <artifactId>netconf-subsystem</artifactId>
17         <version>0.4.0-SNAPSHOT</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>org.opendaylight.controller</groupId>
61             <artifactId>config-netconf-connector</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.opendaylight.controller</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>${project.groupId}</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>org.opendaylight.controller</groupId>
93             <artifactId>ietf-netconf-monitoring</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.opendaylight.controller</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.yangtools.model</groupId>
105             <artifactId>ietf-yang-types</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.opendaylight.yangtools.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>${project.groupId}</groupId>
129             <artifactId>netty-config-api</artifactId>
130         </dependency>
131
132     </dependencies>
133
134     <build>
135         <plugins>
136             <plugin>
137                 <groupId>org.apache.maven.plugins</groupId>
138                 <artifactId>maven-dependency-plugin</artifactId>
139                 <executions>
140                     <execution>
141                         <id>stress-client dependency copy</id>
142                         <goals>
143                             <goal>copy</goal>
144                         </goals>
145                         <configuration>
146                             <artifactItems>
147                                 <artifactItem>
148                                     <groupId>org.bouncycastle</groupId>
149                                     <artifactId>bcpkix-jdk15on</artifactId>
150                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
151                                     <overWrite>true</overWrite>
152                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
153                                 </artifactItem>
154                                 <artifactItem>
155                                     <groupId>org.bouncycastle</groupId>
156                                     <artifactId>bcprov-jdk15on</artifactId>
157                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
158                                     <overWrite>true</overWrite>
159                                     <destFileName>bcprov-jdk15on.jar</destFileName>
160                                 </artifactItem>
161                             </artifactItems>
162                         </configuration>
163                     </execution>
164                 </executions>
165             </plugin>
166             <plugin>
167                 <groupId>org.apache.maven.plugins</groupId>
168                 <artifactId>maven-shade-plugin</artifactId>
169                 <configuration></configuration>
170                 <executions>
171                     <execution>
172                         <goals>
173                             <goal>shade</goal>
174                         </goals>
175                         <phase>package</phase>
176                         <configuration>
177                             <!-- TODO investigate why jar fails without this filter-->
178                             <filters>
179                                 <filter>
180                                     <artifact>*:*</artifact>
181                                     <excludes>
182                                         <exclude>META-INF/*.SF</exclude>
183                                         <exclude>META-INF/*.DSA</exclude>
184                                         <exclude>META-INF/*.RSA</exclude>
185                                         <exclude>org.opendaylight.controller.netconf.test.tool.client</exclude>
186                                     </excludes>
187                                 </filter>
188                             </filters>
189                             <artifactSet>
190                                 <excludes>
191                                     <exclude>com.ning</exclude>
192                                 </excludes>
193                             </artifactSet>
194                             <transformers>
195                                 <transformer
196                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
197                                     <mainClass>org.opendaylight.controller.netconf.test.tool.Main</mainClass>
198                                 </transformer>
199                             </transformers>
200                             <shadedArtifactAttached>true</shadedArtifactAttached>
201                             <shadedClassifierName>executable</shadedClassifierName>
202                         </configuration>
203                     </execution>
204
205                     <execution>
206                         <id>stress-client</id>
207                         <goals>
208                             <goal>shade</goal>
209                         </goals>
210                         <phase>package</phase>
211                         <configuration>
212                             <shadedArtifactId>stress-client</shadedArtifactId>
213                             <filters>
214                                 <filter>
215                                     <artifact>*:*</artifact>
216                                     <excludes>
217                                         <exclude>META-INF/*.SF</exclude>
218                                         <exclude>META-INF/*.DSA</exclude>
219                                         <exclude>META-INF/*.RSA</exclude>
220                                         <exclude>org.opendaylight.controller.netconf.test.tool.client.http</exclude>
221                                         <exclude>org.opendaylight.controller.netconf.test.tool.rpc</exclude>
222                                         <exclude>org.opendaylight.controller.netconf.test.tool.AcceptingAuthProvider</exclude>
223                                         <exclude>org.opendaylight.controller.netconf.test.tool.DummyMonitoringService</exclude>
224                                         <exclude>org.opendaylight.controller.netconf.test.tool.FakeModuleBuilderCapability</exclude>
225                                         <exclude>org.opendaylight.controller.netconf.test.tool.Main</exclude>
226                                         <exclude>org.opendaylight.controller.netconf.test.tool.ModuleBuilderCapability</exclude>
227                                         <exclude>org.opendaylight.controller.netconf.test.tool.NetconfDeviceSimulator</exclude>
228                                     </excludes>
229                                 </filter>
230                             </filters>
231                             <artifactSet>
232                                 <excludes>
233                                     <exclude>org.bouncycastle:*</exclude>
234                                 </excludes>
235                             </artifactSet>
236                             <transformers>
237                                 <transformer
238                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
239                                     <manifestEntries>
240                                         <Main-Class>org.opendaylight.controller.netconf.test.tool.client.stress.StressClient</Main-Class>
241                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
242                                     </manifestEntries>
243                                 </transformer>
244                             </transformers>
245                             <shadedArtifactAttached>true</shadedArtifactAttached>
246                             <shadedClassifierName>stress-client</shadedClassifierName>
247                         </configuration>
248                     </execution>
249
250                     <execution>
251                         <id>restconf-perf-client</id>
252                         <goals>
253                             <goal>shade</goal>
254                         </goals>
255                         <phase>package</phase>
256                         <configuration>
257                             <shadedArtifactId>rest-perf-client</shadedArtifactId>
258                             <filters>
259                                 <filter>
260                                     <artifact>*:*</artifact>
261                                     <excludes>
262                                         <exclude>META-INF/*.SF</exclude>
263                                         <exclude>META-INF/*.DSA</exclude>
264                                         <exclude>META-INF/*.RSA</exclude>
265                                         <exclude>org.opendaylight.controller.netconf.test.tool.rpc</exclude>
266                                         <exclude>org.opendaylight.controller.netconf.test.tool.AcceptingAuthProvider</exclude>
267                                         <exclude>org.opendaylight.controller.netconf.test.tool.DummyMonitoringService</exclude>
268                                         <exclude>org.opendaylight.controller.netconf.test.tool.FakeModuleBuilderCapability</exclude>
269                                         <exclude>org.opendaylight.controller.netconf.test.tool.Main</exclude>
270                                         <exclude>org.opendaylight.controller.netconf.test.tool.ModuleBuilderCapability</exclude>
271                                         <exclude>org.opendaylight.controller.netconf.test.tool.NetconfDeviceSimulator</exclude>
272                                     </excludes>
273                                 </filter>
274                             </filters>
275                             <artifactSet>
276                                 <excludes>
277                                     <exclude>org.bouncycastle:*</exclude>
278                                     <exclude>com.google:*</exclude>
279                                     <exclude>org.opendaylight.yangtools</exclude>
280                                     <exclude>org.opendaylight.yang</exclude>
281                                 </excludes>
282                             </artifactSet>
283                             <transformers>
284                                 <transformer
285                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
286                                     <mainClass>org.opendaylight.controller.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
287                                 </transformer>
288                             </transformers>
289                             <shadedArtifactAttached>true</shadedArtifactAttached>
290                             <shadedClassifierName>rest-perf-client</shadedClassifierName>
291                         </configuration>
292                     </execution>
293                 </executions>
294             </plugin>
295             <plugin>
296                 <artifactId>maven-assembly-plugin</artifactId>
297                 <configuration>
298                     <descriptors>
299                         <descriptor>src/main/assembly/stress-client.xml</descriptor>
300                     </descriptors>
301                     <finalName>stress-client-${project.version}-package</finalName>
302                 </configuration>
303                 <executions>
304                     <execution>
305                         <id>make-assembly</id>
306                         <phase>package</phase>
307                         <goals>
308                             <goal>single</goal>
309                         </goals>
310                     </execution>
311                 </executions>
312             </plugin>
313         </plugins>
314     </build>
315
316 </project>