|
|
@@ -12,12 +12,150 @@
|
|
|
<version>1.0.0</version>
|
|
|
<name>class-winter</name>
|
|
|
<description>class混淆、加密</description>
|
|
|
+
|
|
|
<properties>
|
|
|
<java.version>1.8</java.version>
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
|
|
|
+ <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
</properties>
|
|
|
|
|
|
+ <!--licenses信息-->
|
|
|
+ <licenses>
|
|
|
+ <license>
|
|
|
+ <name>The Apache Software License, Version 2.0</name>
|
|
|
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
|
+ <distribution>repo</distribution>
|
|
|
+ </license>
|
|
|
+ </licenses>
|
|
|
+
|
|
|
+ <!--scm信息-->
|
|
|
+ <scm>
|
|
|
+ <url>https://gitee.com/JustryDeng/class-winter</url>
|
|
|
+ <connection>https://gitee.com/JustryDeng/class-winter.git</connection>
|
|
|
+ </scm>
|
|
|
+
|
|
|
+ <!--开发者信息-->
|
|
|
+ <developers>
|
|
|
+ <developer>
|
|
|
+ <name>JustryDeng</name>
|
|
|
+ <email>13548417409@163.com</email>
|
|
|
+ </developer>
|
|
|
+ </developers>
|
|
|
+
|
|
|
+ <distributionManagement>
|
|
|
+ <snapshotRepository>
|
|
|
+ <!-- id与settings.xml中的server id对应 -->
|
|
|
+ <id>ossrh</id>
|
|
|
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
+ </snapshotRepository>
|
|
|
+ <repository>
|
|
|
+ <!-- id与settings.xml中的server id对应 -->
|
|
|
+ <id>ossrh</id>
|
|
|
+ <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
|
+ </repository>
|
|
|
+ </distributionManagement>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <!-- 打包源码 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
+ <version>3.1.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>attach-sources</id>
|
|
|
+ <goals>
|
|
|
+ <goal>jar-no-fork</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- 打包javadoc -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-javadoc-plugin</artifactId>
|
|
|
+ <version>3.1.0</version>
|
|
|
+ <configuration>
|
|
|
+ <!-- 解决报错 -->
|
|
|
+ <additionalOptions>
|
|
|
+ <additionalOption>-Xdoclint:none</additionalOption>
|
|
|
+ </additionalOptions>
|
|
|
+ <!--
|
|
|
+ 解决乱码:
|
|
|
+ 在IDEA中,打开File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner
|
|
|
+ 在VM Options中添加-Dfile.encoding=GBK,切记一定是GBK。即使用UTF-8的话,依然是乱码,这是因为Maven的
|
|
|
+ 默认平台编码是GBK(通过mvn -version可看见)。
|
|
|
+ -->
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>attach-javadocs</id>
|
|
|
+ <goals>
|
|
|
+ <goal>jar</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- nexus流程处理插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.sonatype.plugins</groupId>
|
|
|
+ <artifactId>nexus-staging-maven-plugin</artifactId>
|
|
|
+ <version>1.6.7</version>
|
|
|
+ <extensions>true</extensions>
|
|
|
+ <configuration>
|
|
|
+ <!-- 与settings.xml中的server id对应 -->
|
|
|
+ <serverId>ossrh</serverId>
|
|
|
+ <nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
|
|
+ <autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- 发布到release仓库的部署插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-release-plugin</artifactId>
|
|
|
+ <version>2.5.3</version>
|
|
|
+ <configuration>
|
|
|
+ <autoVersionSubmodules>true</autoVersionSubmodules>
|
|
|
+ <useReleaseProfile>false</useReleaseProfile>
|
|
|
+ <releaseProfiles>release</releaseProfiles>
|
|
|
+ <goals>deploy</goals>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- gpg签名认证 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-gpg-plugin</artifactId>
|
|
|
+ <version>1.6</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>sign-artifacts</id>
|
|
|
+ <phase>verify</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>sign</goal>
|
|
|
+ </goals>
|
|
|
+ <!--
|
|
|
+ 注: 如果不主动指定gpg.exe的话,那么可能(因为和idea内部发生了未知冲突)报错
|
|
|
+ Cannot run program "gpg.exe": CreateProcess error=2, 系统找不到指定的文件。
|
|
|
+ 注: 当然,如果你直接用的git bash之类的工具执行mvn,而不是用idea提供的maven功能
|
|
|
+ 的话,你也可以不指定executable。
|
|
|
+ -->
|
|
|
+ <configuration>
|
|
|
+ <executable>C:/Program Files (x86)/GnuPG/bin/gpg.exe</executable>
|
|
|
+ <!-- 创建gpg密钥对时指定的密码(如果这里不指定的话, 那么需要用到的时候就会让你主动输入) -->
|
|
|
+ <passphrase>dengshuai1994</passphrase>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
</project>
|