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