pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2019 Of Him Code Technology Studio
  4. Jpom is licensed under Mulan PSL v2.
  5. You can use this software according to the terms and conditions of the Mulan PSL v2.
  6. You may obtain a copy of Mulan PSL v2 at:
  7. http://license.coscl.org.cn/MulanPSL2
  8. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  9. See the Mulan PSL v2 for more details.
  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/xsd/maven-4.0.0.xsd">
  14. <parent>
  15. <artifactId>jpom-parent</artifactId>
  16. <groupId>org.dromara.jpom</groupId>
  17. <version>2.11.12.1</version>
  18. <relativePath>../../pom.xml</relativePath>
  19. </parent>
  20. <packaging>pom</packaging>
  21. <modules>
  22. <module>storage-module-common</module>
  23. <module>storage-module-h2</module>
  24. <module>storage-module-mysql</module>
  25. <module>storage-module-postgresql</module>
  26. <module>storage-module-mariadb</module>
  27. <module>storage-module-dameng</module>
  28. </modules>
  29. <modelVersion>4.0.0</modelVersion>
  30. <version>2.11.12.1</version>
  31. <groupId>org.dromara.jpom.storage-module</groupId>
  32. <artifactId>jpom-storage-module-parent</artifactId>
  33. <name>Jpom storage module</name>
  34. <description>
  35. Jpom 存储模块
  36. </description>
  37. <properties>
  38. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  39. <java.version>1.8</java.version>
  40. <!-- 跳过测试 -->
  41. <skipTests>true</skipTests>
  42. <maven.test.skip>true</maven.test.skip>
  43. </properties>
  44. <dependencies>
  45. </dependencies>
  46. <dependencyManagement>
  47. <dependencies>
  48. <dependency>
  49. <groupId>com.mysql</groupId>
  50. <artifactId>mysql-connector-j</artifactId>
  51. <version>${mysql.version}</version>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>com.google.protobuf</groupId>
  55. <artifactId>protobuf-java</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. </dependencies>
  60. </dependencyManagement>
  61. <build>
  62. <plugins>
  63. <!-- 编译插件, 设定JDK版本 -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <version>3.8.0</version>
  68. <configuration>
  69. <source>${java.version}</source>
  70. <target>${java.version}</target>
  71. <encoding>${project.build.sourceEncoding}</encoding>
  72. </configuration>
  73. </plugin>
  74. <!--surefire插件,避免mvn test console乱码-->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-surefire-plugin</artifactId>
  78. <version>2.22.0</version>
  79. <configuration>
  80. <forkMode>once</forkMode>
  81. <argLine>-Dfile.encoding=UTF-8</argLine>
  82. </configuration>
  83. </plugin>
  84. </plugins>
  85. </build>
  86. <profiles>
  87. <profile>
  88. <id>release</id>
  89. <distributionManagement>
  90. <snapshotRepository>
  91. <id>maven-repo</id>
  92. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  93. </snapshotRepository>
  94. <repository>
  95. <id>maven-repo</id>
  96. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  97. </repository>
  98. </distributionManagement>
  99. <build>
  100. <plugins>
  101. <!-- source插件,打包源码 -->
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-source-plugin</artifactId>
  105. <version>2.4</version>
  106. <executions>
  107. <execution>
  108. <id>attach-sources</id>
  109. <goals>
  110. <goal>jar</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <!-- Javadoc -->
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-javadoc-plugin</artifactId>
  119. <version>3.0.0</version>
  120. <executions>
  121. <execution>
  122. <id>attach-javadoc</id>
  123. <phase>package</phase>
  124. <goals>
  125. <goal>jar</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. <configuration>
  130. <tags>
  131. <tag>
  132. <name>date</name>
  133. <placement>a</placement>
  134. <head>创建时间</head>
  135. </tag>
  136. </tags>
  137. </configuration>
  138. </plugin>
  139. <!-- GPG -->
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-gpg-plugin</artifactId>
  143. <version>3.0.1</version>
  144. <executions>
  145. <execution>
  146. <id>verify-gpg</id>
  147. <phase>verify</phase>
  148. <goals>
  149. <goal>sign</goal>
  150. </goals>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.sonatype.central</groupId>
  156. <artifactId>central-publishing-maven-plugin</artifactId>
  157. <version>0.6.0</version>
  158. <extensions>true</extensions>
  159. <configuration>
  160. <!-- 这里的publishingServerId是在settings.xml中配置的server认证信息 -->
  161. <!-- 注意 Github Action 中的 server-id 也要与此保持一致 -->
  162. <publishingServerId>sonatype-nexus-staging</publishingServerId>
  163. <autoPublish>true</autoPublish>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </profile>
  169. </profiles>
  170. <scm>
  171. <tag>master</tag>
  172. <url>git@gitee.com:dromara/Jpom.git</url>
  173. <connection>scm:git:git@gitee.com:dromara/Jpom.git</connection>
  174. <developerConnection>scm:git:git@gitee.com:dromara/Jpom.git</developerConnection>
  175. </scm>
  176. <developers>
  177. <developer>
  178. <name>bwcx_jzy</name>
  179. <email>bwcx_jzy@163.com</email>
  180. <organization>bwcx_jzy</organization>
  181. </developer>
  182. </developers>
  183. </project>