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