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