Bump versions to 5.0.2-SNAPSHOT
[netconf.git] / third-party / shaded-sshd / 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>bundle-parent</artifactId>
16         <version>12.0.1</version>
17         <relativePath/>
18     </parent>
19
20     <groupId>org.opendaylight.netconf</groupId>
21     <artifactId>shaded-sshd</artifactId>
22     <packaging>bundle</packaging>
23     <version>5.0.2-SNAPSHOT</version>
24     <name>${project.artifactId}</name>
25
26     <properties>
27         <!-- We are just juggling classes here -->
28         <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
29         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
30
31         <!-- We do not want to generate javadoc -->
32         <maven.javadoc.skip>true</maven.javadoc.skip>
33     </properties>
34
35     <dependencies>
36         <dependency>
37             <groupId>org.opendaylight.netconf</groupId>
38             <artifactId>shaded-sshd-jar</artifactId>
39             <version>${project.version}</version>
40             <scope>provided</scope>
41         </dependency>
42     </dependencies>
43
44     <build>
45         <plugins>
46             <plugin>
47                 <artifactId>maven-dependency-plugin</artifactId>
48                 <executions>
49                     <execution>
50                         <id>unpack</id>
51                         <phase>compile</phase>
52                         <goals>
53                             <goal>unpack</goal>
54                         </goals>
55                         <configuration>
56                             <artifactItems>
57                                 <artifactItem>
58                                     <groupId>org.opendaylight.netconf</groupId>
59                                     <artifactId>shaded-sshd-jar</artifactId>
60                                     <version>${project.version}</version>
61                                 </artifactItem>
62                             </artifactItems>
63                             <overWriteReleases>false</overWriteReleases>
64                             <overWriteSnapshots>true</overWriteSnapshots>
65                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
66
67                             <!-- FIXME: NETCONF-836: remove this part once we are ready to re-integrate SSHD with Netty -->
68                             <excludes>META-INF/services/org.opendaylight.netconf.shaded.sshd.common.io.IoServiceFactoryFactory</excludes>
69                         </configuration>
70                     </execution>
71                     <execution>
72                         <id>unpack-sources</id>
73                         <phase>prepare-package</phase>
74                         <goals>
75                             <goal>unpack-dependencies</goal>
76                         </goals>
77                         <configuration>
78                             <classifier>sources</classifier>
79                             <includeArtifactIds>shaded-sshd-jar</includeArtifactIds>
80                             <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <groupId>org.codehaus.mojo</groupId>
87                 <artifactId>build-helper-maven-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <phase>prepare-package</phase>
91                         <goals>
92                            <goal>add-source</goal>
93                         </goals>
94                         <configuration>
95                             <sources>${project.build.directory}/shaded-sources</sources>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100             <plugin>
101                 <groupId>org.apache.felix</groupId>
102                 <artifactId>maven-bundle-plugin</artifactId>
103                 <extensions>true</extensions>
104                 <configuration>
105                     <instructions>
106                         <Import-Package>
107                             org.apache.tomcat.jni;resolution:=optional,
108                             org.bouncycastle.crypto.prng;version="[1.61,2)";resolution:=optional,
109                             org.bouncycastle.openssl;version="[1.61,2)";resolution:=optional,
110                             org.bouncycastle.openssl.jcajce;version="[1.61,2)";resolution:=optional,
111                             *
112                         </Import-Package>
113                     </instructions>
114                 </configuration>
115             </plugin>
116         </plugins>
117     </build>
118 </project>