xref: /JGit/org.eclipse.jgit.junit.ssh/pom.xml (revision 1cbfea9ece03b40669377a7f858218f6994562ea)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright (C) 2010, Jens Baumgart <jens.baumgart@sap.com> and others
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Distribution License v. 1.0 which is available at
7  http://www.eclipse.org/org/documents/edl-v10.php.
8
9  SPDX-License-Identifier: BSD-3-Clause
10-->
11
12<project xmlns="http://maven.apache.org/POM/4.0.0"
13    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
15  <modelVersion>4.0.0</modelVersion>
16
17  <parent>
18    <groupId>org.eclipse.jgit</groupId>
19    <artifactId>org.eclipse.jgit-parent</artifactId>
20    <version>5.13.0-SNAPSHOT</version>
21  </parent>
22
23  <artifactId>org.eclipse.jgit.junit.ssh</artifactId>
24  <name>JGit - JUnit Ssh Utility Classes</name>
25
26  <description>
27    Utility classes to support Ssh based JUnit testing of JGit applications.
28  </description>
29
30  <properties>
31    <translate-qualifier/>
32    <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
33  </properties>
34
35  <dependencies>
36    <dependency>
37      <groupId>org.eclipse.jgit</groupId>
38      <artifactId>org.eclipse.jgit</artifactId>
39      <version>${project.version}</version>
40    </dependency>
41
42    <dependency>
43      <groupId>org.eclipse.jgit</groupId>
44      <artifactId>org.eclipse.jgit.junit</artifactId>
45      <version>${project.version}</version>
46    </dependency>
47
48    <dependency>
49      <groupId>org.apache.sshd</groupId>
50      <artifactId>sshd-osgi</artifactId>
51      <version>${apache-sshd-version}</version>
52    </dependency>
53
54    <dependency>
55      <groupId>org.apache.sshd</groupId>
56      <artifactId>sshd-sftp</artifactId>
57      <version>${apache-sshd-version}</version>
58    </dependency>
59
60    <dependency>
61      <groupId>junit</groupId>
62      <artifactId>junit</artifactId>
63      <scope>provided</scope>
64    </dependency>
65  </dependencies>
66
67  <build>
68    <sourceDirectory>src/</sourceDirectory>
69
70    <resources>
71      <resource>
72        <directory>.</directory>
73        <includes>
74          <include>plugin.properties</include>
75        </includes>
76      </resource>
77      <resource>
78        <directory>resources/</directory>
79      </resource>
80    </resources>
81
82    <plugins>
83      <plugin>
84        <groupId>org.apache.maven.plugins</groupId>
85        <artifactId>maven-antrun-plugin</artifactId>
86        <executions>
87          <execution>
88            <id>translate-source-qualifier</id>
89            <phase>generate-resources</phase>
90            <configuration>
91              <target>
92                <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
93                <replace file="${source-bundle-manifest}">
94                  <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
95                </replace>
96              </target>
97            </configuration>
98            <goals>
99              <goal>run</goal>
100            </goals>
101          </execution>
102        </executions>
103      </plugin>
104
105      <plugin>
106        <groupId>org.apache.maven.plugins</groupId>
107        <artifactId>maven-source-plugin</artifactId>
108        <inherited>true</inherited>
109        <executions>
110          <execution>
111            <id>attach-sources</id>
112            <phase>process-classes</phase>
113            <goals>
114              <goal>jar</goal>
115            </goals>
116            <configuration>
117              <archive>
118                <manifestFile>${source-bundle-manifest}</manifestFile>
119              </archive>
120            </configuration>
121          </execution>
122        </executions>
123      </plugin>
124
125      <plugin>
126        <artifactId>maven-jar-plugin</artifactId>
127        <configuration>
128          <archive>
129            <manifestFile>${bundle-manifest}</manifestFile>
130          </archive>
131        </configuration>
132      </plugin>
133    </plugins>
134  </build>
135</project>
136