Disable creating reduced netconf-testtol pom
[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>4.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>${project.groupId}</groupId>
62             <artifactId>sal-netconf-connector</artifactId>
63         </dependency>
64        <dependency>
65             <groupId>org.opendaylight.yangtools</groupId>
66             <artifactId>mockito-configuration</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>${project.groupId}</groupId>
82             <artifactId>ietf-netconf-monitoring</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>${project.groupId}</groupId>
86             <artifactId>ietf-netconf-monitoring-extension</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>${project.groupId}</groupId>
90             <artifactId>netconf-client</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>${project.groupId}</groupId>
103             <artifactId>netconf-impl</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>${project.groupId}</groupId>
107             <artifactId>netconf-mapping-api</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.opendaylight.netconf</groupId>
111             <artifactId>mdsal-netconf-monitoring</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.mdsal</groupId>
115             <artifactId>mdsal-dom-broker</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.mdsal</groupId>
119             <artifactId>mdsal-dom-inmemory-datastore</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.opendaylight.netconf</groupId>
123             <artifactId>mdsal-netconf-connector</artifactId>
124         </dependency>
125         <dependency>
126             <groupId>${project.groupId}</groupId>
127             <artifactId>mdsal-netconf-ssh</artifactId>
128         </dependency>
129         <dependency>
130             <groupId>org.apache.karaf.features</groupId>
131             <artifactId>org.apache.karaf.features.core</artifactId>
132         </dependency>
133         <dependency>
134             <groupId>org.xmlunit</groupId>
135             <artifactId>xmlunit-core</artifactId>
136         </dependency>
137         <dependency>
138             <groupId>org.xmlunit</groupId>
139             <artifactId>xmlunit-assertj</artifactId>
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-jdk18on</artifactId>
159                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
160                                     <overWrite>true</overWrite>
161                                     <destFileName>bcpkix-jdk18on.jar</destFileName>
162                                 </artifactItem>
163                                 <artifactItem>
164                                     <groupId>org.bouncycastle</groupId>
165                                     <artifactId>bcprov-jdk18on</artifactId>
166                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
167                                     <overWrite>true</overWrite>
168                                     <destFileName>bcprov-jdk18on.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>
179                     <createDependencyReducedPom>false</createDependencyReducedPom>
180                 </configuration>
181                 <executions>
182                     <execution>
183                         <goals>
184                             <goal>shade</goal>
185                         </goals>
186                         <phase>package</phase>
187                         <configuration>
188                             <!-- TODO investigate why jar fails without this filter-->
189                             <filters>
190                                 <filter>
191                                     <artifact>*:*</artifact>
192                                     <excludes>
193                                         <exclude>META-INF/*.SF</exclude>
194                                         <exclude>META-INF/*.DSA</exclude>
195                                         <exclude>META-INF/*.RSA</exclude>
196                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
197                                     </excludes>
198                                 </filter>
199                             </filters>
200                               <transformers>
201                                   <transformer
202                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
203                                       <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
204                                   </transformer>
205                               </transformers>
206                               <shadedArtifactAttached>true</shadedArtifactAttached>
207                               <shadedClassifierName>executable</shadedClassifierName>
208                           </configuration>
209                       </execution>
210
211                       <execution>
212                           <id>stress-client</id>
213                           <goals>
214                               <goal>shade</goal>
215                           </goals>
216                           <phase>package</phase>
217                           <configuration>
218                               <shadedArtifactId>stress-client</shadedArtifactId>
219                               <filters>
220                                   <filter>
221                                       <artifact>*:*</artifact>
222                                       <excludes>
223                                           <exclude>META-INF/*.SF</exclude>
224                                           <exclude>META-INF/*.DSA</exclude>
225                                           <exclude>META-INF/*.RSA</exclude>
226                                           <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
227                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
228                                           <exclude>AcceptingAuthProvider</exclude>
229                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
230                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
231                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
232                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
233                                       </excludes>
234                                   </filter>
235                               </filters>
236                               <artifactSet>
237                                   <excludes>
238                                      <exclude>org.bouncycastle:*</exclude>
239                                   </excludes>
240                               </artifactSet>
241                               <transformers>
242                                   <transformer
243                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
244                                       <manifestEntries>
245                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
246                                           <Class-Path>. lib lib/bcprov-jdk18on.jar lib/bcpkix-jdk18on.jar</Class-Path>
247                                       </manifestEntries>
248                                   </transformer>
249                               </transformers>
250                               <shadedArtifactAttached>true</shadedArtifactAttached>
251                               <shadedClassifierName>stress-client</shadedClassifierName>
252                           </configuration>
253                       </execution>
254
255                       <execution>
256                           <id>restconf-perf-client</id>
257                           <goals>
258                               <goal>shade</goal>
259                           </goals>
260                           <phase>package</phase>
261                           <configuration>
262                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
263                               <filters>
264                                   <filter>
265                                       <artifact>*:*</artifact>
266                                       <excludes>
267                                           <exclude>META-INF/*.SF</exclude>
268                                           <exclude>META-INF/*.DSA</exclude>
269                                           <exclude>META-INF/*.RSA</exclude>
270                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
271                                           <exclude>AcceptingAuthProvider</exclude>
272                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
273                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
274                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
275                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
276                                       </excludes>
277                                   </filter>
278                               </filters>
279                               <artifactSet>
280                                   <excludes>
281                                       <exclude>org.bouncycastle:*</exclude>
282                                       <exclude>com.google:*</exclude>
283                                       <exclude>org.opendaylight.yangtools</exclude>
284                                       <exclude>org.opendaylight.yang</exclude>
285                                   </excludes>
286                               </artifactSet>
287                               <transformers>
288                                   <transformer
289                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
290                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
291                                   </transformer>
292                               </transformers>
293                               <shadedArtifactAttached>true</shadedArtifactAttached>
294                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
295                           </configuration>
296                       </execution>
297
298                     <execution>
299                         <id>scale-util</id>
300                         <goals>
301                             <goal>shade</goal>
302                         </goals>
303                         <phase>package</phase>
304                         <configuration>
305                             <shadedArtifactId>scale-util</shadedArtifactId>
306                             <filters>
307                                 <filter>
308                                     <artifact>*:*</artifact>
309                                     <excludes>
310                                         <exclude>META-INF/*.SF</exclude>
311                                         <exclude>META-INF/*.DSA</exclude>
312                                         <exclude>META-INF/*.RSA</exclude>
313                                     </excludes>
314                                 </filter>
315                             </filters>
316                             <transformers>
317                                 <transformer
318                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
319                                     <manifestEntries>
320                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
321                                         <Class-Path>. lib lib/bcprov-jdk18on.jar lib/bcpkix-jdk18on.jar</Class-Path>
322                                     </manifestEntries>
323                                 </transformer>
324                             </transformers>
325                             <shadedArtifactAttached>true</shadedArtifactAttached>
326                             <shadedClassifierName>scale-util</shadedClassifierName>
327                         </configuration>
328                     </execution>
329                   </executions>
330               </plugin>
331               <plugin>
332                   <artifactId>maven-assembly-plugin</artifactId>
333                   <configuration>
334                       <descriptors>
335                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
336                       </descriptors>
337                       <finalName>stress-client-${project.version}-package</finalName>
338                   </configuration>
339                   <executions>
340                       <execution>
341                           <id>make-assembly</id>
342                           <phase>package</phase>
343                           <goals>
344                               <goal>single</goal>
345                           </goals>
346                       </execution>
347                   </executions>
348               </plugin>
349               <plugin>
350                   <artifactId>maven-surefire-plugin</artifactId>
351                   <configuration>
352                       <reportFormat>plain</reportFormat>
353                   </configuration>
354               </plugin>
355           </plugins>
356       </build>
357
358   </project>