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