hzero icon indicating copy to clipboard operation
hzero copied to clipboard

下载源码 maven构建报错

Open AlfredNing opened this issue 1 year ago • 1 comments

org.hzero:hzero-parent:pom:1.4.0.RELEASE was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced

AlfredNing avatar Dec 27 '23 00:12 AlfredNing

编译

开源的HZERO源码若要使用需要进行本地编译打包或上传到私人的maven仓库

  • 本地编译打包

执行hzero-service目录下的install.bat或者install.sh脚本

  • 上传到私人仓库

hzero-service/pom.xml文件中添加仓库声明

<distributionManagement>
    <repository>
        <id>{Repository Id}</id>
        <name>{Repository Name}</name>
        <url>{Repository Url}</url>
    </repository>
</distributionManagement>

修改hzero-service目录下的install.bat或者install.sh脚本,添加deploy,例如:

mvn clean install -Dmaven.springboot.skip=true -Dmaven.test.skip=true -Dfile.encoding=UTF-8
->
mvn clean install deploy -Dmaven.springboot.skip=true -Dmaven.test.skip=true -Dfile.encoding=UTF-8

再执行脚本

neko-11 avatar Apr 08 '24 11:04 neko-11