Is there are way to install maven dependencies before maven attempts to resolve them?

后端 未结 4 814
孤街浪徒
孤街浪徒 2020-12-10 11:06

I have to unpack some dependencies from a remote location and install them locally.

I successfully get them (using the antrun plugin) and install them (using the ins

4条回答
  •  时光说笑
    2020-12-10 11:38

    you should look at running Artifact Repository Manager such as Archiva, then you can just load them in there, and in your ~/.m2/settings.xml file add you Archiva server and don't have to worry about doing local installs manually, that is assuming the artifacts aren't already in a remote repository. If your "remote location" is a Maven repository, Archiva can proxy that transparently as well.

提交回复
热议问题