devops-service icon indicating copy to clipboard operation
devops-service copied to clipboard

无法拉依赖包

Open li-sen opened this issue 4 years ago • 6 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [ ] I have checked the Choerodon logs and included it here as text if any
  • [ ] I have reproduced the issue with at least the latest released version of Choerodon
  • [ ] I have checked the issue tracker for the same issue and I haven't found one similar

Choerodon version

Expected results

INFO] Scanning for projects...
[INFO]
[INFO] --------------------< io.choerodon:devops-service >---------------------
[INFO] Building devops-service 0.23.16.RELEASE
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.870 s
[INFO] Finished at: 2021-05-17T18:17:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project devops-service: Could not resolve dependencies for project io.choerodon:devops-service:jar:0.23.16.RELEASE: Failed to collect dependencies at io.choerodon:choerodon-liquibase:jar:0.16.1.RELEASE: Failed to read artifact descriptor for io.choerodon:choerodon-liquibase:jar:0.16.1.RELEASE: Failure to find io.choerodon:choerodon-starter-parent:pom:0.16.1.RELEASE in http://nexus.saas.hand-china.com/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of HandPublic has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Actual results

Steps to reproduce

li-sen avatar May 17 '21 10:05 li-sen

你好,你可以拉取代码本地编译,除了基础依赖相关的 starter jar包,其他服务并未将 jar 包发布。

ZmfCn avatar May 18 '21 01:05 ZmfCn

啥意思? liquibase 我自己去拉官方包?

li-sen avatar May 18 '21 02:05 li-sen

不好意思,看错了,我们看看这个liquibase依赖问题

ZmfCn avatar May 18 '21 03:05 ZmfCn

这个包已经上传到公开仓库了的,应该是可以拉的 image

Wang-ha0 avatar May 18 '21 05:05 Wang-ha0

image 还是不行呀

li-sen avatar May 19 '21 01:05 li-sen

你好~ choerodon-parent 0.17.1我们也是在pom文件中添加了hzero的私库的 image 你也可以先在pom文件中,添加下hzero的公开私库

<repositories>
        <repository>
            <id>HandPublic</id>
            <name>Hand-Public Repository</name>
            <url>http://nexus.saas.hand-china.com/content/repositories/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>HzeroRelease</id>
            <name>Hzero-Release Repository</name>
            <url>http://nexus.saas.hand-china.com/content/repositories/Hzero-Release/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>HzeroSnapshot</id>
            <name>Hzero-Snapshot Repository</name>
            <url>http://nexus.saas.hand-china.com/content/repositories/Hzero-Snapshot/</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </repository>
    </repositories>

devil-scp avatar May 19 '21 02:05 devil-scp