e1bf3c4dd1d84247e32fbaf1a6e357fdd04e1acb
[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>com.github.spotbugs</groupId>
32             <artifactId>spotbugs-annotations</artifactId>
33             <optional>true</optional>
34         </dependency>
35         <dependency>
36             <groupId>org.codehaus.janino</groupId>
37             <artifactId>janino</artifactId>
38             <version>3.1.4</version>
39         </dependency>
40         <dependency>
41             <groupId>net.sourceforge.argparse4j</groupId>
42             <artifactId>argparse4j</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>ch.qos.logback</groupId>
46             <artifactId>logback-classic</artifactId>
47             <scope>compile</scope>
48         </dependency>
49         <dependency>
50             <groupId>org.bouncycastle</groupId>
51             <artifactId>bcpkix-jdk18on</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.bouncycastle</groupId>
55             <artifactId>bcprov-jdk18on</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>${project.groupId}</groupId>
59             <artifactId>netconf-netty-util</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>${project.groupId}</groupId>
63             <artifactId>netconf-auth</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.opendaylight.netconf</groupId>
67             <artifactId>netconf-topology</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>${project.groupId}</groupId>
71             <artifactId>netconf-client-mdsal</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.slf4j</groupId>
75             <artifactId>slf4j-api</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>com.google.guava</groupId>
79             <artifactId>guava</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>${project.groupId}</groupId>
83             <artifactId>netconf-api</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.opendaylight.netconf.model</groupId>
87             <artifactId>rfc6022</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>${project.groupId}</groupId>
91             <artifactId>netconf-client</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>${project.groupId}</groupId>
95             <artifactId>netconf-server</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>com.guicedee.services</groupId>
99             <artifactId>javax.inject</artifactId>
100             <optional>true</optional>
101         </dependency>
102         <dependency>
103             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
104             <artifactId>rfc6991-ietf-inet-types</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.opendaylight.mdsal</groupId>
108             <artifactId>mdsal-dom-broker</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>org.opendaylight.mdsal</groupId>
112             <artifactId>mdsal-dom-inmemory-datastore</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>org.opendaylight.netconf</groupId>
116             <artifactId>netconf-server-mdsal</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>${project.groupId}</groupId>
120             <artifactId>netconf-nb</artifactId>
121         </dependency>
122         <dependency>
123             <groupId>org.apache.karaf.features</groupId>
124             <artifactId>org.apache.karaf.features.core</artifactId>
125         </dependency>
126
127        <dependency>
128             <groupId>org.opendaylight.yangtools</groupId>
129             <artifactId>mockito-configuration</artifactId>
130         </dependency>
131         <dependency>
132             <groupId>org.xmlunit</groupId>
133             <artifactId>xmlunit-core</artifactId>
134         </dependency>
135         <dependency>
136             <groupId>org.xmlunit</groupId>
137             <artifactId>xmlunit-assertj</artifactId>
138         </dependency>
139     </dependencies>
140
141     <build>
142         <plugins>
143             <plugin>
144                 <groupId>org.apache.maven.plugins</groupId>
145                 <artifactId>maven-dependency-plugin</artifactId>
146                 <executions>
147                     <execution>
148                         <id>stress-client dependency copy</id>
149                         <goals>
150                             <goal>copy</goal>
151                         </goals>
152                         <configuration>
153                             <artifactItems>
154                                 <artifactItem>
155                                     <groupId>org.bouncycastle</groupId>
156                                     <artifactId>bcpkix-jdk18on</artifactId>
157                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
158                                     <overWrite>true</overWrite>
159                                     <destFileName>bcpkix-jdk18on.jar</destFileName>
160                                 </artifactItem>
161                                 <artifactItem>
162                                     <groupId>org.bouncycastle</groupId>
163                                     <artifactId>bcprov-jdk18on</artifactId>
164                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
165                                     <overWrite>true</overWrite>
166                                     <destFileName>bcprov-jdk18on.jar</destFileName>
167                                 </artifactItem>
168                             </artifactItems>
169                         </configuration>
170                     </execution>
171                 </executions>
172             </plugin>
173             <plugin>
174                 <groupId>org.apache.maven.plugins</groupId>
175                 <artifactId>maven-shade-plugin</artifactId>
176                 <configuration>
177                     <createDependencyReducedPom>false</createDependencyReducedPom>
178                 </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-jdk18on.jar lib/bcpkix-jdk18on.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-jdk18on.jar lib/bcpkix-jdk18on.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               <plugin>
348                   <artifactId>maven-surefire-plugin</artifactId>
349                   <configuration>
350                       <reportFormat>plain</reportFormat>
351                   </configuration>
352               </plugin>
353           </plugins>
354       </build>
355
356   </project>