简体   繁体   English

在 Spring Boot 应用程序中使用 Gradle 将 Nexus 用作依赖项解析器

[英]Use Nexus As Dependency Resolver using Gradle in Spring Boot Application

I am developing application using spring boot, i am using gradle as build tool, i want to configure gradle to resolve their dependencies instead of maven central or jcenter go to my Local nexus server get all dependencies from their and build project.我正在使用 spring boot 开发应用程序,我使用 gradle 作为构建工具,我想配置 gradle 来解决它们的依赖项,而不是 maven central 或 jcenter 转到我的本地 nexus 服务器从他们的和构建项目中获取所有依赖项。 I did't found any configuration.我没有找到任何配置。

Add your nexus url in build.gradle.在 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/' }
}

For nexus configuration look at this对于连接配置看这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM