1 Star 0 Fork 0

惜~缘/smart-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 9.44 KB
一键复制 编辑 原始数据 按行查看 历史
惜~缘 提交于 2024-10-04 19:17 . 工具优化
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gitee.xiyuan-lgz</groupId>
<artifactId>smart-utils</artifactId>
<version>1.0.16</version>
<packaging>jar</packaging>
<name>smart-utils</name>
<url>https://gitee.com/xiyuan-lgz</url>
<description>一个实用的java 工具包,不依赖于第三方插件</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<scm>
<url>https://gitee.com/xiyuan-lgz</url>
<connection>https://gitee.com/xiyuan-lgz/</connection>
</scm>
<developers>
<developer>
<name>xiyuan-lgz</name>
<id>xiyuan-lgz</id>
<email>[email protected]</email>
<roles>
<role>Developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
<properties>
<project-encoding>UTF-8</project-encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<target.version>1.8</target.version>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.34</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.8.9</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.29.2-GA</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.i2p.crypto</groupId>
<artifactId>eddsa</artifactId>
<version>0.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.77</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.5.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- <plugin>-->
<!-- <groupId>com.github.wvengen</groupId>-->
<!-- <artifactId>proguard-maven-plugin</artifactId>-->
<!-- <version>2.2.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- &lt;!&ndash; 打包的时候开始混淆&ndash;&gt;-->
<!-- <phase>compile</phase>-->
<!-- <goals>-->
<!-- <goal>proguard</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!--&lt;!&ndash; <injar>${project.build.finalName}.jar</injar>&ndash;&gt;-->
<!--&lt;!&ndash; &lt;!&ndash;输出的jar&ndash;&gt;&ndash;&gt;-->
<!--&lt;!&ndash; <outjar>${project.build.finalName}.jar</outjar>&ndash;&gt;-->
<!-- &lt;!&ndash; 是否混淆&ndash;&gt;-->
<!-- <obfuscate>true</obfuscate>-->
<!-- <options>-->
<!-- <option>-target 1.8</option> &lt;!&ndash;指定java版本号&ndash;&gt;-->
<!-- <option>-dontshrink</option> &lt;!&ndash;默认开启,不做收缩(删除注释、未被引用代码)&ndash;&gt;-->
<!-- <option>-dontoptimize</option>&lt;!&ndash;默认是开启的,这里关闭字节码级别的优化&ndash;&gt;-->
<!--&lt;!&ndash; <option>-adaptclassstrings</option>&lt;!&ndash;混淆类名之后,对使用Class.forName('className')之类的地方进行相应替代&ndash;&gt;&ndash;&gt;-->
<!-- <option>-ignorewarnings-->
<!-- </option>&lt;!&ndash; 忽略warn消息,如果提示org.apache.http.* 这个包里的类有问题,那么就加入下述代码:-keep class org.apache.http.** { *; } -dontwarn org.apache.http.**&ndash;&gt;-->
<!-- <option>-keep class org.apache.logging.log4j.util.* { *; }</option>-->
<!-- </options>-->
<!-- <libs>-->
<!-- &lt;!&ndash; 添加依赖 java&ndash;&gt;-->
<!-- <lib>${java.home}/lib/rt.jar</lib>-->
<!-- <lib>${java.home}/lib/jce.jar</lib>-->
<!-- </libs>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!--
nexus-staging-maven-plugin是一个nexus用来自动控制流程的客户端插件。
如果你想分享自己的java开源项目到maven中央仓库,就有可能需要这个插件
-->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<!-- gpg plugin 插件,用于签名认证 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 编译插件 因为可能会报错 java 1.5 版本不支持-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<configuration>
<source>${java.version}</source>
<target>${target.version}</target>
</configuration>
</plugin>
<!-- 打包源码插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</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>2.10.2</version>
<configuration>
<aggregate>true</aggregate>
<charset>${project-encoding}</charset> <!-- utf-8读取文件 -->
<encoding>${project-encoding}</encoding> <!-- utf-8进行编码代码 -->
<docencoding>${project-encoding}
</docencoding> <!-- utf-8进行编码文档 -->
<!-- jdk1.8要加上,1.7要去掉,否则会报错 -->
<additionalJOptions>
<additionalJOption>-Xdoclint:none</additionalJOption>
</additionalJOptions>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.gitee.xiyuan-lgz</groupId>
<artifactId>xiyuan-maven-repackage-plugin</artifactId>
<version>0.0.2</version>
<executions>
<execution>
<goals>
<goal>source</goal>
<goal>pom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiyuan-lgz/smart-utils.git
[email protected]:xiyuan-lgz/smart-utils.git
xiyuan-lgz
smart-utils
smart-utils
master

搜索帮助