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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2010, Jens Baumgart <jens.baumgart@sap.com> and others
  4. This program and the accompanying materials are made available under the
  5. terms of the Eclipse Distribution License v. 1.0 which is available at
  6. http://www.eclipse.org/org/documents/edl-v10.php.
  7. SPDX-License-Identifier: BSD-3-Clause
  8. -->
  9. <project xmlns="http://maven.apache.org/POM/4.0.0"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  12. <modelVersion>4.0.0</modelVersion>
  13. <parent>
  14. <groupId>org.eclipse.jgit</groupId>
  15. <artifactId>org.eclipse.jgit-parent</artifactId>
  16. <version>5.13.0-SNAPSHOT</version>
  17. </parent>
  18. <artifactId>org.eclipse.jgit.junit.http</artifactId>
  19. <name>JGit - JUnit Http Utility Classes</name>
  20. <description>
  21. Utility classes to support Http based JUnit testing of JGit applications.
  22. </description>
  23. <properties>
  24. <translate-qualifier/>
  25. <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.eclipse.jgit</groupId>
  30. <artifactId>org.eclipse.jgit</artifactId>
  31. <version>${project.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>junit</groupId>
  35. <artifactId>junit</artifactId>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.eclipse.jgit</groupId>
  40. <artifactId>org.eclipse.jgit.http.server</artifactId>
  41. <version>${project.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.eclipse.jgit</groupId>
  45. <artifactId>org.eclipse.jgit.junit</artifactId>
  46. <version>${project.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.eclipse.jetty</groupId>
  50. <artifactId>jetty-servlet</artifactId>
  51. </dependency>
  52. </dependencies>
  53. <build>
  54. <sourceDirectory>src/</sourceDirectory>
  55. <resources>
  56. <resource>
  57. <directory>.</directory>
  58. <includes>
  59. <include>plugin.properties</include>
  60. </includes>
  61. </resource>
  62. </resources>
  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. <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. <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>