How to deploy Maven sites to Artifactory?

前端 未结 1 501
谎友^
谎友^ 2021-01-12 07:46

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

相关标签:
1条回答
  • 2021-01-12 08:31

    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.

    0 讨论(0)
提交回复
热议问题