blob: 3d44d9bcd97ed8f3872553899bca984f3aa0a26c [file] [log] [blame]
------
Importing maven.apache.org Content to Svn
------
Hervé Boutemy
------
2012-08-19
------
~~ Licensed to the Apache Software Foundation (ASF) under one
~~ or more contributor license agreements. See the NOTICE file
~~ distributed with this work for additional information
~~ regarding copyright ownership. The ASF licenses this file
~~ to you under the Apache License, Version 2.0 (the
~~ "License"); you may not use this file except in compliance
~~ with the License. You may obtain a copy of the License at
~~
~~ http://www.apache.org/licenses/LICENSE-2.0
~~
~~ Unless required by applicable law or agreed to in writing,
~~ software distributed under the License is distributed on an
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~~ KIND, either express or implied. See the License for the
~~ specific language governing permissions and limitations
~~ under the License.
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/doxia/references/apt-format.html
Importing maven.apache.org Content to Svn
This plugin has been created to enable conversion of Maven components documentation
to Apache CMS, based on svnpubsub: see {{{http://www.apache.org/dev/cms.html}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
ORIG_PATH=/www/maven.apache.org
DEST_SVN_BASE=https://svn.apache.org/repos/infra/websites/production/maven/content
ARTIFACT=maven-clean-plugin
DIR=plugins/${ARTIFACT}
VERSIONS="2.3 2.4 2.4.1 2.5"
# initialize ${DIR}-LATEST entry in svn
svn -m "prepare ${ARTIFACT} documentation publication" mkdir ${DEST_SVN_BASE}/${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.content=${ORIG_PATH}/${DIR}-${VERSION} \
-Dscmpublish.pubScmUrl=scm:svn:${DEST_SVN_BASE}/${DIR}-LATEST \
-Dscmpublish.checkinComment="published documentation for ${ARTIFACT} version ${VERSION}" \
&& \
svn cp ${DEST_SVN_BASE}/${DIR}-LATEST ${DEST_SVN_BASE}/${DIR}-${VERSION} -m "releasing ${ARTIFACT} ${VERSION} documentation"
done
+--------