问题描述
我们已经从一个非常老的Artifactory(有6-7年历史)升级了.当时,由于篇幅所限,部分存储库不是由Artifactory处理的,而是通过Apache httpd服务器通过HTTP提供的.通过Apache httpd提供的工件已部署在SCP上.我们正在尝试将所有内容从SCP迁移到HTTPS.我们已经迁移了几乎所有东西.但是,我们现在剩下的Maven网站也部署在SCP上,并由Apache提供服务.
We have upgraded from a very old Artifactory (which was 6-7 years old). At the time, due to space limitations, part of the repositories were not handled by Artifactory, but were served over HTTP via the Apache httpd server. The artifacts which were served via Apache httpd, were deployed over SCP. We're trying to migrate everything from SCP to HTTPS. We've migrated pretty much everything. However, we are now left with the Maven sites which were also deployed over SCP and served by Apache.
我们希望将所有这些网站迁移到Artifactory.为此,我们是否需要单独的存储库?我找不到这在Artifactory中的工作方式.有人可以提供一个解释或链接吗?
We would like to migrate all these sites over to Artifactory. Do we need a separate kind of repository for this? I couldn't find how this works in Artifactory. Could somebody please provide an explanation, or a link?
非常感谢!
推荐答案
Artifactory支持直接从zip(或jar)文件中提供Maven网站(或任何静态HTML内容).该功能称为内容浏览",您可以在本地存储库"设置中允许它.允许后,您可以向下钻取存档以获取HTML,它将作为Artifactory中的常规文件提供.
Artifactory has a great support for serving Maven sites (or any static HTML content) directly out of zip (or jar) files. The feature is called "Content Browsing" and you can allow it in the Local Repository settings. Once allowed, you can drill down to the archive to reach an HTML, and it will be served as it was a regular file in Artifactory.
这是一个javadocs jar,用作已部署的html站点. 输入工件时,请注意!
.
This is a javadocs jar served as a deployed html site. Note the !
when you are entering the artifact.
[15年8月11日更新:由于一个错误,目前仅在Pro版本中有效.我们正在努力将该功能恢复到其所属的OSS版本.]
[Update 08/11/15: Due to a bug, currently this works only in the Pro version. We are working to bring this functionality back to OSS version, where it belongs.]
这篇关于如何将Maven网站部署到Artifactory?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!