xref: /JGit/org.eclipse.jgit.junit.http/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.http</artifactId>
24  <name>JGit - JUnit Http Utility Classes</name>
25
26  <description>
27    Utility classes to support Http 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>junit</groupId>
44      <artifactId>junit</artifactId>
45      <scope>provided</scope>
46    </dependency>
47
48    <dependency>
49      <groupId>org.eclipse.jgit</groupId>
50      <artifactId>org.eclipse.jgit.http.server</artifactId>
51      <version>${project.version}</version>
52    </dependency>
53
54    <dependency>
55      <groupId>org.eclipse.jgit</groupId>
56      <artifactId>org.eclipse.jgit.junit</artifactId>
57      <version>${project.version}</version>
58    </dependency>
59
60    <dependency>
61      <groupId>org.eclipse.jetty</groupId>
62      <artifactId>jetty-servlet</artifactId>
63    </dependency>
64  </dependencies>
65
66  <build>
67    <sourceDirectory>src/</sourceDirectory>
68
69    <resources>
70      <resource>
71        <directory>.</directory>
72        <includes>
73          <include>plugin.properties</include>
74        </includes>
75      </resource>
76    </resources>
77
78    <plugins>
79      <plugin>
80        <groupId>org.apache.maven.plugins</groupId>
81        <artifactId>maven-antrun-plugin</artifactId>
82        <executions>
83          <execution>
84            <id>translate-source-qualifier</id>
85            <phase>generate-resources</phase>
86            <configuration>
87              <target>
88                <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
89                <replace file="${source-bundle-manifest}">
90                  <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
91                </replace>
92              </target>
93            </configuration>
94            <goals>
95              <goal>run</goal>
96            </goals>
97          </execution>
98        </executions>
99      </plugin>
100
101      <plugin>
102        <groupId>org.apache.maven.plugins</groupId>
103        <artifactId>maven-source-plugin</artifactId>
104        <inherited>true</inherited>
105        <executions>
106          <execution>
107            <id>attach-sources</id>
108            <phase>process-classes</phase>
109            <goals>
110              <goal>jar</goal>
111            </goals>
112            <configuration>
113              <archive>
114                <manifestFile>${source-bundle-manifest}</manifestFile>
115              </archive>
116            </configuration>
117          </execution>
118        </executions>
119      </plugin>
120
121      <plugin>
122        <artifactId>maven-jar-plugin</artifactId>
123        <configuration>
124          <archive>
125            <manifestFile>${bundle-manifest}</manifestFile>
126          </archive>
127        </configuration>
128      </plugin>
129    </plugins>
130  </build>
131</project>
132