1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (C) 2015, Matthias Sohn <matthias.sohn@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.lfs</artifactId> 24 <name>JGit - Large File Storage</name> 25 26 <description> 27 JGit Large File Storage (LFS) implementation. 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 <dependency> 42 <groupId>com.google.code.gson</groupId> 43 <artifactId>gson</artifactId> 44 </dependency> 45 </dependencies> 46 <build> 47 <sourceDirectory>src/</sourceDirectory> 48 49 <resources> 50 <resource> 51 <directory>.</directory> 52 <includes> 53 <include>plugin.properties</include> 54 <include>about.html</include> 55 </includes> 56 </resource> 57 <resource> 58 <directory>resources/</directory> 59 </resource> 60 </resources> 61 62 <plugins> 63 <plugin> 64 <groupId>org.apache.maven.plugins</groupId> 65 <artifactId>maven-antrun-plugin</artifactId> 66 <executions> 67 <execution> 68 <id>translate-source-qualifier</id> 69 <phase>generate-resources</phase> 70 <configuration> 71 <target> 72 <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/> 73 <replace file="${source-bundle-manifest}"> 74 <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/> 75 </replace> 76 </target> 77 </configuration> 78 <goals> 79 <goal>run</goal> 80 </goals> 81 </execution> 82 </executions> 83 </plugin> 84 85 <plugin> 86 <groupId>org.apache.maven.plugins</groupId> 87 <artifactId>maven-source-plugin</artifactId> 88 <inherited>true</inherited> 89 <executions> 90 <execution> 91 <id>attach-sources</id> 92 <phase>process-classes</phase> 93 <goals> 94 <goal>jar</goal> 95 </goals> 96 <configuration> 97 <archive> 98 <manifestFile>${source-bundle-manifest}</manifestFile> 99 </archive> 100 </configuration> 101 </execution> 102 </executions> 103 </plugin> 104 105 <plugin> 106 <artifactId>maven-jar-plugin</artifactId> 107 <configuration> 108 <archive> 109 <manifestFile>${bundle-manifest}</manifestFile> 110 </archive> 111 </configuration> 112 </plugin> 113 </plugins> 114 </build> 115</project> 116