You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. This program and the accompanying materials are made available under the
  7. terms of the Eclipse Distribution License v. 1.0 which is available at
  8. http://www.eclipse.org/org/documents/edl-v10.php.
  9. SPDX-License-Identifier: BSD-3-Clause
  10. -->
  11. <project xmlns="http://maven.apache.org/POM/4.0.0"
  12. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>org.eclipse.jgit</groupId>
  17. <artifactId>org.eclipse.jgit-parent</artifactId>
  18. <version>5.13.0-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>org.eclipse.jgit.junit</artifactId>
  21. <name>JGit - JUnit Utility Classes</name>
  22. <description>
  23. Utility classes to support JUnit testing of JGit applications.
  24. </description>
  25. <properties>
  26. <translate-qualifier/>
  27. <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
  28. </properties>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.eclipse.jgit</groupId>
  32. <artifactId>org.eclipse.jgit</artifactId>
  33. <version>${project.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>junit</groupId>
  37. <artifactId>junit</artifactId>
  38. <scope>provided</scope>
  39. </dependency>
  40. </dependencies>
  41. <build>
  42. <sourceDirectory>src/</sourceDirectory>
  43. <resources>
  44. <resource>
  45. <directory>.</directory>
  46. <includes>
  47. <include>plugin.properties</include>
  48. </includes>
  49. </resource>
  50. </resources>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-antrun-plugin</artifactId>
  55. <executions>
  56. <execution>
  57. <id>translate-source-qualifier</id>
  58. <phase>generate-resources</phase>
  59. <configuration>
  60. <target>
  61. <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
  62. <replace file="${source-bundle-manifest}">
  63. <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
  64. </replace>
  65. </target>
  66. </configuration>
  67. <goals>
  68. <goal>run</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-source-plugin</artifactId>
  76. <inherited>true</inherited>
  77. <executions>
  78. <execution>
  79. <id>attach-sources</id>
  80. <phase>process-classes</phase>
  81. <goals>
  82. <goal>jar</goal>
  83. </goals>
  84. <configuration>
  85. <archive>
  86. <manifestFile>${source-bundle-manifest}</manifestFile>
  87. </archive>
  88. </configuration>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <artifactId>maven-jar-plugin</artifactId>
  94. <configuration>
  95. <archive>
  96. <manifestFile>${bundle-manifest}</manifestFile>
  97. </archive>
  98. </configuration>
  99. </plugin>
  100. </plugins>
  101. </build>
  102. </project>