e3f709a2413bf4c862629c0a72938809a97b67ef
[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.6.3-SNAPSHOT</version>
18         <relativePath>../../netconf-parent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.netconf</groupId>
22     <artifactId>netconf-testtool</artifactId>
23     <name>${project.artifactId}</name>
24     <version>1.6.3-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>org.apache.karaf.features</groupId>
134             <artifactId>org.apache.karaf.features.core</artifactId>
135             <version>${karaf.version}</version>
136         </dependency>
137     </dependencies>
138
139     <build>
140         <plugins>
141             <plugin>
142                 <groupId>org.apache.maven.plugins</groupId>
143                 <artifactId>maven-dependency-plugin</artifactId>
144                 <executions>
145                     <execution>
146                         <id>stress-client dependency copy</id>
147                         <goals>
148                             <goal>copy</goal>
149                         </goals>
150                         <configuration>
151                             <artifactItems>
152                                 <artifactItem>
153                                     <groupId>org.bouncycastle</groupId>
154                                     <artifactId>bcpkix-jdk15on</artifactId>
155                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
156                                     <overWrite>true</overWrite>
157                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
158                                 </artifactItem>
159                                 <artifactItem>
160                                     <groupId>org.bouncycastle</groupId>
161                                     <artifactId>bcprov-jdk15on</artifactId>
162                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
163                                     <overWrite>true</overWrite>
164                                     <destFileName>bcprov-jdk15on.jar</destFileName>
165                                 </artifactItem>
166                             </artifactItems>
167                         </configuration>
168                     </execution>
169                 </executions>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-shade-plugin</artifactId>
174                 <configuration></configuration>
175                 <executions>
176                     <execution>
177                         <goals>
178                             <goal>shade</goal>
179                         </goals>
180                         <phase>package</phase>
181                         <configuration>
182                             <!-- TODO investigate why jar fails without this filter-->
183                             <filters>
184                                 <filter>
185                                     <artifact>*:*</artifact>
186                                     <excludes>
187                                         <exclude>META-INF/*.SF</exclude>
188                                         <exclude>META-INF/*.DSA</exclude>
189                                         <exclude>META-INF/*.RSA</exclude>
190                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
191                                     </excludes>
192                                 </filter>
193                             </filters>
194                               <transformers>
195                                   <transformer
196                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
197                                       <mainClass>org.opendaylight.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.netconf.test.tool.client.http</exclude>
221                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
222                                           <exclude>AcceptingAuthProvider</exclude>
223                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
224                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
225                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
226                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
227                                       </excludes>
228                                   </filter>
229                               </filters>
230                               <artifactSet>
231                                   <excludes>
232                                      <exclude>org.bouncycastle:*</exclude>
233                                   </excludes>
234                               </artifactSet>
235                               <transformers>
236                                   <transformer
237                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
238                                       <manifestEntries>
239                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
240                                           <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
241                                       </manifestEntries>
242                                   </transformer>
243                               </transformers>
244                               <shadedArtifactAttached>true</shadedArtifactAttached>
245                               <shadedClassifierName>stress-client</shadedClassifierName>
246                           </configuration>
247                       </execution>
248
249                       <execution>
250                           <id>restconf-perf-client</id>
251                           <goals>
252                               <goal>shade</goal>
253                           </goals>
254                           <phase>package</phase>
255                           <configuration>
256                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
257                               <filters>
258                                   <filter>
259                                       <artifact>*:*</artifact>
260                                       <excludes>
261                                           <exclude>META-INF/*.SF</exclude>
262                                           <exclude>META-INF/*.DSA</exclude>
263                                           <exclude>META-INF/*.RSA</exclude>
264                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
265                                           <exclude>AcceptingAuthProvider</exclude>
266                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
267                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
268                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
269                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
270                                       </excludes>
271                                   </filter>
272                               </filters>
273                               <artifactSet>
274                                   <excludes>
275                                       <exclude>org.bouncycastle:*</exclude>
276                                       <exclude>com.google:*</exclude>
277                                       <exclude>org.opendaylight.yangtools</exclude>
278                                       <exclude>org.opendaylight.yang</exclude>
279                                   </excludes>
280                               </artifactSet>
281                               <transformers>
282                                   <transformer
283                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
284                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
285                                   </transformer>
286                               </transformers>
287                               <shadedArtifactAttached>true</shadedArtifactAttached>
288                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
289                           </configuration>
290                       </execution>
291
292                     <execution>
293                         <id>scale-util</id>
294                         <goals>
295                             <goal>shade</goal>
296                         </goals>
297                         <phase>package</phase>
298                         <configuration>
299                             <shadedArtifactId>scale-util</shadedArtifactId>
300                             <filters>
301                                 <filter>
302                                     <artifact>*:*</artifact>
303                                     <excludes>
304                                         <exclude>META-INF/*.SF</exclude>
305                                         <exclude>META-INF/*.DSA</exclude>
306                                         <exclude>META-INF/*.RSA</exclude>
307                                     </excludes>
308                                 </filter>
309                             </filters>
310                             <transformers>
311                                 <transformer
312                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
313                                     <manifestEntries>
314                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
315                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
316                                     </manifestEntries>
317                                 </transformer>
318                             </transformers>
319                             <shadedArtifactAttached>true</shadedArtifactAttached>
320                             <shadedClassifierName>scale-util</shadedClassifierName>
321                         </configuration>
322                     </execution>
323                   </executions>
324               </plugin>
325               <plugin>
326                   <artifactId>maven-assembly-plugin</artifactId>
327                   <configuration>
328                       <descriptors>
329                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
330                       </descriptors>
331                       <finalName>stress-client-${project.version}-package</finalName>
332                   </configuration>
333                   <executions>
334                       <execution>
335                           <id>make-assembly</id>
336                           <phase>package</phase>
337                           <goals>
338                               <goal>single</goal>
339                           </goals>
340                       </execution>
341                   </executions>
342               </plugin>
343           </plugins>
344       </build>
345
346   </project>