简体   繁体   English

在Apache Archiva中上载Maven的工件

[英]uploading artifacts for maven in apache archiva

I am using Spring roo.But i found that roo uses internet to download the maven plugins at first time. 我正在使用Spring Roo。但是我发现Roo第一次使用Internet下载Maven插件。 To avoid it am trying to use Apache archiva Stand alone.But i don know how can i configure it for maven.Can you help me to solve this 为了避免它试图单独使用Apache archiva Stand。但是我不知道如何为Maven配置它。你能帮我解决这个问题吗

Apache Archiva can serve the artifacts you need for Spring Roo, but if you do not have an internet connection from the Apache Archiva server then you have to upload the artifacts yourself. Apache Archiva可以提供Spring Roo所需的工件,但是如果您没有来自Apache Archiva服务器的互联网连接,则必须自己上传工件。

But if you can get the server connected to the internet once, then you can let the archiva server download the artifacts for you, because it can act as a proxy and then caches the artifacts. 但是,如果您可以使服务器一次连接到Internet,则可以让archiva服务器为您下载工件,因为它可以充当代理,然后缓存这些工件。 Once connected to internet, let Spring Roo retrieve the artifacts from the Archiva server. 连接到Internet后,让Spring Roo从Archiva服务器检索工件。 When you have done this one time, archiva should have cached the artifacts. 一次完成此操作后,archiva应该已经缓存了工件。 Then you could disconnect it from the internet. 然后,您可以将其与互联网断开连接。

If you want to know how you can configure maven to use the Apache Archiva repository, look at: 如果您想知道如何配置maven以使用Apache Archiva存储库,请查看:

http://archiva.apache.org/docs/1.0.1/userguide/using-repository.html http://archiva.apache.org/docs/1.0.1/userguide/using-repository.html

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

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