pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.anas.alqurancloudapi</groupId>
  7. <artifactId>alquran-cloud-api</artifactId>
  8. <version>0.2.0-v1</version>
  9. <packaging>jar</packaging>
  10. <name>alquran-cloud-api</name>
  11. <description>A simple java wrapper library for alquran-cloud api</description>
  12. <url>https://github.com/anas-elgarhy/alquran-cloud-api</url>
  13. <distributionManagement>
  14. <repository>
  15. <id>github</id>
  16. <name>GitHub Anas Elgarhy Apache Maven Packages</name>
  17. <url>https://maven.pkg.github.com/${repository-owner}/${repository-name}</url>
  18. </repository>
  19. </distributionManagement>
  20. <licenses>
  21. <license>
  22. <name>GNU General Public License v3.0</name>
  23. <url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
  24. <distribution>repo</distribution>
  25. </license>
  26. </licenses>
  27. <scm>
  28. <url>https://svn.apache.org/viewvc/maven</url>
  29. </scm>
  30. <dependencies>
  31. <dependency>
  32. <groupId>com.fasterxml.jackson.core</groupId>
  33. <artifactId>jackson-databind</artifactId>
  34. <version>2.13.3</version>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <pluginManagement>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-source-plugin</artifactId>
  43. <version>3.1.0</version>
  44. <executions>
  45. <execution>
  46. <id>attach-sources</id>
  47. <goals>
  48. <goal>jar</goal>
  49. </goals>
  50. </execution>
  51. </executions>
  52. </plugin>
  53. <plugin>
  54. <groupId>com.github.github</groupId>
  55. <artifactId>site-maven-plugin</artifactId>
  56. <version>0.12</version>
  57. <configuration>
  58. <message>Maven artifacts for ${project.version}</message>
  59. <noJekyll>true</noJekyll>
  60. <outputDirectory>${project.build.directory}</outputDirectory>
  61. <branch>refs/heads/${branch-name}</branch>
  62. <includes>
  63. <include>**/*</include>
  64. </includes>
  65. <merge>true</merge>
  66. <repositoryName>${repository-name}</repositoryName>
  67. <repositoryOwner>${repository-owner}</repositoryOwner>
  68. <server>github</server>
  69. </configuration>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <goal>site</goal>
  74. </goals>
  75. <phase>deploy</phase>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. <plugin>
  80. <artifactId>maven-deploy-plugin</artifactId>
  81. <version>2.8.2</version>
  82. <!-- <configuration>-->
  83. <!-- <altDeploymentRepository>-->
  84. <!-- internal.repo::default::file://${project.build.directory}/mvn-artifact-->
  85. <!-- online.repo::default::https://maven.pkg.github.com/${repository-owner}/${repository-name}-->
  86. <!-- </altDeploymentRepository>-->
  87. <!-- </configuration>-->
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-source-plugin</artifactId>
  92. <version>3.1.0</version>
  93. <executions>
  94. <execution>
  95. <id>attach-sources</id>
  96. <goals>
  97. <goal>jar</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. </plugins>
  103. </pluginManagement>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <configuration>
  109. <source>10</source>
  110. <target>10</target>
  111. </configuration>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. <repositories>
  116. <repository>
  117. <id>PROJECT-REPO-URL</id>
  118. <url>https://github.com/${repository-owner}/${repository-name}/${branch-name}</url>
  119. <snapshots>
  120. <enabled>true</enabled>
  121. <updatePolicy>always</updatePolicy>
  122. </snapshots>
  123. </repository>
  124. </repositories>
  125. <properties>
  126. <repository-owner>anas-elgarhy</repository-owner>
  127. <repository-name>alquran-cloud-api</repository-name>
  128. <branch-name>master</branch-name>
  129. <github.global.server>github</github.global.server>
  130. <maven.compiler.source>17</maven.compiler.source>
  131. <maven.compiler.target>17</maven.compiler.target>
  132. </properties>
  133. </project>