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