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