Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载源码 maven构建报错 #38

Open
AlfredNing opened this issue Dec 27, 2023 · 1 comment
Open

下载源码 maven构建报错 #38

AlfredNing opened this issue Dec 27, 2023 · 1 comment

Comments

@AlfredNing
Copy link

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

@neko-11
Copy link
Contributor

neko-11 commented Apr 8, 2024

编译

开源的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

再执行脚本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants