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