Bump versions to 3.0.9-SNAPSHOT
[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.9-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.9.0</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-jdk18on</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.bouncycastle</groupId>
51             <artifactId>bcprov-jdk18on</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-jdk18on</artifactId>
161                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
162                                     <overWrite>true</overWrite>
163                                     <destFileName>bcpkix-jdk18on.jar</destFileName>
164                                 </artifactItem>
165                                 <artifactItem>
166                                     <groupId>org.bouncycastle</groupId>
167                                     <artifactId>bcprov-jdk18on</artifactId>
168                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
169                                     <overWrite>true</overWrite>
170                                     <destFileName>bcprov-jdk18on.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>
181                     <createDependencyReducedPom>false</createDependencyReducedPom>
182                 </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-jdk18on.jar lib/bcpkix-jdk18on.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-jdk18on.jar lib/bcpkix-jdk18on.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>