简体   繁体   English

将本地 Maven 存储库上传到存档

[英]Uploading local maven repository to archiva

I am setting up a local repository using Apache Archiva.我正在使用 Apache Archiva 设置本地存储库。 After setting up now I need to copy the libraries that got downloaded into my local maven repository into archiva.现在设置后,我需要将下载到本地 maven 存储库中的库复制到存档中。 Currently I am manually copying it but it is very tedious process and I am planning to automate it using some scripts.目前我正在手动复制它,但这是一个非常乏味的过程,我计划使用一些脚本使其自动化。 Is there any better approach to do this?有没有更好的方法来做到这一点?

I'm trying to write a plugin for this here which is able to copy jars and poms for all dependencies in all Configuration s (including transitive dependencies).我试图写这样的插件,这里是能够复制罐子和劲歌在所有所有的依赖Configuration S(包括传递依赖)。 You might be interested in this code您可能对此代码感兴趣

Note: I've got a failing test here because I can't currently get the parent pom xml via the Gradle API's.注意:我在这里有一个失败的测试因为我目前无法通过 Gradle API 获取父 pom xml。 I raised a feature request in Gradle here我在这里在 Gradle 中提出了一个功能请求

There's a suggestion on the issue to use the IvyPot plugin ... I haven't tried this myself but might be worth a shot.关于使用IvyPot 插件的问题有一个建议......我自己没有尝试过,但可能值得一试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM