pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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>webhook</module>
  23. <module>email</module>
  24. <module>svn-clone</module>
  25. <module>docker-cli</module>
  26. <module>git-clone</module>
  27. <module>encrypt</module>
  28. <module>ssh-jsch</module>
  29. </modules>
  30. <modelVersion>4.0.0</modelVersion>
  31. <version>2.11.12.1</version>
  32. <groupId>org.dromara.jpom.plugins</groupId>
  33. <artifactId>jpom-plugins-parent</artifactId>
  34. <name>Jpom Plugins</name>
  35. <description>
  36. Jpom java 插件模块
  37. </description>
  38. <properties>
  39. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  40. <java.version>1.8</java.version>
  41. <!-- 跳过测试 -->
  42. <skipTests>true</skipTests>
  43. <maven.test.skip>true</maven.test.skip>
  44. </properties>
  45. <dependencies>
  46. </dependencies>
  47. <build>
  48. <plugins>
  49. <!-- 编译插件, 设定JDK版本 -->
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-compiler-plugin</artifactId>
  53. <version>3.8.0</version>
  54. <configuration>
  55. <source>${java.version}</source>
  56. <target>${java.version}</target>
  57. <encoding>${project.build.sourceEncoding}</encoding>
  58. </configuration>
  59. </plugin>
  60. <!--surefire插件,避免mvn test console乱码-->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-surefire-plugin</artifactId>
  64. <version>2.22.0</version>
  65. <configuration>
  66. <forkMode>once</forkMode>
  67. <argLine>-Dfile.encoding=UTF-8</argLine>
  68. </configuration>
  69. </plugin>
  70. </plugins>
  71. </build>
  72. <profiles>
  73. <profile>
  74. <id>release</id>
  75. <distributionManagement>
  76. <snapshotRepository>
  77. <id>maven-repo</id>
  78. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  79. </snapshotRepository>
  80. <repository>
  81. <id>maven-repo</id>
  82. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  83. </repository>
  84. </distributionManagement>
  85. <build>
  86. <plugins>
  87. <!-- source插件,打包源码 -->
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-source-plugin</artifactId>
  91. <version>2.4</version>
  92. <executions>
  93. <execution>
  94. <id>attach-sources</id>
  95. <goals>
  96. <goal>jar</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <!-- Javadoc -->
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-javadoc-plugin</artifactId>
  105. <version>3.0.0</version>
  106. <executions>
  107. <execution>
  108. <id>attach-javadoc</id>
  109. <phase>package</phase>
  110. <goals>
  111. <goal>jar</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. <configuration>
  116. <tags>
  117. <tag>
  118. <name>date</name>
  119. <placement>a</placement>
  120. <head>创建时间</head>
  121. </tag>
  122. </tags>
  123. </configuration>
  124. </plugin>
  125. <!-- GPG -->
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-gpg-plugin</artifactId>
  129. <version>3.0.1</version>
  130. <executions>
  131. <execution>
  132. <id>verify-gpg</id>
  133. <phase>verify</phase>
  134. <goals>
  135. <goal>sign</goal>
  136. </goals>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.sonatype.central</groupId>
  142. <artifactId>central-publishing-maven-plugin</artifactId>
  143. <version>0.6.0</version>
  144. <extensions>true</extensions>
  145. <configuration>
  146. <!-- 这里的publishingServerId是在settings.xml中配置的server认证信息 -->
  147. <!-- 注意 Github Action 中的 server-id 也要与此保持一致 -->
  148. <publishingServerId>sonatype-nexus-staging</publishingServerId>
  149. <autoPublish>true</autoPublish>
  150. </configuration>
  151. </plugin>
  152. </plugins>
  153. </build>
  154. </profile>
  155. </profiles>
  156. <scm>
  157. <tag>master</tag>
  158. <url>git@gitee.com:dromara/Jpom.git</url>
  159. <connection>scm:git:git@gitee.com:dromara/Jpom.git</connection>
  160. <developerConnection>scm:git:git@gitee.com:dromara/Jpom.git</developerConnection>
  161. </scm>
  162. <developers>
  163. <developer>
  164. <name>bwcx_jzy</name>
  165. <email>bwcx_jzy@163.com</email>
  166. <organization>bwcx_jzy</organization>
  167. </developer>
  168. </developers>
  169. </project>