【问题标题】:Use Nexus As Dependency Resolver using Gradle in Spring Boot Application在 Spring Boot 应用程序中使用 Gradle 将 Nexus 作为依赖解析器
【发布时间】:2020-01-10 05:38:38
【问题描述】:

我正在使用 spring boot 开发应用程序,我使用 gradle 作为构建工具,我想配置 gradle 来解决它们的依赖关系,而不是 maven central 或 jcenter 转到我的本地 nexus 服务器从他们的和构建项目中获取所有依赖项。我没有找到任何配置。

【问题讨论】:

    标签: spring spring-boot gradle nexus nexus3


    【解决方案1】:

    在 build.gradle 中添加您的链接网址。

    repositories {
       // mavenLocal()
       // mavenCentral()
       // jcenter()
       //maven { url 'http://10.9.0.31:8099/repository/maven-public/' }
        maven { url 'http://ip:port/repository/maven-public/' }
    }
    

    对于nexus配置look at this

    【讨论】:

    • 此链接打不开。请单独粘贴完整链接。以及如何在我的关系中上传所有 jar 依赖项
    猜你喜欢
    • 1970-01-01
    • 2018-10-07
    • 2019-01-27
    • 1970-01-01
    • 2023-03-10
    • 2017-04-09
    • 2018-08-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多