如何将 Maven 站点部署到 Artifactory? [英] How to deploy Maven sites to Artifactory?

查看:34
本文介绍了如何将 Maven 站点部署到 Artifactory?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是从一个非常古老的 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.

这是一个例子:http://repo.jfrog.org/artifactory/libs-releases-local/org/artifactory/artifactory-papi/%5BRELEASE%5D/artifactory-papi-%5BRELEASE%5D-javadoc.jar!/index.html

这是一个 javadocs jar,用作部署的 html 站点.输入工件时请注意 !.

This is a javadocs jar served as a deployed html site. Note the ! when you are entering the artifact.

[2015 年 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.]

我与 JFrog 合作,该公司是 Bintray [artifactory],参见我的个人资料 了解详情和链接.

I am with JFrog, the company behind Bintray and [artifactory], see my profile for details and links.

这篇关于如何将 Maven 站点部署到 Artifactory?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆