0

I have a lot of jar files in my local hard drive and I want to use them as a repository so that my internet connection requirement can be removed.

I installed Archiva but I don't know how can I deploy the jar files to Archiva. there is a UI form which does this task but deploying huge amount of jar files by hand is not easy and waste a lot of time.

How can I use my local jar files as a repository so that I can use Maven(or Ivy) to manage dependencies?

4

1 回答 1

1

您可以使用 上传它们mvn deploy:deploy-file,您可以在脚本中使用它进行批量上传(在此处讨论这是一个示例脚本)。

作为替代方案,如果您想直接使用这些本地文件,您可以将它们复制到 Archiva 存储库的存储位置。从这个线程

放置所有本地 .m2 存储库内容的一种方法是从 ~/.m2/repository 复制到 ${archiva-install-dir}/data/repository/${managed-repository-name}/

...

复制完成后,您可以强制对托管存储库进行 Archiva d/b 扫描。

于 2013-09-08T06:03:25.650 回答