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