Add eddsa dependency to netconf-testtool
[netconf.git] / 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-parent</artifactId>
17         <version>1.9.0-SNAPSHOT</version>
18         <relativePath>../../../parent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.netconf</groupId>
22     <artifactId>netconf-testtool</artifactId>
23     <name>${project.artifactId}</name>
24     <version>1.9.0-SNAPSHOT</version>
25     <packaging>jar</packaging>
26
27     <properties>
28         <sonar.skip>true</sonar.skip>
29     </properties>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.codehaus.janino</groupId>
34             <artifactId>janino</artifactId>
35             <version>2.6.1</version>
36         </dependency>
37         <dependency>
38             <groupId>net.sourceforge.argparse4j</groupId>
39             <artifactId>argparse4j</artifactId>
40             <version>0.8.1</version>
41         </dependency>
42         <dependency>
43             <groupId>ch.qos.logback</groupId>
44             <artifactId>logback-classic</artifactId>
45             <scope>compile</scope>
46         </dependency>
47         <dependency>
48             <groupId>com.ning</groupId>
49             <artifactId>async-http-client</artifactId>
50             <version>1.9.40</version>
51         </dependency>
52         <dependency>
53             <groupId>org.bouncycastle</groupId>
54             <artifactId>bcpkix-jdk15on</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.bouncycastle</groupId>
58             <artifactId>bcprov-jdk15on</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>${project.groupId}</groupId>
62             <artifactId>netconf-netty-util</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>${project.groupId}</groupId>
66             <artifactId>netconf-auth</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>${project.groupId}</groupId>
70             <artifactId>sal-netconf-connector</artifactId>
71         </dependency>
72        <dependency>
73             <groupId>org.opendaylight.yangtools</groupId>
74             <artifactId>mockito-configuration</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.slf4j</groupId>
78             <artifactId>slf4j-api</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>com.google.guava</groupId>
82             <artifactId>guava</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>${project.groupId}</groupId>
86             <artifactId>netconf-api</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>${project.groupId}</groupId>
90             <artifactId>ietf-netconf-monitoring</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>${project.groupId}</groupId>
94             <artifactId>ietf-netconf-monitoring-extension</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>${project.groupId}</groupId>
98             <artifactId>netconf-client</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
102             <artifactId>rfc6991</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>${project.groupId}</groupId>
106             <artifactId>netconf-impl</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>${project.groupId}</groupId>
110             <artifactId>netconf-mapping-api</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.opendaylight.netconf</groupId>
114             <artifactId>mdsal-netconf-monitoring</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.opendaylight.mdsal</groupId>
118             <artifactId>mdsal-dom-broker</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.opendaylight.mdsal</groupId>
122             <artifactId>mdsal-dom-inmemory-datastore</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.opendaylight.netconf</groupId>
126             <artifactId>mdsal-netconf-connector</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>${project.groupId}</groupId>
130             <artifactId>mdsal-netconf-ssh</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>net.i2p.crypto</groupId>
134             <artifactId>eddsa</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>org.apache.karaf.features</groupId>
138             <artifactId>org.apache.karaf.features.core</artifactId>
139             <version>${karaf.version}</version>
140         </dependency>
141         <dependency>
142             <groupId>org.xmlunit</groupId>
143             <artifactId>xmlunit-core</artifactId>
144         </dependency>
145         <dependency>
146             <groupId>org.xmlunit</groupId>
147             <artifactId>xmlunit-assertj</artifactId>
148         </dependency>
149     </dependencies>
150
151     <build>
152         <plugins>
153             <plugin>
154                 <groupId>org.apache.maven.plugins</groupId>
155                 <artifactId>maven-dependency-plugin</artifactId>
156                 <executions>
157                     <execution>
158                         <id>stress-client dependency copy</id>
159                         <goals>
160                             <goal>copy</goal>
161                         </goals>
162                         <configuration>
163                             <artifactItems>
164                                 <artifactItem>
165                                     <groupId>org.bouncycastle</groupId>
166                                     <artifactId>bcpkix-jdk15on</artifactId>
167                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
168                                     <overWrite>true</overWrite>
169                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
170                                 </artifactItem>
171                                 <artifactItem>
172                                     <groupId>org.bouncycastle</groupId>
173                                     <artifactId>bcprov-jdk15on</artifactId>
174                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
175                                     <overWrite>true</overWrite>
176                                     <destFileName>bcprov-jdk15on.jar</destFileName>
177                                 </artifactItem>
178                             </artifactItems>
179                         </configuration>
180                     </execution>
181                 </executions>
182             </plugin>
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-shade-plugin</artifactId>
186                 <configuration></configuration>
187                 <executions>
188                     <execution>
189                         <goals>
190                             <goal>shade</goal>
191                         </goals>
192                         <phase>package</phase>
193                         <configuration>
194                             <!-- TODO investigate why jar fails without this filter-->
195                             <filters>
196                                 <filter>
197                                     <artifact>*:*</artifact>
198                                     <excludes>
199                                         <exclude>META-INF/*.SF</exclude>
200                                         <exclude>META-INF/*.DSA</exclude>
201                                         <exclude>META-INF/*.RSA</exclude>
202                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
203                                     </excludes>
204                                 </filter>
205                             </filters>
206                               <transformers>
207                                   <transformer
208                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
209                                       <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
210                                   </transformer>
211                               </transformers>
212                               <shadedArtifactAttached>true</shadedArtifactAttached>
213                               <shadedClassifierName>executable</shadedClassifierName>
214                           </configuration>
215                       </execution>
216
217                       <execution>
218                           <id>stress-client</id>
219                           <goals>
220                               <goal>shade</goal>
221                           </goals>
222                           <phase>package</phase>
223                           <configuration>
224                               <shadedArtifactId>stress-client</shadedArtifactId>
225                               <filters>
226                                   <filter>
227                                       <artifact>*:*</artifact>
228                                       <excludes>
229                                           <exclude>META-INF/*.SF</exclude>
230                                           <exclude>META-INF/*.DSA</exclude>
231                                           <exclude>META-INF/*.RSA</exclude>
232                                           <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
233                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
234                                           <exclude>AcceptingAuthProvider</exclude>
235                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
236                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
237                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
238                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
239                                       </excludes>
240                                   </filter>
241                               </filters>
242                               <artifactSet>
243                                   <excludes>
244                                      <exclude>org.bouncycastle:*</exclude>
245                                   </excludes>
246                               </artifactSet>
247                               <transformers>
248                                   <transformer
249                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
250                                       <manifestEntries>
251                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
252                                           <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
253                                       </manifestEntries>
254                                   </transformer>
255                               </transformers>
256                               <shadedArtifactAttached>true</shadedArtifactAttached>
257                               <shadedClassifierName>stress-client</shadedClassifierName>
258                           </configuration>
259                       </execution>
260
261                       <execution>
262                           <id>restconf-perf-client</id>
263                           <goals>
264                               <goal>shade</goal>
265                           </goals>
266                           <phase>package</phase>
267                           <configuration>
268                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
269                               <filters>
270                                   <filter>
271                                       <artifact>*:*</artifact>
272                                       <excludes>
273                                           <exclude>META-INF/*.SF</exclude>
274                                           <exclude>META-INF/*.DSA</exclude>
275                                           <exclude>META-INF/*.RSA</exclude>
276                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
277                                           <exclude>AcceptingAuthProvider</exclude>
278                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
279                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
280                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
281                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
282                                       </excludes>
283                                   </filter>
284                               </filters>
285                               <artifactSet>
286                                   <excludes>
287                                       <exclude>org.bouncycastle:*</exclude>
288                                       <exclude>com.google:*</exclude>
289                                       <exclude>org.opendaylight.yangtools</exclude>
290                                       <exclude>org.opendaylight.yang</exclude>
291                                   </excludes>
292                               </artifactSet>
293                               <transformers>
294                                   <transformer
295                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
296                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
297                                   </transformer>
298                               </transformers>
299                               <shadedArtifactAttached>true</shadedArtifactAttached>
300                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
301                           </configuration>
302                       </execution>
303
304                     <execution>
305                         <id>scale-util</id>
306                         <goals>
307                             <goal>shade</goal>
308                         </goals>
309                         <phase>package</phase>
310                         <configuration>
311                             <shadedArtifactId>scale-util</shadedArtifactId>
312                             <filters>
313                                 <filter>
314                                     <artifact>*:*</artifact>
315                                     <excludes>
316                                         <exclude>META-INF/*.SF</exclude>
317                                         <exclude>META-INF/*.DSA</exclude>
318                                         <exclude>META-INF/*.RSA</exclude>
319                                     </excludes>
320                                 </filter>
321                             </filters>
322                             <transformers>
323                                 <transformer
324                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
325                                     <manifestEntries>
326                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
327                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
328                                     </manifestEntries>
329                                 </transformer>
330                             </transformers>
331                             <shadedArtifactAttached>true</shadedArtifactAttached>
332                             <shadedClassifierName>scale-util</shadedClassifierName>
333                         </configuration>
334                     </execution>
335                   </executions>
336               </plugin>
337               <plugin>
338                   <artifactId>maven-assembly-plugin</artifactId>
339                   <configuration>
340                       <descriptors>
341                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
342                       </descriptors>
343                       <finalName>stress-client-${project.version}-package</finalName>
344                   </configuration>
345                   <executions>
346                       <execution>
347                           <id>make-assembly</id>
348                           <phase>package</phase>
349                           <goals>
350                               <goal>single</goal>
351                           </goals>
352                       </execution>
353                   </executions>
354               </plugin>
355               <plugin>
356                   <artifactId>maven-surefire-plugin</artifactId>
357                   <configuration>
358                       <reportFormat>plain</reportFormat>
359                   </configuration>
360               </plugin>
361           </plugins>
362       </build>
363
364   </project>