bcb582119a607f1890d5b48f5ac2f3c97cd665da
[transportpce.git] / tests / 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.odlparent</groupId>
16         <artifactId>odlparent</artifactId>
17         <version>2.0.5</version>
18         <relativePath/>
19     </parent>
20
21     <groupId>org.opendaylight.netconf</groupId>
22     <artifactId>netconf-testtool</artifactId>
23     <name>${project.artifactId}</name>
24     <version>1.3.1</version>
25     <packaging>jar</packaging>
26
27     <properties>
28         <sonar.skip>true</sonar.skip>
29     </properties>
30
31     <dependencyManagement>
32         <dependencies>
33             <dependency>
34                 <groupId>org.opendaylight.netconf</groupId>
35                 <artifactId>netconf-artifacts</artifactId>
36                 <version>${project.version}</version>
37                 <type>pom</type>
38                 <scope>import</scope>
39             </dependency>
40             <dependency>
41                 <groupId>org.opendaylight.yangtools</groupId>
42                 <artifactId>yangtools-artifacts</artifactId>
43                 <version>1.2.1</version>
44                 <type>pom</type>
45                 <scope>import</scope>
46             </dependency>
47             <dependency>
48                 <groupId>org.opendaylight.controller</groupId>
49                 <artifactId>config-artifacts</artifactId>
50                 <version>0.7.1</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54             <dependency>
55                 <groupId>org.opendaylight.controller</groupId>
56                 <artifactId>mdsal-artifacts</artifactId>
57                 <version>1.6.1</version>
58                 <type>pom</type>
59                 <scope>import</scope>
60             </dependency>
61             <dependency>
62                 <groupId>org.opendaylight.mdsal.model</groupId>
63                 <artifactId>mdsal-model-artifacts</artifactId>
64                 <version>0.11.1</version>
65                 <type>pom</type>
66                 <scope>import</scope>
67             </dependency>
68         </dependencies>
69     </dependencyManagement>
70
71     <dependencies>
72         <dependency>
73             <groupId>org.codehaus.janino</groupId>
74             <artifactId>janino</artifactId>
75             <version>2.6.1</version>
76         </dependency>
77         <dependency>
78             <groupId>net.sourceforge.argparse4j</groupId>
79             <artifactId>argparse4j</artifactId>
80             <version>0.4.3</version>
81         </dependency>
82         <dependency>
83             <groupId>ch.qos.logback</groupId>
84             <artifactId>logback-classic</artifactId>
85             <scope>compile</scope>
86         </dependency>
87         <dependency>
88             <groupId>com.ning</groupId>
89             <artifactId>async-http-client</artifactId>
90             <version>1.9.24</version>
91         </dependency>
92         <dependency>
93             <groupId>org.bouncycastle</groupId>
94             <artifactId>bcpkix-jdk15on</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.bouncycastle</groupId>
98             <artifactId>bcprov-jdk15on</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>${project.groupId}</groupId>
102             <artifactId>netconf-netty-util</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>${project.groupId}</groupId>
106             <artifactId>netconf-auth</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>${project.groupId}</groupId>
110             <artifactId>config-netconf-connector</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>${project.groupId}</groupId>
114             <artifactId>sal-netconf-connector</artifactId>
115         </dependency>
116        <dependency>
117             <groupId>org.opendaylight.yangtools</groupId>
118             <artifactId>mockito-configuration</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.slf4j</groupId>
122             <artifactId>slf4j-api</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>com.google.guava</groupId>
126             <artifactId>guava</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>${project.groupId}</groupId>
130             <artifactId>netconf-api</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>${project.groupId}</groupId>
134             <artifactId>ietf-netconf-monitoring</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>${project.groupId}</groupId>
138             <artifactId>ietf-netconf-monitoring-extension</artifactId>
139         </dependency>
140         <dependency>
141             <groupId>${project.groupId}</groupId>
142             <artifactId>netconf-client</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>org.opendaylight.mdsal.model</groupId>
146             <artifactId>ietf-yang-types-20130715</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.opendaylight.mdsal.model</groupId>
150             <artifactId>ietf-inet-types-2013-07-15</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>${project.groupId}</groupId>
154             <artifactId>netconf-impl</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>${project.groupId}</groupId>
158             <artifactId>netconf-mapping-api</artifactId>
159         </dependency>
160         <dependency>
161             <groupId>${project.groupId}</groupId>
162             <artifactId>netconf-monitoring</artifactId>
163         </dependency>
164         <dependency>
165             <groupId>${project.groupId}</groupId>
166             <artifactId>netconf-ssh</artifactId>
167         </dependency>
168         <dependency>
169             <groupId>org.opendaylight.controller</groupId>
170             <artifactId>netty-config-api</artifactId>
171         </dependency>
172         <dependency>
173             <groupId>org.opendaylight.controller</groupId>
174             <artifactId>sal-inmemory-datastore</artifactId>
175         </dependency>
176         <dependency>
177             <groupId>org.opendaylight.netconf</groupId>
178             <artifactId>mdsal-netconf-connector</artifactId>
179         </dependency>
180         <dependency>
181             <groupId>org.apache.karaf.features</groupId>
182             <artifactId>org.apache.karaf.features.core</artifactId>
183             <version>${karaf.version}</version>
184         </dependency>
185     </dependencies>
186
187     <build>
188         <plugins>
189             <plugin>
190                 <groupId>org.apache.maven.plugins</groupId>
191                 <artifactId>maven-dependency-plugin</artifactId>
192                 <executions>
193                     <execution>
194                         <id>stress-client dependency copy</id>
195                         <goals>
196                             <goal>copy</goal>
197                         </goals>
198                         <configuration>
199                             <artifactItems>
200                                 <artifactItem>
201                                     <groupId>org.bouncycastle</groupId>
202                                     <artifactId>bcpkix-jdk15on</artifactId>
203                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
204                                     <overWrite>true</overWrite>
205                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
206                                 </artifactItem>
207                                 <artifactItem>
208                                     <groupId>org.bouncycastle</groupId>
209                                     <artifactId>bcprov-jdk15on</artifactId>
210                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
211                                     <overWrite>true</overWrite>
212                                     <destFileName>bcprov-jdk15on.jar</destFileName>
213                                 </artifactItem>
214                             </artifactItems>
215                         </configuration>
216                     </execution>
217                 </executions>
218             </plugin>
219             <plugin>
220                 <groupId>org.apache.maven.plugins</groupId>
221                 <artifactId>maven-shade-plugin</artifactId>
222                 <configuration></configuration>
223                 <executions>
224                     <execution>
225                         <goals>
226                             <goal>shade</goal>
227                         </goals>
228                         <phase>package</phase>
229                         <configuration>
230                             <!-- TODO investigate why jar fails without this filter-->
231                             <filters>
232                                 <filter>
233                                     <artifact>*:*</artifact>
234                                     <excludes>
235                                         <exclude>META-INF/*.SF</exclude>
236                                         <exclude>META-INF/*.DSA</exclude>
237                                         <exclude>META-INF/*.RSA</exclude>
238                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
239                                     </excludes>
240                                 </filter>
241                             </filters>
242                               <transformers>
243                                   <transformer
244                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
245                                       <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
246                                   </transformer>
247                               </transformers>
248                               <shadedArtifactAttached>true</shadedArtifactAttached>
249                               <shadedClassifierName>executable</shadedClassifierName>
250                           </configuration>
251                       </execution>
252
253                       <execution>
254                           <id>stress-client</id>
255                           <goals>
256                               <goal>shade</goal>
257                           </goals>
258                           <phase>package</phase>
259                           <configuration>
260                               <shadedArtifactId>stress-client</shadedArtifactId>
261                               <filters>
262                                   <filter>
263                                       <artifact>*:*</artifact>
264                                       <excludes>
265                                           <exclude>META-INF/*.SF</exclude>
266                                           <exclude>META-INF/*.DSA</exclude>
267                                           <exclude>META-INF/*.RSA</exclude>
268                                           <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
269                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
270                                           <exclude>AcceptingAuthProvider</exclude>
271                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
272                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
273                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
274                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
275                                       </excludes>
276                                   </filter>
277                               </filters>
278                               <artifactSet>
279                                   <excludes>
280                                      <exclude>org.bouncycastle:*</exclude>
281                                   </excludes>
282                               </artifactSet>
283                               <transformers>
284                                   <transformer
285                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
286                                       <manifestEntries>
287                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
288                                           <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
289                                       </manifestEntries>
290                                   </transformer>
291                               </transformers>
292                               <shadedArtifactAttached>true</shadedArtifactAttached>
293                               <shadedClassifierName>stress-client</shadedClassifierName>
294                           </configuration>
295                       </execution>
296
297                       <execution>
298                           <id>restconf-perf-client</id>
299                           <goals>
300                               <goal>shade</goal>
301                           </goals>
302                           <phase>package</phase>
303                           <configuration>
304                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
305                               <filters>
306                                   <filter>
307                                       <artifact>*:*</artifact>
308                                       <excludes>
309                                           <exclude>META-INF/*.SF</exclude>
310                                           <exclude>META-INF/*.DSA</exclude>
311                                           <exclude>META-INF/*.RSA</exclude>
312                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
313                                           <exclude>AcceptingAuthProvider</exclude>
314                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
315                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
316                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
317                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
318                                       </excludes>
319                                   </filter>
320                               </filters>
321                               <artifactSet>
322                                   <excludes>
323                                       <exclude>org.bouncycastle:*</exclude>
324                                       <exclude>com.google:*</exclude>
325                                       <exclude>org.opendaylight.yangtools</exclude>
326                                       <exclude>org.opendaylight.yang</exclude>
327                                   </excludes>
328                               </artifactSet>
329                               <transformers>
330                                   <transformer
331                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
332                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
333                                   </transformer>
334                               </transformers>
335                               <shadedArtifactAttached>true</shadedArtifactAttached>
336                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
337                           </configuration>
338                       </execution>
339
340                     <execution>
341                         <id>scale-util</id>
342                         <goals>
343                             <goal>shade</goal>
344                         </goals>
345                         <phase>package</phase>
346                         <configuration>
347                             <shadedArtifactId>scale-util</shadedArtifactId>
348                             <filters>
349                                 <filter>
350                                     <artifact>*:*</artifact>
351                                     <excludes>
352                                         <exclude>META-INF/*.SF</exclude>
353                                         <exclude>META-INF/*.DSA</exclude>
354                                         <exclude>META-INF/*.RSA</exclude>
355                                     </excludes>
356                                 </filter>
357                             </filters>
358                             <transformers>
359                                 <transformer
360                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
361                                     <manifestEntries>
362                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
363                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
364                                     </manifestEntries>
365                                 </transformer>
366                             </transformers>
367                             <shadedArtifactAttached>true</shadedArtifactAttached>
368                             <shadedClassifierName>scale-util</shadedClassifierName>
369                         </configuration>
370                     </execution>
371                   </executions>
372               </plugin>
373               <plugin>
374                   <artifactId>maven-assembly-plugin</artifactId>
375                   <configuration>
376                       <descriptors>
377                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
378                       </descriptors>
379                       <finalName>stress-client-${project.version}-package</finalName>
380                   </configuration>
381                   <executions>
382                       <execution>
383                           <id>make-assembly</id>
384                           <phase>package</phase>
385                           <goals>
386                               <goal>single</goal>
387                           </goals>
388                       </execution>
389                   </executions>
390               </plugin>
391               <plugin>
392                   <groupId>org.apache.maven.plugins</groupId>
393                   <artifactId>maven-checkstyle-plugin</artifactId>
394                   <configuration>
395                       <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
396                   </configuration>
397               </plugin>
398           </plugins>
399       </build>
400
401   </project>