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