pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <packaging>pom</packaging>
  6. <modules>
  7. <module>class-winter-core</module>
  8. <module>class-winter-maven-plugin</module>
  9. </modules>
  10. <groupId>com.idea-aedi</groupId>
  11. <artifactId>class-winter</artifactId>
  12. <version>1.0.0</version>
  13. <name>class-winter</name>
  14. <description>class混淆、加密</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <maven.compiler.source>1.8</maven.compiler.source>
  18. <maven.compiler.target>1.8</maven.compiler.target>
  19. <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
  20. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. </properties>
  24. <!--licenses信息-->
  25. <licenses>
  26. <license>
  27. <name>The Apache Software License, Version 2.0</name>
  28. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  29. <distribution>repo</distribution>
  30. </license>
  31. </licenses>
  32. <!--scm信息-->
  33. <scm>
  34. <url>https://gitee.com/JustryDeng/class-winter</url>
  35. <connection>https://gitee.com/JustryDeng/class-winter.git</connection>
  36. </scm>
  37. <!--开发者信息-->
  38. <developers>
  39. <developer>
  40. <name>JustryDeng</name>
  41. <email>13548417409@163.com</email>
  42. </developer>
  43. </developers>
  44. <distributionManagement>
  45. <snapshotRepository>
  46. <!-- id与settings.xml中的server id对应 -->
  47. <id>ossrh</id>
  48. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  49. </snapshotRepository>
  50. <repository>
  51. <!-- id与settings.xml中的server id对应 -->
  52. <id>ossrh</id>
  53. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  54. </repository>
  55. </distributionManagement>
  56. <build>
  57. <plugins>
  58. <!-- 打包源码 -->
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-source-plugin</artifactId>
  62. <version>3.1.0</version>
  63. <executions>
  64. <execution>
  65. <id>attach-sources</id>
  66. <goals>
  67. <goal>jar-no-fork</goal>
  68. </goals>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <!-- 打包javadoc -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-javadoc-plugin</artifactId>
  76. <version>3.1.0</version>
  77. <configuration>
  78. <!-- 解决报错 -->
  79. <additionalOptions>
  80. <additionalOption>-Xdoclint:none</additionalOption>
  81. </additionalOptions>
  82. <!--
  83. 解决乱码:
  84. 在IDEA中,打开File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner
  85. 在VM Options中添加-Dfile.encoding=GBK,切记一定是GBK。即使用UTF-8的话,依然是乱码,这是因为Maven的
  86. 默认平台编码是GBK(通过mvn -version可看见)。
  87. -->
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <id>attach-javadocs</id>
  92. <goals>
  93. <goal>jar</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <!-- nexus流程处理插件 -->
  99. <plugin>
  100. <groupId>org.sonatype.plugins</groupId>
  101. <artifactId>nexus-staging-maven-plugin</artifactId>
  102. <version>1.6.7</version>
  103. <extensions>true</extensions>
  104. <configuration>
  105. <!-- 与settings.xml中的server id对应 -->
  106. <serverId>ossrh</serverId>
  107. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  108. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  109. </configuration>
  110. </plugin>
  111. <!-- 发布到release仓库的部署插件 -->
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-release-plugin</artifactId>
  115. <version>2.5.3</version>
  116. <configuration>
  117. <autoVersionSubmodules>true</autoVersionSubmodules>
  118. <useReleaseProfile>false</useReleaseProfile>
  119. <releaseProfiles>release</releaseProfiles>
  120. <goals>deploy</goals>
  121. </configuration>
  122. </plugin>
  123. <!-- gpg签名认证 -->
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-gpg-plugin</artifactId>
  127. <version>1.6</version>
  128. <executions>
  129. <execution>
  130. <id>sign-artifacts</id>
  131. <phase>verify</phase>
  132. <goals>
  133. <goal>sign</goal>
  134. </goals>
  135. <!--
  136. 注: 如果不主动指定gpg.exe的话,那么可能(因为和idea内部发生了未知冲突)报错
  137. Cannot run program "gpg.exe": CreateProcess error=2, 系统找不到指定的文件。
  138. 注: 当然,如果你直接用的git bash之类的工具执行mvn,而不是用idea提供的maven功能
  139. 的话,你也可以不指定executable。
  140. -->
  141. <configuration>
  142. <executable>C:/Program Files (x86)/GnuPG/bin/gpg.exe</executable>
  143. <!-- 创建gpg密钥对时指定的密码(如果这里不指定的话, 那么需要用到的时候就会让你主动输入) -->
  144. <passphrase>dengshuai1994</passphrase>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. </project>