Maven - deploy dependencies to remote repository

前端 未结 3 1849
小蘑菇
小蘑菇 2020-12-28 09:46

I have a few projects with LOTS of maven dependencies. When I invoke the command mvn deploy (or some variation of it), I would like to not only have the project itself depl

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 10:41

    You could start with a clean local repository, attempt to build your application and for any dependency failure, deploy that application to your corporate repository. This would ensure that all the dependencies that your application needs resides in the corporate repository prior to your application getting built and deployed.

    Prior to this, you would configure your local repository to mirror central and other well-known repositories, so that open source third-party libraries automatically get into your remote repository instead of having to be manually uploaded.

    It may turn out that you may not have too many third-party libraries which you would need to manually deploy.

提交回复
热议问题