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

下载代码首次构建时,无法获取依赖 #40

Open
yigeyanse opened this issue Feb 28, 2024 · 1 comment
Open

下载代码首次构建时,无法获取依赖 #40

yigeyanse opened this issue Feb 28, 2024 · 1 comment

Comments

@yigeyanse
Copy link

Dependency 'org.hzero.starter:hzero-starter-parent:1.5.6' not found
Dependency 'org.hzero.starter:hzero-starter-apollo-config:1.5.6' not found
。。。

@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