# commons.util **Repository Path**: rslai/commons.util ## Basic Information - **Project Name**: commons.util - **Description**: 通用工具类 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-06 - **Last Updated**: 2024-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # commons.util #### 项目介绍 通用工具类 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 开发调试 1. clone 此 git 项目 2. 直接运行项目会报如下错误 ``` java: 错误: 不支持发行版本 5 ``` 3. 在 pom.xml 的 properties 中添加 ``` 1.8 1.8 ``` 添加后如下 ``` UTF-8 UTF-8 UTF-8 1.8 1.8 ``` 4. 编译运行 #### 发布 mvn 仓库教程 1. 请使用 jdk 1.8 编译和发发布到 mvn 仓库 2. 由于我电脑上有多个 jdk 所以将 jdk 1.8 添加到 PATH 中。如果你也是需要根据你的配置对应添加 ``` export PATH=/Library/Java/jdk1.8.0_231.jdk/Contents/Home/jre/bin/:$PATH ``` 3. 由于项目较早我引用的 mvn 插件有 bug,执行 mvn deploy 时报如下错误 ``` [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project util: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy failed: An API incompatibility was encountered while executing org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy: java.lang.ExceptionInInitializerError: null ``` 4. 可以通过增加编译参数解决,在命令行执行 ``` export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED" ``` 5. 执行如下命令编译及发布到 mvn 仓库 ``` mvn clean mvn package mvn deploy ``` #### 参与贡献 1. Fork 本项目 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)