hzero
hzero copied to clipboard
下载源码 maven构建报错
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
编译
开源的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
再执行脚本