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