Bump versions to 5.0.4-SNAPSHOT
[netconf.git] / third-party / 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>12.0.3</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.netconf</groupId>
21     <artifactId>shaded-sshd-jar</artifactId>
22     <packaging>jar</packaging>
23     <version>5.0.4-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             <version>2.9.2</version>
36         </dependency>
37         <dependency>
38             <groupId>org.apache.sshd</groupId>
39             <artifactId>sshd-netty</artifactId>
40             <version>2.9.2</version>
41             <exclusions>
42                 <exclusion>
43                     <groupId>org.apache.sshd</groupId>
44                     <artifactId>sshd-core</artifactId>
45                 </exclusion>
46             </exclusions>
47         </dependency>
48         <dependency>
49             <groupId>net.i2p.crypto</groupId>
50             <artifactId>eddsa</artifactId>
51             <version>0.3.0</version>
52         </dependency>
53     </dependencies>
54
55     <build>
56         <plugins>
57             <plugin>
58                 <groupId>org.apache.maven.plugins</groupId>
59                 <artifactId>maven-shade-plugin</artifactId>
60                 <executions>
61                     <execution>
62                         <phase>package</phase>
63                         <goals>
64                             <goal>shade</goal>
65                         </goals>
66                         <configuration>
67                             <createDependencyReducedPom>false</createDependencyReducedPom>
68                             <shadeSourcesContent>true</shadeSourcesContent>
69                             <createSourcesJar>true</createSourcesJar>
70                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
71                             <artifactSet>
72                                 <includes>
73                                     <include>org.apache.sshd</include>
74                                     <include>net.i2p.crypto</include>
75                                 </includes>
76                             </artifactSet>
77                             <filters>
78                                 <filter>
79                                     <artifact>*</artifact>
80                                     <excludes>
81                                         <exclude>META-INF/MANIFEST.MF</exclude>
82                                         <exclude>.cache/formatter-maven-cache.properties</exclude>
83                                     </excludes>
84                                 </filter>
85                                 <filter>
86                                     <artifact>org.apache.sshd:sshd-netty</artifact>
87                                     <excludes>
88                                         <exclude>META-INF/DEPENDENCIES</exclude>
89                                         <exclude>META-INF/LICENSE</exclude>
90                                         <exclude>META-INF/NOTICE</exclude>
91                                     </excludes>
92                                 </filter>
93                             </filters>
94                             <relocations>
95                                 <relocation>
96                                     <pattern>org.apache.sshd</pattern>
97                                     <shadedPattern>org.opendaylight.netconf.shaded.sshd</shadedPattern>
98                                 </relocation>
99                                 <relocation>
100                                     <pattern>net.i2p.crypto.eddsa</pattern>
101                                     <shadedPattern>org.opendaylight.netconf.shaded.eddsa</shadedPattern>
102                                 </relocation>
103                             </relocations>
104                             <transformers>
105                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
106                             </transformers>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111         </plugins>
112     </build>
113 </project>