Merge "Remove the need for synthetic methods"
[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.0</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>org.opendaylight.controller</groupId>
106             <artifactId>config-util</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>${project.groupId}</groupId>
110             <artifactId>netconf-api</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>${project.groupId}</groupId>
114             <artifactId>ietf-netconf-monitoring</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>${project.groupId}</groupId>
118             <artifactId>ietf-netconf-monitoring-extension</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>${project.groupId}</groupId>
122             <artifactId>netconf-client</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.opendaylight.mdsal.model</groupId>
126             <artifactId>ietf-yang-types-20130715</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>org.opendaylight.mdsal.model</groupId>
130             <artifactId>ietf-inet-types-2013-07-15</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>${project.groupId}</groupId>
134             <artifactId>netconf-impl</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>${project.groupId}</groupId>
138             <artifactId>netconf-mapping-api</artifactId>
139         </dependency>
140         <dependency>
141             <groupId>${project.groupId}</groupId>
142             <artifactId>netconf-monitoring</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>${project.groupId}</groupId>
146             <artifactId>netconf-ssh</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.opendaylight.controller</groupId>
150             <artifactId>netty-config-api</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.opendaylight.controller</groupId>
154             <artifactId>sal-inmemory-datastore</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.opendaylight.netconf</groupId>
158             <artifactId>mdsal-netconf-connector</artifactId>
159         </dependency>
160         <dependency>
161             <groupId>org.apache.karaf.features</groupId>
162             <artifactId>org.apache.karaf.features.core</artifactId>
163             <version>${karaf.version}</version>
164         </dependency>
165     </dependencies>
166
167     <build>
168         <plugins>
169             <plugin>
170                 <groupId>org.apache.maven.plugins</groupId>
171                 <artifactId>maven-dependency-plugin</artifactId>
172                 <executions>
173                     <execution>
174                         <id>stress-client dependency copy</id>
175                         <goals>
176                             <goal>copy</goal>
177                         </goals>
178                         <configuration>
179                             <artifactItems>
180                                 <artifactItem>
181                                     <groupId>org.bouncycastle</groupId>
182                                     <artifactId>bcpkix-jdk15on</artifactId>
183                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
184                                     <overWrite>true</overWrite>
185                                     <destFileName>bcpkix-jdk15on.jar</destFileName>
186                                 </artifactItem>
187                                 <artifactItem>
188                                     <groupId>org.bouncycastle</groupId>
189                                     <artifactId>bcprov-jdk15on</artifactId>
190                                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
191                                     <overWrite>true</overWrite>
192                                     <destFileName>bcprov-jdk15on.jar</destFileName>
193                                 </artifactItem>
194                             </artifactItems>
195                         </configuration>
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-shade-plugin</artifactId>
202                 <configuration></configuration>
203                 <executions>
204                     <execution>
205                         <goals>
206                             <goal>shade</goal>
207                         </goals>
208                         <phase>package</phase>
209                         <configuration>
210                             <!-- TODO investigate why jar fails without this filter-->
211                             <filters>
212                                 <filter>
213                                     <artifact>*:*</artifact>
214                                     <excludes>
215                                         <exclude>META-INF/*.SF</exclude>
216                                         <exclude>META-INF/*.DSA</exclude>
217                                         <exclude>META-INF/*.RSA</exclude>
218                                         <exclude>org.opendaylight.netconf.test.tool.client</exclude>
219                                     </excludes>
220                                 </filter>
221                             </filters>
222                               <transformers>
223                                   <transformer
224                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
225                                       <mainClass>org.opendaylight.netconf.test.tool.Main</mainClass>
226                                   </transformer>
227                               </transformers>
228                               <shadedArtifactAttached>true</shadedArtifactAttached>
229                               <shadedClassifierName>executable</shadedClassifierName>
230                           </configuration>
231                       </execution>
232
233                       <execution>
234                           <id>stress-client</id>
235                           <goals>
236                               <goal>shade</goal>
237                           </goals>
238                           <phase>package</phase>
239                           <configuration>
240                               <shadedArtifactId>stress-client</shadedArtifactId>
241                               <filters>
242                                   <filter>
243                                       <artifact>*:*</artifact>
244                                       <excludes>
245                                           <exclude>META-INF/*.SF</exclude>
246                                           <exclude>META-INF/*.DSA</exclude>
247                                           <exclude>META-INF/*.RSA</exclude>
248                                           <exclude>org.opendaylight.netconf.test.tool.client.http</exclude>
249                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
250                                           <exclude>AcceptingAuthProvider</exclude>
251                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
252                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
253                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
254                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
255                                       </excludes>
256                                   </filter>
257                               </filters>
258                               <artifactSet>
259                                   <excludes>
260                                      <exclude>org.bouncycastle:*</exclude>
261                                   </excludes>
262                               </artifactSet>
263                               <transformers>
264                                   <transformer
265                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
266                                       <manifestEntries>
267                                           <Main-Class>org.opendaylight.netconf.test.tool.client.stress.StressClient</Main-Class>
268                                           <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
269                                       </manifestEntries>
270                                   </transformer>
271                               </transformers>
272                               <shadedArtifactAttached>true</shadedArtifactAttached>
273                               <shadedClassifierName>stress-client</shadedClassifierName>
274                           </configuration>
275                       </execution>
276
277                       <execution>
278                           <id>restconf-perf-client</id>
279                           <goals>
280                               <goal>shade</goal>
281                           </goals>
282                           <phase>package</phase>
283                           <configuration>
284                               <shadedArtifactId>rest-perf-client</shadedArtifactId>
285                               <filters>
286                                   <filter>
287                                       <artifact>*:*</artifact>
288                                       <excludes>
289                                           <exclude>META-INF/*.SF</exclude>
290                                           <exclude>META-INF/*.DSA</exclude>
291                                           <exclude>META-INF/*.RSA</exclude>
292                                           <exclude>org.opendaylight.netconf.test.tool.rpc</exclude>
293                                           <exclude>AcceptingAuthProvider</exclude>
294                                           <exclude>org.opendaylight.netconf.test.tool.DummyMonitoringService</exclude>
295                                           <exclude>org.opendaylight.netconf.test.tool.FakeCapability</exclude>
296                                           <exclude>org.opendaylight.netconf.test.tool.Main</exclude>
297                                           <exclude>org.opendaylight.netconf.test.tool.NetconfDeviceSimulator</exclude>
298                                       </excludes>
299                                   </filter>
300                               </filters>
301                               <artifactSet>
302                                   <excludes>
303                                       <exclude>org.bouncycastle:*</exclude>
304                                       <exclude>com.google:*</exclude>
305                                       <exclude>org.opendaylight.yangtools</exclude>
306                                       <exclude>org.opendaylight.yang</exclude>
307                                   </excludes>
308                               </artifactSet>
309                               <transformers>
310                                   <transformer
311                                           implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
312                                       <mainClass>org.opendaylight.netconf.test.tool.client.http.perf.RestPerfClient</mainClass>
313                                   </transformer>
314                               </transformers>
315                               <shadedArtifactAttached>true</shadedArtifactAttached>
316                               <shadedClassifierName>rest-perf-client</shadedClassifierName>
317                           </configuration>
318                       </execution>
319
320                     <execution>
321                         <id>scale-util</id>
322                         <goals>
323                             <goal>shade</goal>
324                         </goals>
325                         <phase>package</phase>
326                         <configuration>
327                             <shadedArtifactId>scale-util</shadedArtifactId>
328                             <filters>
329                                 <filter>
330                                     <artifact>*:*</artifact>
331                                     <excludes>
332                                         <exclude>META-INF/*.SF</exclude>
333                                         <exclude>META-INF/*.DSA</exclude>
334                                         <exclude>META-INF/*.RSA</exclude>
335                                     </excludes>
336                                 </filter>
337                             </filters>
338                             <transformers>
339                                 <transformer
340                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
341                                     <manifestEntries>
342                                         <Main-Class>org.opendaylight.netconf.test.tool.ScaleUtil</Main-Class>
343                                         <Class-Path>. lib lib/bcprov-jdk15on.jar lib/bcpkix-jdk15on.jar</Class-Path>
344                                     </manifestEntries>
345                                 </transformer>
346                             </transformers>
347                             <shadedArtifactAttached>true</shadedArtifactAttached>
348                             <shadedClassifierName>scale-util</shadedClassifierName>
349                         </configuration>
350                     </execution>
351                   </executions>
352               </plugin>
353               <plugin>
354                   <artifactId>maven-assembly-plugin</artifactId>
355                   <configuration>
356                       <descriptors>
357                           <descriptor>src/main/assembly/stress-client.xml</descriptor>
358                       </descriptors>
359                       <finalName>stress-client-${project.version}-package</finalName>
360                   </configuration>
361                   <executions>
362                       <execution>
363                           <id>make-assembly</id>
364                           <phase>package</phase>
365                           <goals>
366                               <goal>single</goal>
367                           </goals>
368                       </execution>
369                   </executions>
370               </plugin>
371               <plugin>
372                   <groupId>org.apache.maven.plugins</groupId>
373                   <artifactId>maven-checkstyle-plugin</artifactId>
374                   <configuration>
375                       <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
376                   </configuration>
377               </plugin>
378           </plugins>
379       </build>
380
381   </project>