This plugin has been created to enable conversion of Maven components documentation to Apache CMS, based on svnpubsub: see documentation.
Once new content can be published with the plugin, existing content needs to be imported.
A little shell script has been used to import a component with all its versions independently of any site generation phase or components' pom.xml:
# configuration ARTIFACT=maven-clean-plugin DIR=plugins/${ARTIFACT} VERSIONS="2.3 2.4 2.4.1 2.5" # documentation import procedure MVNTEST_CONTENT=https://svn.apache.org/repos/infra/websites/production/maventest/content # initialize ${DIR}-latest entry in svn svn -m "prepare ${ARTIFACT} documentation publication" mkdir ${MVNTEST_CONTENT}/${DIR}-latest # publish existing content for each version in ${VERSIONS} for VERSION in ${VERSIONS} do echo " ========== ${ARTIFACT} ${VERSION} ==========" mvn -e scm-publish:publish-scm \ -Dscmpublish.pubScmUrl=scm:svn:${MVNTEST_CONTENT}/${DIR}-latest \ -Dscmpublish.content=/www/maven.apache.org/${DIR}-${VERSION} \ -Dscmpublish.checkinComment="published documentation for ${ARTIFACT} version ${VERSION}" \ && \ svn cp ${MVNTEST_CONTENT}/${DIR}-latest ${MVNTEST_CONTENT}/${DIR}-${VERSION} -m "releasing ${ARTIFACT} ${VERSION} documentation" done