Maven Internal Repository, Is it Really This Hard?

前端 未结 3 1826
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 03:55

I have several projects which use Maven and I would like to run an internal repository on my work network. I have several libraries which are from third parties and cannot b

3条回答
  •  时光取名叫无心
    2020-12-24 04:38

    Repository managers like Archiva and Nexus are more than just an internal repository. They serve as proxies that obviate reaching out to Maven central or other external repository.

    For just an internal repository all you need is a network or HTTP accessible location that has the structure of a Maven repository. Then you refer to it as another repository in your settings file.

    
      my-internal-repo
      http://myrepo.mycompany.com/
    
    

    See more in Maven's documentation at http://maven.apache.org/guides/introduction/introduction-to-repositories.html.

提交回复
热议问题