How to deploy Maven sites to Artifactory?

醉酒当歌 提交于 2019-12-01 02:21:54

问题


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.

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?

Many thanks in advance!


回答1:


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.

Here's an example: http://repo.jfrog.org/artifactory/libs-releases-local/org/artifactory/artifactory-papi/%5BRELEASE%5D/artifactory-papi-%5BRELEASE%5D-javadoc.jar!/index.html

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

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


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



来源:https://stackoverflow.com/questions/31880054/how-to-deploy-maven-sites-to-artifactory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!