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