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