Adding maven nexus repo to my pom.xml

前端 未结 6 1186
死守一世寂寞
死守一世寂寞 2020-12-08 00:30

I have installed nexus on my local machine. I want my pom file to point to this repo. How can I add my custom repository to my pom.xml file?

6条回答
  •  猫巷女王i
    2020-12-08 01:04

    It seems the answers here do not support an enterprise use case where a Nexus server has multiple users and has project-based isolation (protection) based on user id ALONG with using an automated build (CI) system like Jenkins. You would not be able to create a settings.xml file to satisfy the different user ids needed for different projects. I am not sure how to solve this, except by opening Nexus up to anonymous access for reading repositories, unless the projects could store a project-specific generic user id in their pom.xml.

提交回复
热议问题