rocketmq-rocksdb-1.0.3.pom 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>io.github.aliyunmq</groupId>
  5. <artifactId>rocketmq-rocksdb</artifactId>
  6. <version>1.0.3</version>
  7. <name>RocksDB JNI</name>
  8. <description>RocksDB fat jar with modifications specific for Apache rocketmq that contains .so files for linux32 and linux64 (glibc and musl-libc), jnilib files
  9. for Mac OSX, and a .dll for Windows x64.
  10. </description>
  11. <url>https://rocksdb.org</url>
  12. <inceptionYear>2012</inceptionYear>
  13. <licenses>
  14. <license>
  15. <name>Apache License 2.0</name>
  16. <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
  17. <distribution>repo</distribution>
  18. </license>
  19. <license>
  20. <name>GNU General Public License, version 2</name>
  21. <url>http://www.gnu.org/licenses/gpl-2.0.html</url>
  22. <distribution>repo</distribution>
  23. </license>
  24. </licenses>
  25. <scm>
  26. <url>git@github.com:aliyunmq/rocketmq-rocksdb.git</url>
  27. <connection>scm:git:git@github.com:aliyunmq/rocketmq-rocksdb.git</connection>
  28. <developerConnection>scm:git:git@github.com:aliyunmq/rocketmq-rocksdb.git</developerConnection>
  29. </scm>
  30. <organization>
  31. <name>Facebook</name>
  32. <url>https://www.facebook.com</url>
  33. </organization>
  34. <developers>
  35. <developer>
  36. <name>Facebook</name>
  37. <email>help@facebook.com</email>
  38. <timezone>America/New_York</timezone>
  39. <roles>
  40. <role>architect</role>
  41. </roles>
  42. </developer>
  43. </developers>
  44. <mailingLists>
  45. <mailingList>
  46. <name>rocksdb - Google Groups</name>
  47. <subscribe>rocksdb-subscribe@googlegroups.com</subscribe>
  48. <unsubscribe>rocksdb-unsubscribe@googlegroups.com</unsubscribe>
  49. <post>rocksdb@googlegroups.com</post>
  50. <archive>https://groups.google.com/forum/#!forum/rocksdb</archive>
  51. </mailingList>
  52. </mailingLists>
  53. <properties>
  54. <project.build.source>1.8</project.build.source>
  55. <project.build.target>1.8</project.build.target>
  56. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  57. </properties>
  58. <repositories>
  59. <repository>
  60. <id>releases</id>
  61. <url>https://s01.oss.sonatype.org/content/repositories/releases</url>
  62. </repository>
  63. <repository>
  64. <id>snapshots</id>
  65. <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
  66. </repository>
  67. </repositories>
  68. <distributionManagement>
  69. <snapshotRepository>
  70. <id>sonatype-nexus-snapshots-aliyunmq</id>
  71. <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
  72. </snapshotRepository>
  73. <repository>
  74. <id>sonatype-nexus-staging-aliyunmq</id>
  75. <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  76. </repository>
  77. </distributionManagement>
  78. <build>
  79. <plugins>
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-compiler-plugin</artifactId>
  83. <version>3.2</version>
  84. <configuration>
  85. <source>${project.build.source}</source>
  86. <target>${project.build.target}</target>
  87. <encoding>${project.build.sourceEncoding}</encoding>
  88. </configuration>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-surefire-plugin</artifactId>
  93. <version>2.18.1</version>
  94. <configuration>
  95. <argLine>${argLine} -ea -Xcheck:jni -Djava.library.path=${project.build.directory}</argLine>
  96. <useManifestOnlyJar>false</useManifestOnlyJar>
  97. <useSystemClassLoader>false</useSystemClassLoader>
  98. <additionalClasspathElements>
  99. <additionalClasspathElement>${project.build.directory}/*</additionalClasspathElement>
  100. </additionalClasspathElements>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.jacoco</groupId>
  105. <artifactId>jacoco-maven-plugin</artifactId>
  106. <version>0.7.2.201409121644</version>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>prepare-agent</goal>
  111. </goals>
  112. </execution>
  113. <execution>
  114. <id>report</id>
  115. <phase>prepare-package</phase>
  116. <goals>
  117. <goal>report</goal>
  118. </goals>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.codehaus.gmaven</groupId>
  124. <artifactId>groovy-maven-plugin</artifactId>
  125. <version>2.0</version>
  126. <executions>
  127. <execution>
  128. <phase>process-classes</phase>
  129. <goals>
  130. <goal>execute</goal>
  131. </goals>
  132. <configuration>
  133. <defaults>
  134. <name>Xenu</name>
  135. </defaults>
  136. <source>
  137. String fileContents = new File(project.basedir.absolutePath + '/../include/rocksdb/version.h').getText('UTF-8')
  138. matcher = (fileContents =~ /(?s).*ROCKSDB_MAJOR ([0-9]+).*?/)
  139. String major_version = matcher.getAt(0).getAt(1)
  140. matcher = (fileContents =~ /(?s).*ROCKSDB_MINOR ([0-9]+).*?/)
  141. String minor_version = matcher.getAt(0).getAt(1)
  142. matcher = (fileContents =~ /(?s).*ROCKSDB_PATCH ([0-9]+).*?/)
  143. String patch_version = matcher.getAt(0).getAt(1)
  144. String version = String.format('%s.%s.%s', major_version, minor_version, patch_version)
  145. // Set version to be used in pom.properties
  146. project.version = version
  147. // Set version to be set as jar name
  148. project.build.finalName = project.artifactId + "-" + version
  149. </source>
  150. </configuration>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. </plugins>
  155. </build>
  156. <dependencies>
  157. <dependency>
  158. <groupId>junit</groupId>
  159. <artifactId>junit</artifactId>
  160. <version>4.13.1</version>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.hamcrest</groupId>
  165. <artifactId>hamcrest</artifactId>
  166. <version>2.2</version>
  167. <scope>test</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>cglib</groupId>
  171. <artifactId>cglib</artifactId>
  172. <version>3.3.0</version>
  173. <scope>test</scope>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.assertj</groupId>
  177. <artifactId>assertj-core</artifactId>
  178. <version>2.9.0</version>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.mockito</groupId>
  183. <artifactId>mockito-all</artifactId>
  184. <version>1.10.19</version>
  185. <scope>test</scope>
  186. </dependency>
  187. </dependencies>
  188. </project>