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