Revert "Upgrade mina-sshd to 2.4.0"
[netconf.git] / netconf / shaded-sshd-jar / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>7.0.5</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.netconf</groupId>
21     <artifactId>shaded-sshd-jar</artifactId>
22     <packaging>jar</packaging>
23     <version>1.10.0-SNAPSHOT</version>
24     <name>${project.artifactId}</name>
25
26     <properties>
27         <!-- We do not want to leak this artifact -->
28         <maven.deploy.skip>true</maven.deploy.skip>
29     </properties>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.apache.sshd</groupId>
34             <artifactId>sshd-osgi</artifactId>
35         </dependency>
36         <dependency>
37             <groupId>org.apache.sshd</groupId>
38             <artifactId>sshd-netty</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>net.i2p.crypto</groupId>
42             <artifactId>eddsa</artifactId>
43         </dependency>
44     </dependencies>
45
46     <build>
47         <plugins>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-shade-plugin</artifactId>
51                 <executions>
52                     <execution>
53                         <phase>package</phase>
54                         <goals>
55                             <goal>shade</goal>
56                         </goals>
57                         <configuration>
58                             <createDependencyReducedPom>false</createDependencyReducedPom>
59                             <shadeSourcesContent>true</shadeSourcesContent>
60                             <createSourcesJar>true</createSourcesJar>
61                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
62                             <artifactSet>
63                                 <includes>
64                                     <include>org.apache.sshd</include>
65                                     <include>net.i2p.crypto</include>
66                                 </includes>
67                             </artifactSet>
68                             <filters>
69                                 <filter>
70                                     <artifact>*</artifact>
71                                     <excludes>
72                                         <exclude>META-INF/MANIFEST.MF</exclude>
73                                         <exclude>META-INF/services/**</exclude>
74                                     </excludes>
75                                 </filter>
76                                 <filter>
77                                     <artifact>org.apache.sshd:sshd-netty</artifact>
78                                     <excludes>
79                                         <exclude>META-INF/DEPENDENCIES</exclude>
80                                         <exclude>META-INF/LICENSE</exclude>
81                                         <exclude>META-INF/NOTICE</exclude>
82                                         <exclude>META-INF/services/**</exclude>
83                                     </excludes>
84                                 </filter>
85                             </filters>
86                             <relocations>
87                                 <relocation>
88                                     <pattern>org.apache.sshd</pattern>
89                                     <shadedPattern>org.opendaylight.netconf.shaded.sshd</shadedPattern>
90                                 </relocation>
91                                 <relocation>
92                                     <pattern>net.i2p.crypto.eddsa</pattern>
93                                     <shadedPattern>org.opendaylight.netconf.shaded.eddsa</shadedPattern>
94                                 </relocation>
95                             </relocations>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101     </build>
102 </project>