Adding maven nexus repo to my pom.xml

前端 未结 6 1187
死守一世寂寞
死守一世寂寞 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:00

    From the Apache Maven site

    
      ...
      
        
          my-internal-site
          http://myserver/repo
        
      
      ...
    
    

    "The repositories for download and deployment are defined by the repositories and distributionManagement elements of the POM. However, certain settings such as username and password should not be distributed along with the pom.xml. This type of information should exist on the build server in the settings.xml." - Apache Maven site - settings reference

    
        
            server001
            my_login
            my_password
            ${user.home}/.ssh/id_dsa
            some_passphrase
            664
            775
            
        
    
    

提交回复
热议问题