1
0

pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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.11.4</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. </modules>
  28. <modelVersion>4.0.0</modelVersion>
  29. <version>2.11.11.4</version>
  30. <groupId>org.dromara.jpom.storage-module</groupId>
  31. <artifactId>jpom-storage-module-parent</artifactId>
  32. <name>Jpom storage module</name>
  33. <description>
  34. Jpom 存储模块
  35. </description>
  36. <properties>
  37. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  38. <java.version>1.8</java.version>
  39. <!-- 跳过测试 -->
  40. <skipTests>true</skipTests>
  41. <maven.test.skip>true</maven.test.skip>
  42. </properties>
  43. <dependencies>
  44. </dependencies>
  45. <dependencyManagement>
  46. <dependencies>
  47. <dependency>
  48. <groupId>com.mysql</groupId>
  49. <artifactId>mysql-connector-j</artifactId>
  50. <version>${mysql.version}</version>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>com.google.protobuf</groupId>
  54. <artifactId>protobuf-java</artifactId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. </dependencies>
  59. </dependencyManagement>
  60. <build>
  61. <plugins>
  62. <!-- 编译插件, 设定JDK版本 -->
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <version>3.8.0</version>
  67. <configuration>
  68. <source>${java.version}</source>
  69. <target>${java.version}</target>
  70. <encoding>${project.build.sourceEncoding}</encoding>
  71. </configuration>
  72. </plugin>
  73. <!--surefire插件,避免mvn test console乱码-->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-surefire-plugin</artifactId>
  77. <version>2.22.0</version>
  78. <configuration>
  79. <forkMode>once</forkMode>
  80. <argLine>-Dfile.encoding=UTF-8</argLine>
  81. </configuration>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. <profiles>
  86. <profile>
  87. <id>release</id>
  88. <distributionManagement>
  89. <snapshotRepository>
  90. <id>maven-repo</id>
  91. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  92. </snapshotRepository>
  93. <repository>
  94. <id>maven-repo</id>
  95. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  96. </repository>
  97. </distributionManagement>
  98. <build>
  99. <plugins>
  100. <!-- source插件,打包源码 -->
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-source-plugin</artifactId>
  104. <version>2.4</version>
  105. <executions>
  106. <execution>
  107. <id>attach-sources</id>
  108. <goals>
  109. <goal>jar</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <!-- Javadoc -->
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-javadoc-plugin</artifactId>
  118. <version>3.0.0</version>
  119. <executions>
  120. <execution>
  121. <id>attach-javadoc</id>
  122. <phase>package</phase>
  123. <goals>
  124. <goal>jar</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. <configuration>
  129. <tags>
  130. <tag>
  131. <name>date</name>
  132. <placement>a</placement>
  133. <head>创建时间</head>
  134. </tag>
  135. </tags>
  136. </configuration>
  137. </plugin>
  138. <!-- GPG -->
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-gpg-plugin</artifactId>
  142. <version>3.0.1</version>
  143. <executions>
  144. <execution>
  145. <id>verify-gpg</id>
  146. <phase>verify</phase>
  147. <goals>
  148. <goal>sign</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.sonatype.plugins</groupId>
  155. <artifactId>nexus-staging-maven-plugin</artifactId>
  156. <version>1.6.13</version>
  157. <extensions>true</extensions>
  158. <configuration>
  159. <serverId>sonatype-nexus-staging</serverId>
  160. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  161. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. </profile>
  167. </profiles>
  168. <scm>
  169. <tag>master</tag>
  170. <url>git@gitee.com:dromara/Jpom.git</url>
  171. <connection>scm:git:git@gitee.com:dromara/Jpom.git</connection>
  172. <developerConnection>scm:git:git@gitee.com:dromara/Jpom.git</developerConnection>
  173. </scm>
  174. <developers>
  175. <developer>
  176. <name>bwcx_jzy</name>
  177. <email>bwcx_jzy@163.com</email>
  178. <organization>bwcx_jzy</organization>
  179. </developer>
  180. </developers>
  181. </project>