Merge "builder class for path creating"
[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>org.codehaus.janino</groupId>
42             <artifactId>janino</artifactId>
43             <version>2.6.1</version>
44         </dependency>
45         <dependency>
46             <groupId>net.sourceforge.argparse4j</groupId>
47             <artifactId>argparse4j</artifactId>
48             <version>0.4.3</version>
49         </dependency>
50         <dependency>
51             <groupId>ch.qos.logback</groupId>
52             <artifactId>logback-classic</artifactId>
53             <scope>compile</scope>
54         </dependency>
55         <dependency>
56             <groupId>com.ning</groupId>
57             <artifactId>async-http-client</artifactId>
58             <version>1.9.24</version>
59         </dependency>
60         <dependency>
61             <groupId>org.bouncycastle</groupId>
62             <artifactId>bcpkix-jdk15on</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.bouncycastle</groupId>
66             <artifactId>bcprov-jdk15on</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>${project.groupId}</groupId>
70             <artifactId>netconf-netty-util</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>${project.groupId}</groupId>
74             <artifactId>netconf-auth</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>${project.groupId}</groupId>
78             <artifactId>config-netconf-connector</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>${project.groupId}</groupId>
82             <artifactId>sal-netconf-connector</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.opendaylight.controller</groupId>
86             <artifactId>logback-config</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>org.opendaylight.controller</groupId>
102             <artifactId>config-util</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>${project.groupId}</groupId>
106             <artifactId>netconf-api</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>${project.groupId}</groupId>
110             <artifactId>ietf-netconf-monitoring</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>${project.groupId}</groupId>
114             <artifactId>ietf-netconf-monitoring-extension</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>${project.groupId}</groupId>
118             <artifactId>netconf-client</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.opendaylight.mdsal.model</groupId>
122             <artifactId>ietf-yang-types</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.opendaylight.mdsal.model</groupId>
126             <artifactId>ietf-inet-types</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>${project.groupId}</groupId>
130             <artifactId>netconf-impl</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>${project.groupId}</groupId>
134             <artifactId>netconf-mapping-api</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>${project.groupId}</groupId>
138             <artifactId>netconf-monitoring</artifactId>
139         </dependency>
140         <dependency>
141             <groupId>${project.groupId}</groupId>
142             <artifactId>netconf-ssh</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>org.opendaylight.controller</groupId>
146             <artifactId>netty-config-api</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.opendaylight.controller</groupId>
150             <artifactId>sal-inmemory-datastore</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.opendaylight.netconf</groupId>
154             <artifactId>mdsal-netconf-connector</artifactId>
155         </dependency>
156     </dependencies>
157
158     <build>
159         <plugins>
160             <plugin>
161                 <groupId>org.apache.maven.plugins</groupId>
162                 <artifactId>maven-dependency-plugin</artifactId>
163                 <executions>
164                     <execution>
165                         <id>stress-client dependency copy</id>
166                         <goals>
167                             <goal>copy</goal>
168                         </goals>
169                         <configuration>
170                             <artifactItems>
171                                 <artifactItem>
172                                     <groupId>org.bouncycastle</groupId>
173                                     <artifactId>bcpkix-jdk15on</artifactId>
174                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
175                                     <overWrite>true</overWrite>
176                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
177                                 </artifactItem>
178                                 <artifactItem>
179                                     <groupId>org.bouncycastle</groupId>
180                                     <artifactId>bcprov-jdk15on</artifactId>
181                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
182                                     <overWrite>true</overWrite>
183                                     <destFileName>bcprov-jdk15on.jar</destFileName>
184                                 </artifactItem>
185                             </artifactItems>
186                         </configuration>
187                     </execution>
188                 </executions>
189             </plugin>
190             <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-shade-plugin</artifactId>
193                 <configuration></configuration>
194                 <executions>
195                     <execution>
196                         <goals>
197                             <goal>shade</goal>
198                         </goals>
199                         <phase>package</phase>
200                         <configuration>
201                             <!-- TODO investigate why jar fails without this filter-->
202                             <filters>
203                                 <filter>
204                                     <artifact>*:*</artifact>
205                                     <excludes>
206                                         <exclude>META-INF/*.SF</exclude>
207                                         <exclude>META-INF/*.DSA</exclude>
208                                         <exclude>META-INF/*.RSA</exclude>
209                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
210                                     </excludes>
211                                 </filter>
212                             </filters>
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>