Merge "Reimplement NetconfDevice schema setup without recursion"
[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                               <transformers>
209                                   <transformer
210                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
211                                       <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
212                                   </transformer>
213                               </transformers>
214                               <shadedArtifactAttached>true</shadedArtifactAttached>
215                               <shadedClassifierName>executable</shadedClassifierName>
216                           </configuration>
217                       </execution>
218
219                       <execution>
220                           <id>stress-client</id>
221                           <goals>
222                               <goal>shade</goal>
223                           </goals>
224                           <phase>package</phase>
225                           <configuration>
226                               <shadedArtifactId>stress-client</shadedArtifactId>
227                               <filters>
228                                   <filter>
229                                       <artifact>*:*</artifact>
230                                       <excludes>
231                                           <exclude>META-INF/*.SF</exclude>
232                                           <exclude>META-INF/*.DSA</exclude>
233                                           <exclude>META-INF/*.RSA</exclude>
234                                           <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
235                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
236                                           <exclude>AcceptingAuthProvider</exclude>
237                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
238                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
239                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
240                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
241                                       </excludes>
242                                   </filter>
243                               </filters>
244                               <artifactSet>
245                                   <excludes>
246                                      <exclude>org.bouncycastle:*</exclude>
247                                   </excludes>
248                               </artifactSet>
249                               <transformers>
250                                   <transformer
251                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
252                                       <manifestEntries>
253                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
254                                           <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
255                                       </manifestEntries>
256                                   </transformer>
257                               </transformers>
258                               <shadedArtifactAttached>true</shadedArtifactAttached>
259                               <shadedClassifierName>stress-client</shadedClassifierName>
260                           </configuration>
261                       </execution>
262
263                       <execution>
264                           <id>restconf-perf-client</id>
265                           <goals>
266                               <goal>shade</goal>
267                           </goals>
268                           <phase>package</phase>
269                           <configuration>
270                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
271                               <filters>
272                                   <filter>
273                                       <artifact>*:*</artifact>
274                                       <excludes>
275                                           <exclude>META-INF/*.SF</exclude>
276                                           <exclude>META-INF/*.DSA</exclude>
277                                           <exclude>META-INF/*.RSA</exclude>
278                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
279                                           <exclude>AcceptingAuthProvider</exclude>
280                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
281                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
282                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
283                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
284                                       </excludes>
285                                   </filter>
286                               </filters>
287                               <artifactSet>
288                                   <excludes>
289                                       <exclude>org.bouncycastle:*</exclude>
290                                       <exclude>com.google:*</exclude>
291                                       <exclude>org.opendaylight.yangtools</exclude>
292                                       <exclude>org.opendaylight.yang</exclude>
293                                   </excludes>
294                               </artifactSet>
295                               <transformers>
296                                   <transformer
297                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
298                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
299                                   </transformer>
300                               </transformers>
301                               <shadedArtifactAttached>true</shadedArtifactAttached>
302                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
303                           </configuration>
304                       </execution>
305
306                     <execution>
307                         <id>scale-util</id>
308                         <goals>
309                             <goal>shade</goal>
310                         </goals>
311                         <phase>package</phase>
312                         <configuration>
313                             <shadedArtifactId>scale-util</shadedArtifactId>
314                             <filters>
315                                 <filter>
316                                     <artifact>*:*</artifact>
317                                     <excludes>
318                                         <exclude>META-INF/*.SF</exclude>
319                                         <exclude>META-INF/*.DSA</exclude>
320                                         <exclude>META-INF/*.RSA</exclude>
321                                     </excludes>
322                                 </filter>
323                             </filters>
324                             <transformers>
325                                 <transformer
326                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
327                                     <manifestEntries>
328                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
329                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
330                                     </manifestEntries>
331                                 </transformer>
332                             </transformers>
333                             <shadedArtifactAttached>true</shadedArtifactAttached>
334                             <shadedClassifierName>scale-util</shadedClassifierName>
335                         </configuration>
336                     </execution>
337                   </executions>
338               </plugin>
339               <plugin>
340                   <artifactId>maven-assembly-plugin</artifactId>
341                   <configuration>
342                       <descriptors>
343                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
344                       </descriptors>
345                       <finalName>stress-client-${project.version}-package</finalName>
346                   </configuration>
347                   <executions>
348                       <execution>
349                           <id>make-assembly</id>
350                           <phase>package</phase>
351                           <goals>
352                               <goal>single</goal>
353                           </goals>
354                       </execution>
355                   </executions>
356               </plugin>
357           </plugins>
358       </build>
359
360   </project>