Adding maven nexus repo to my pom.xml

前端 未结 6 1183
死守一世寂寞
死守一世寂寞 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条回答
  •  无人及你
    2020-12-08 01:10

    If you don't want or you cannot modify the settings.xml file, you can create a new one in your root project, and call maven passing it as a parameter with the -s parameter:

    $ mvn COMMAND ... -s settings.xml
    

提交回复
热议问题