Use Nexus As Dependency Resolver using Gradle in Spring Boot Application

拟墨画扇 提交于 2021-01-29 04:38:34

问题


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. I did't found any configuration.


回答1:


Add your nexus url in 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



来源:https://stackoverflow.com/questions/59676030/use-nexus-as-dependency-resolver-using-gradle-in-spring-boot-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!