diff --git a/archiva-docs/README b/archiva-docs/README deleted file mode 100644 index 714b3aadf..000000000 --- a/archiva-docs/README +++ /dev/null @@ -1 +0,0 @@ -to deploy site: sh ./deploySite.sh diff --git a/archiva-docs/README.adoc b/archiva-docs/README.adoc new file mode 100644 index 000000000..6a42a2f51 --- /dev/null +++ b/archiva-docs/README.adoc @@ -0,0 +1,81 @@ +Archiva Documentation - User Documentation +=========================================== +:toc: + + +== How to build and publish the pages for the archiva web content + +This module and the children contain web content and project reports that can be published to the +archiva web site: https://archiva.apache.org + +The web content parts of this module and submodules are published to the path + + /docs/${project.version}/ + +=== Use the script + +There is a shell script +deploySite.sh+ which you can run to generate the site check and publish to +the remote repository. It works only on Linux, on other platforms you have to go the next section. + +The script is interactive, it asks you to confirm the publish after generation of the staging part. + +.Execute + + ./deploySite.sh + +All arguments are appended to the mvn calls. + +=== Run the mvn steps manually + +==== Building the pages + +You need enough free disk space to publish the web content. The archiva web site repository is big, +but the maven build will only checkout the necessary directories for this build (sparse checkout). + +For all the commands you have to change to this archiva-modules directory: + + cd archiva/archiva-modules + +.The following creates the site to the staging folder + + mvn clean site site:stage + +The result can be checked in + + archiva-modules/target/staging/ref/${project.version} + +with your browser. + +If you would like the use a local checkout of the archiva-web-content.git repository and not push directly +to the remote repository, you may add this parameter: + + -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git + +where +${path-to-your-local-archiva}+ is the path where a bare clone of the archiva-web-content.git is stored. + +NOTE: You cannot use +mvn site:run+ because this will place the submodules into the same folder and + overwrite each other. + +==== Publish the pages + +.This command publishes to the git repository + + mvn scm-publish:publish-scm + +After publishing to the git repository the gitpubsub mechanism is transferring it to the HTTP server. + +If you would like the use a local checkout of the archiva-web-content.git repository and not push directly +to the remote repository, you may add this parameter: + + -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git + + +=== Some notes about the build process + +A sparse checkout of the git repository will be created in + + .site-content + +but only, if the directory +.site-content/.git+ does not exist. + + diff --git a/archiva-docs/checkoutSite.sh b/archiva-docs/checkoutSite.sh new file mode 100755 index 000000000..5e582bd1e --- /dev/null +++ b/archiva-docs/checkoutSite.sh @@ -0,0 +1,135 @@ +#!/bin/bash +# +# 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. +# +# Author: Martin Stockhammer +# Date: 2018-11-03 +# +# This script runs a sparse git clone of a remote repository and +# initializes the git configuration. +# +# It is mainly used for site content creation, because the main archiva-web-content repository +# is rather large and we don't want to checkout the complete data. +# + +SITE_DIR=".site-content" +GIT_REMOTE="" + +GIT_USER=$(git config user.name) +GIT_EMAIL=$(git config user.email) + +GIT_PATTERN_FILE="git-sparse-checkout-pattern" +GIT_PATTERN_DEST=".git/info/sparse-checkout" + +MY_PWD=$(pwd) + +CLONE=1 +FORCE=1 +MODULE_DIR="${MY_PWD}" +PATTERN="" +while [ ! -z "$1" ]; do + case "$1" in + -f) + FORCE=0 + shift + ;; + -d) + shift + SITE_DIR="$1" + shift + ;; + -p) + shift + if [ -z "${PATTERN}" ]; then + PATTERN="${1}" + else + PATTERN="${PATTERN}\n${1}" + fi + shift + ;; + -m) + shift + MODULE_DIR="$1" + shift + ;; + *) + GIT_REMOTE="$1" + shift + ;; + esac +done + +print_usage() { + echo "checkoutRepo [-m MODULE_DIR] [-d SITE_DIR] [-f] GIT_URL" + echo " -m: The module directory where the pattern file can be found and the site dir will be created." + echo " -d SITE_DIR: Use the given directory for checkout" + echo " -f: Force clone, even if directory exists" +} + +if [ ! -f "${MODULE_DIR}/pom.xml" ]; then + echo "Looks like the working directory is not a valid dir. No pom.xml found." + exit 1 +fi + +cd "${MODULE_DIR}" || { echo "Could not change to module directory ${MODULE_DIR}"; exit 1; } + +if [ -z "$GIT_REMOTE" ]; then + print_usage + exit 1 +fi + +if [ "${GIT_REMOTE:0:8}" == "scm:git:" ]; then + GIT_REMOTE="${GIT_REMOTE:8}" +fi + + +if [ -d "${SITE_DIR}" ]; then + if [ ! -d "${SITE_DIR}/.git" ]; then + echo "Directory ${SITE_DIR} exist already, but is not a git clone. Aborting." + exit 1 + elif [ "$FORCE" -eq 0 ]; then + CLONE=0 + fi +else + CLONE=0 +fi + +if [ $CLONE -eq 0 ]; then + git clone "${GIT_REMOTE}" "${SITE_DIR}" --no-checkout + if [ $? -ne 0 ]; then + echo "Git clone failed" + exit 1 + fi +fi + +cd "${SITE_DIR}" || { echo "Could not change to site dir ${SITE_DIR}"; exit 1; } + +git config core.sparsecheckout true +git config user.name "${GIT_USER}" +git config user.email "${GIT_EMAIL}" + +if [ ! -z "${PATTERN}" ]; then + echo -e "${PATTERN}" >"${GIT_PATTERN_DEST}" +elif [ -f "../${GIT_PATTERN_FILE}" ]; then + cp "../${GIT_PATTERN_FILE}" "${GIT_PATTERN_DEST}" +fi + +git checkout -- + +cd "${MY_PWD}" + diff --git a/archiva-docs/deploySite.sh b/archiva-docs/deploySite.sh new file mode 100755 index 000000000..13e822be5 --- /dev/null +++ b/archiva-docs/deploySite.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# +# 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. +# +# Author: Martin Stockhammer +# Date: 2018-11-15 +# +# Publishes the site content and generated reports to the web content repository. +# It stops after the staging and let you check the content before pushing to the repository +# + +THIS_DIR=$(dirname $0) +THIS_DIR=$(readlink -f ${THIS_DIR}) +CONTENT_DIR=".site-content" + +PROJECT_VERSION=$(grep '' pom.xml |head -1 | sed -e 's/.*\(.*\)<\/version>.*/\1/g') +SUB_DIR="docs/${PROJECT_VERSION}" + +if [ -d "${CONTENT_DIR}/.git" ]; then + git -C "${CONTENT_DIR}" fetch origin + git -C "${CONTENT_DIR}" reset --hard origin/master +fi + +echo ">>>> Creating site and reports <<<<" +mvn clean site site:stage "$@" + +echo "*****************************************" +echo ">>>> Finished the site stage process <<<<" +echo "> You can check the content in the folder target/staging or by opening the following url" +echo "> file://${THIS_DIR}/target/staging/${SUB_DIR}/index.html" +echo "> " +echo "> If everything is fine enter yes. After that the publish process will be started." +echo -n "Do you want to publish (yes/no)? " +read ANSWER + +if [ "${ANSWER}" == "yes" -o "${ANSWER}" == "YES" ]; then + echo "> Starting publish process" + mvn scm-publish:publish-scm "$@" +else + echo "> Aborting now" + echo "> Running git reset in .site-content directory" + git -C "${CONTENT_DIR}" fetch origin + git -C "${CONTENT_DIR}" reset --hard origin/master + echo ">>>> Finished <<<<" +fi + diff --git a/archiva-docs/git-sparse-checkout-pattern b/archiva-docs/git-sparse-checkout-pattern new file mode 100644 index 000000000..2f8826912 --- /dev/null +++ b/archiva-docs/git-sparse-checkout-pattern @@ -0,0 +1 @@ +/docs diff --git a/archiva-docs/pom.xml b/archiva-docs/pom.xml index 59d935ba2..5aded0fb2 100644 --- a/archiva-docs/pom.xml +++ b/archiva-docs/pom.xml @@ -27,13 +27,15 @@ archiva-docs pom Archiva :: Documentation - http://archiva.apache.org/docs/${project.version}/ + https://archiva.apache.org/docs/${project.version}/ ${user.home}/archiva-sites/archiva-docs-${project.version}/ - ${basedir}/.site-content yyyy-MM-dd ${maven.build.timestamp} + + scm:git:https://gitbox.apache.org/repos/asf/archiva-web-content.git + ${basedir}/.site-content @@ -55,10 +57,25 @@ + org.apache.maven.plugins maven-scm-publish-plugin - Apache Archiva Versionned docs for ${project.version} + Apache Archiva Versioned docs for ${project.version} + true + ${project.build.directory}/staging + true + @@ -75,6 +92,7 @@ maven-site-plugin true + ${project.build.directory}/staging/docs/${project.version}/ @@ -143,8 +161,8 @@ - license - project-team + licenses + team @@ -155,8 +173,53 @@ apache.website - scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/docs/${project.version} + ${siteRepositoryUrl} + + + + site-checkout + + + ${scmPubCheckoutDirectory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + false + + + prepare-checkout + pre-site + + exec + + + checkoutSite.sh + ${project.basedir} + + -d + ${scmPubCheckoutDirectory} + ${siteRepositoryUrl} + + + + + + + + + + + diff --git a/archiva-docs/src/site/resources/images/Archiva-Site-Publish.odg b/archiva-docs/src/site/resources/images/Archiva-Site-Publish.odg new file mode 100644 index 000000000..1e922a14b Binary files /dev/null and b/archiva-docs/src/site/resources/images/Archiva-Site-Publish.odg differ diff --git a/archiva-docs/src/site/resources/images/Archiva-Site-Publish.png b/archiva-docs/src/site/resources/images/Archiva-Site-Publish.png new file mode 100644 index 000000000..0a6dd1511 Binary files /dev/null and b/archiva-docs/src/site/resources/images/Archiva-Site-Publish.png differ diff --git a/archiva-docs/src/site/site.xml b/archiva-docs/src/site/site.xml index bc3310ddb..18cc67806 100644 --- a/archiva-docs/src/site/site.xml +++ b/archiva-docs/src/site/site.xml @@ -48,8 +48,13 @@ 6670 - stats + thin-badge + + apache/archiva + right + black + @@ -58,8 +63,11 @@ + - + + + diff --git a/archiva-modules/README.adoc b/archiva-modules/README.adoc new file mode 100644 index 000000000..fc24ffe44 --- /dev/null +++ b/archiva-modules/README.adoc @@ -0,0 +1,81 @@ +Archiva Modules - Collection of Archiva Subprojects +=================================================== +:toc: + + +== How to build and publish the pages for the archiva web content + +This module and the children contain web content and project reports that can be published to the +archiva web site: https://archiva.apache.org + +The web content parts of this module and submodules are published to the path + + /ref/${project.version}/ + +=== Use the script + +There is a shell script +deploySite.sh+ which you can run to generate the site check and publish to +the remote repository. It works only on Linux, on other platforms you have to go the next section. + +The script is interactive, it asks you to confirm the publish after generation of the staging part. + +.Execute + + ./deploySite.sh + +All arguments are appended to the mvn calls. + +=== Run the mvn steps manually + +==== Building the pages + +You need enough free disk space to publish the web content. The archiva web site repository is big, +but the maven build will only checkout the necessary directories for this build (sparse checkout). + +For all the commands you have to change to this archiva-modules directory: + + cd archiva/archiva-modules + +.The following creates the site to the staging folder + + mvn clean site site:stage + +The result can be checked in + + archiva-modules/target/staging/ref/${project.version} + +with your browser. + +If you would like the use a local checkout of the archiva-web-content.git repository and not push directly +to the remote repository, you may add this parameter: + + -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git + +where +${path-to-your-local-archiva}+ is the path where a bare clone of the archiva-web-content.git is stored. + +NOTE: You cannot use +mvn site:run+ because this will place the submodules into the same folder and + overwrite each other. + +==== Publish the pages + +.This command publishes to the git repository + + mvn scm-publish:publish-scm + +After publishing to the git repository the gitpubsub mechanism is transferring it to the HTTP server. + +If you would like the use a local checkout of the archiva-web-content.git repository and not push directly +to the remote repository, you may add this parameter: + + -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git + + +=== Some notes about the build process + +A sparse checkout of the git repository will be created in + + .site-content + +but only, if the directory +.site-content/.git+ does not exist. + + diff --git a/archiva-modules/archiva-base/archiva-checksum/pom.xml b/archiva-modules/archiva-base/archiva-checksum/pom.xml index 8f5ab0b0b..95a20f4b5 100644 --- a/archiva-modules/archiva-base/archiva-checksum/pom.xml +++ b/archiva-modules/archiva-base/archiva-checksum/pom.xml @@ -28,6 +28,10 @@ bundle Archiva Base :: Checksum + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-common/pom.xml b/archiva-modules/archiva-base/archiva-common/pom.xml index a81e4c625..e0458d407 100644 --- a/archiva-modules/archiva-base/archiva-common/pom.xml +++ b/archiva-modules/archiva-base/archiva-common/pom.xml @@ -28,6 +28,12 @@ archiva-common bundle Archiva Base :: Common + + + ${project.parent.parent.basedir} + + + diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml index 8cee773b8..24e3e9b12 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/pom.xml @@ -28,6 +28,11 @@ archiva-lucene-consumers bundle Archiva Base :: Consumers :: Lucene + + + ${project.parent.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml index 099d2b83c..b56bf1b05 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/pom.xml @@ -28,6 +28,11 @@ archiva-metadata-consumer bundle Archiva Base :: Consumers :: Metadata + + + ${project.parent.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-signature-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-signature-consumers/pom.xml index 88ffcaf20..d1c715f65 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-signature-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-signature-consumers/pom.xml @@ -25,4 +25,10 @@ archiva-signature-consumers Archiva Base :: Consumers :: GPG Signature + + + + ${project.parent.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/pom.xml index f4cfc9053..9ac6aef0c 100644 --- a/archiva-modules/archiva-base/archiva-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/pom.xml @@ -26,6 +26,10 @@ 3.0.0-SNAPSHOT + + ${project.parent.parent.basedir} + + archiva-consumers Archiva Base :: Consumers pom diff --git a/archiva-modules/archiva-base/archiva-converter/pom.xml b/archiva-modules/archiva-base/archiva-converter/pom.xml index e952313b2..8186e6be5 100644 --- a/archiva-modules/archiva-base/archiva-converter/pom.xml +++ b/archiva-modules/archiva-base/archiva-converter/pom.xml @@ -28,6 +28,11 @@ archiva-converter bundle Archiva Base :: Repository Converter + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-filelock/pom.xml b/archiva-modules/archiva-base/archiva-filelock/pom.xml index 5829da297..c8891194f 100644 --- a/archiva-modules/archiva-base/archiva-filelock/pom.xml +++ b/archiva-modules/archiva-base/archiva-filelock/pom.xml @@ -28,6 +28,11 @@ archiva-filelock bundle Archiva Base :: FileLock + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-maven2-indexer/pom.xml b/archiva-modules/archiva-base/archiva-maven2-indexer/pom.xml index b68dacb8e..1cc6b0f2e 100644 --- a/archiva-modules/archiva-base/archiva-maven2-indexer/pom.xml +++ b/archiva-modules/archiva-base/archiva-maven2-indexer/pom.xml @@ -28,6 +28,11 @@ archiva-maven2-indexer bundle Archiva Base :: Maven2 Indexer + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-maven2-metadata/pom.xml b/archiva-modules/archiva-base/archiva-maven2-metadata/pom.xml index 84edf97a6..fbf7f1efb 100644 --- a/archiva-modules/archiva-base/archiva-maven2-metadata/pom.xml +++ b/archiva-modules/archiva-base/archiva-maven2-metadata/pom.xml @@ -31,6 +31,10 @@ Archiva Base :: Maven 2 Metadata + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-maven2-model/pom.xml b/archiva-modules/archiva-base/archiva-maven2-model/pom.xml index 0198eb4ca..2a3a01506 100644 --- a/archiva-modules/archiva-base/archiva-maven2-model/pom.xml +++ b/archiva-modules/archiva-base/archiva-maven2-model/pom.xml @@ -30,6 +30,11 @@ Archiva Base :: Maven 2 Model + + + ${project.parent.parent.basedir} + + com.fasterxml.jackson.core diff --git a/archiva-modules/archiva-base/archiva-mock/pom.xml b/archiva-modules/archiva-base/archiva-mock/pom.xml index 229eab4ff..8af55e217 100644 --- a/archiva-modules/archiva-base/archiva-mock/pom.xml +++ b/archiva-modules/archiva-base/archiva-mock/pom.xml @@ -28,6 +28,11 @@ archiva-mock jar Archiva Base :: Mocks + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-model/pom.xml b/archiva-modules/archiva-base/archiva-model/pom.xml index 071268cd1..49bb61dad 100755 --- a/archiva-modules/archiva-base/archiva-model/pom.xml +++ b/archiva-modules/archiva-base/archiva-model/pom.xml @@ -28,6 +28,11 @@ archiva-model bundle Archiva Base :: Model + + + ${project.parent.parent.basedir} + + commons-lang diff --git a/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml b/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml index 4eb1eacf5..eaee92067 100644 --- a/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml +++ b/archiva-modules/archiva-base/archiva-plexus-bridge/pom.xml @@ -28,6 +28,11 @@ archiva-plexus-bridge bundle Archiva Base :: Plexus Bridge + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-policies/pom.xml b/archiva-modules/archiva-base/archiva-policies/pom.xml index 7da80fca6..267c001ea 100644 --- a/archiva-modules/archiva-base/archiva-policies/pom.xml +++ b/archiva-modules/archiva-base/archiva-policies/pom.xml @@ -28,6 +28,11 @@ archiva-policies bundle Archiva Base :: Policies + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-proxy-api/pom.xml b/archiva-modules/archiva-base/archiva-proxy-api/pom.xml index f0d8ab086..15e70cb4f 100644 --- a/archiva-modules/archiva-base/archiva-proxy-api/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy-api/pom.xml @@ -28,6 +28,11 @@ bundle Archiva Base :: Proxy Api + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml index c22109ce7..733c599a3 100644 --- a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml @@ -27,6 +27,11 @@ archiva-proxy-common bundle Archiva Base :: Proxy Common + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-proxy/pom.xml b/archiva-modules/archiva-base/archiva-proxy/pom.xml index 23c0e6c3b..a27897df6 100644 --- a/archiva-modules/archiva-base/archiva-proxy/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy/pom.xml @@ -28,6 +28,11 @@ archiva-proxy bundle Archiva Base :: Proxy + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml index 33ee7b130..c912c182c 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/pom.xml @@ -28,6 +28,11 @@ archiva-repository-admin-api bundle Archiva Base :: Repository Admin Api + + + ${project.parent.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml index 5e99f6d9b..b752f2810 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml @@ -28,6 +28,11 @@ archiva-repository-admin-default bundle Archiva Base :: Repository Admin Default + + + ${project.parent.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-repository-admin/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/pom.xml index f7047344c..9d4865a62 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/pom.xml @@ -28,6 +28,11 @@ archiva-repository-admin Archiva Base :: Repository Admin pom + + + ${project.parent.parent.basedir} + + archiva-repository-admin-api archiva-repository-admin-default diff --git a/archiva-modules/archiva-base/archiva-repository-api/pom.xml b/archiva-modules/archiva-base/archiva-repository-api/pom.xml index 168426c13..6aa2d7676 100644 --- a/archiva-modules/archiva-base/archiva-repository-api/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-api/pom.xml @@ -28,6 +28,11 @@ archiva-repository-api bundle Archiva Base :: Repository API + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-repository-layer/pom.xml b/archiva-modules/archiva-base/archiva-repository-layer/pom.xml index e9d60bdfb..1af1ab065 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-layer/pom.xml @@ -28,6 +28,11 @@ archiva-repository-layer bundle Archiva Base :: Repository Interface Layer + + + ${project.parent.parent.basedir} + + commons-lang diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml b/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml index 7b76e7b74..7136844d7 100644 --- a/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-scanner/pom.xml @@ -28,6 +28,11 @@ archiva-repository-scanner bundle Archiva Base :: Repository Scanner + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-security-common/pom.xml b/archiva-modules/archiva-base/archiva-security-common/pom.xml index 00823b572..f9ebb9e9e 100644 --- a/archiva-modules/archiva-base/archiva-security-common/pom.xml +++ b/archiva-modules/archiva-base/archiva-security-common/pom.xml @@ -28,6 +28,11 @@ archiva-security-common bundle Archiva Base :: Security Common + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/archiva-base/archiva-test-utils/pom.xml b/archiva-modules/archiva-base/archiva-test-utils/pom.xml index bde3e5cc7..0c81176ff 100644 --- a/archiva-modules/archiva-base/archiva-test-utils/pom.xml +++ b/archiva-modules/archiva-base/archiva-test-utils/pom.xml @@ -27,6 +27,11 @@ 4.0.0 archiva-test-utils Archiva Base :: Test Utility + + + ${project.parent.parent.basedir} + + org.springframework diff --git a/archiva-modules/archiva-base/archiva-transaction/pom.xml b/archiva-modules/archiva-base/archiva-transaction/pom.xml index 4c3ba0231..a9eee95f9 100644 --- a/archiva-modules/archiva-base/archiva-transaction/pom.xml +++ b/archiva-modules/archiva-base/archiva-transaction/pom.xml @@ -28,6 +28,11 @@ bundle Archiva Base :: Transactions API for managing transaction. + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/archiva-xml-tools/pom.xml b/archiva-modules/archiva-base/archiva-xml-tools/pom.xml index 190beb869..f962aed3f 100644 --- a/archiva-modules/archiva-base/archiva-xml-tools/pom.xml +++ b/archiva-modules/archiva-base/archiva-xml-tools/pom.xml @@ -28,6 +28,11 @@ archiva-xml-tools bundle Archiva Base :: XML Tools + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-base/pom.xml b/archiva-modules/archiva-base/pom.xml index 54bd4aa8e..4b20b63d1 100644 --- a/archiva-modules/archiva-base/pom.xml +++ b/archiva-modules/archiva-base/pom.xml @@ -29,6 +29,9 @@ Archiva :: Base pom + + ${project.parent.basedir} + archiva-test-utils archiva-common diff --git a/archiva-modules/archiva-karaf/archiva-features/pom.xml b/archiva-modules/archiva-karaf/archiva-features/pom.xml index aadfb3677..3223f88d1 100644 --- a/archiva-modules/archiva-karaf/archiva-features/pom.xml +++ b/archiva-modules/archiva-karaf/archiva-features/pom.xml @@ -30,6 +30,8 @@ Archiva :: Karaf Features + ${project.parent.parent.basedir} + 1.0_5 5.0.2beta_1-SNAPSHOT 2.2_2 diff --git a/archiva-modules/archiva-karaf/pom.xml b/archiva-modules/archiva-karaf/pom.xml index ff50a8dd0..167e825f9 100644 --- a/archiva-modules/archiva-karaf/pom.xml +++ b/archiva-modules/archiva-karaf/pom.xml @@ -28,6 +28,11 @@ pom Archiva :: Karaf + + + ${project.parent.basedir} + + archiva-features diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml index 38b1af312..1dd81b4ec 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml @@ -27,6 +27,11 @@ archiva-scheduler-api bundle Archiva Scheduler :: API + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing-maven2/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing-maven2/pom.xml index b55a4213c..b919145c6 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing-maven2/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing-maven2/pom.xml @@ -29,6 +29,11 @@ 3.0.0-SNAPSHOT + + + ${project.parent.parent.basedir} + + archiva-scheduler-indexing-maven2 Archiva Scheduler :: Maven Indexing bundle diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml index 26825f43e..a56a57fc3 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml @@ -28,6 +28,10 @@ bundle Archiva Scheduler :: Indexing + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/pom.xml index 3ff1e109e..46bdc4749 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/pom.xml @@ -27,6 +27,11 @@ archiva-scheduler-repository-api bundle Archiva Scheduler :: Repository Scanning Api + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml index 0d1265526..4dbe2afb9 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml @@ -27,6 +27,11 @@ archiva-scheduler-repository bundle Archiva Scheduler :: Repository Scanning + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-scheduler/pom.xml b/archiva-modules/archiva-scheduler/pom.xml index 94f71773a..89d5e7929 100644 --- a/archiva-modules/archiva-scheduler/pom.xml +++ b/archiva-modules/archiva-scheduler/pom.xml @@ -28,6 +28,11 @@ archiva-scheduler pom Archiva :: Scheduler + + + ${project.parent.basedir} + + archiva-scheduler-api archiva-scheduler-indexing diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml index cdbae6562..ccbbd37a4 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/pom.xml @@ -31,6 +31,7 @@ ${project.build.outputDirectory}/rest-docs-archiva-rest-api + ${project.parent.parent.parent.basedir} diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml index 97270b0a5..3b515e479 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml @@ -37,6 +37,7 @@ --> jdbc:hsqldb:mem:redback-test org.hsqldb.jdbcDriver + ${project.parent.parent.parent.basedir} diff --git a/archiva-modules/archiva-web/archiva-rest/pom.xml b/archiva-modules/archiva-web/archiva-rest/pom.xml index f1f4a594f..3f096d961 100644 --- a/archiva-modules/archiva-web/archiva-rest/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/pom.xml @@ -17,7 +17,8 @@ ~ specific language governing permissions and limitations ~ under the License. --> - + 4.0.0 org.apache.archiva @@ -27,8 +28,28 @@ archiva-rest Archiva Web :: REST support pom + + + ${project.parent.parent.basedir} + + archiva-rest-api archiva-rest-services + + + + + + org.apache.maven.plugins + maven-site-plugin + + ${project.parent.parent.parent.basedir}/target/staging/refs/${project.version}/ + + + + + + diff --git a/archiva-modules/archiva-web/archiva-rss/pom.xml b/archiva-modules/archiva-web/archiva-rss/pom.xml index f1677129b..96046a4cf 100644 --- a/archiva-modules/archiva-web/archiva-rss/pom.xml +++ b/archiva-modules/archiva-web/archiva-rss/pom.xml @@ -28,6 +28,11 @@ archiva-rss bundle Archiva Web :: RSS + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-security/pom.xml b/archiva-modules/archiva-web/archiva-security/pom.xml index 673facf7e..e6fe99ff7 100644 --- a/archiva-modules/archiva-web/archiva-security/pom.xml +++ b/archiva-modules/archiva-web/archiva-security/pom.xml @@ -28,6 +28,10 @@ archiva-security bundle Archiva Web :: Security Configuration + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-test-mocks/pom.xml b/archiva-modules/archiva-web/archiva-test-mocks/pom.xml index b25a684a1..845cb19c6 100644 --- a/archiva-modules/archiva-web/archiva-test-mocks/pom.xml +++ b/archiva-modules/archiva-web/archiva-test-mocks/pom.xml @@ -28,6 +28,9 @@ archiva-test-mocks Archiva Web :: Tests Mocks + + ${project.parent.parent.basedir} + diff --git a/archiva-modules/archiva-web/archiva-web-common/pom.xml b/archiva-modules/archiva-web/archiva-web-common/pom.xml index a7765ec0d..3d70a4824 100644 --- a/archiva-modules/archiva-web/archiva-web-common/pom.xml +++ b/archiva-modules/archiva-web/archiva-web-common/pom.xml @@ -32,6 +32,7 @@ ${project.build.outputDirectory}/rest-docs-archiva-ui + ${project.parent.parent.basedir} diff --git a/archiva-modules/archiva-web/archiva-webapp-test/pom.xml b/archiva-modules/archiva-web/archiva-webapp-test/pom.xml index 913229f58..5b7d47fee 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-test/pom.xml @@ -38,6 +38,8 @@ 3.2.0 0.13.2 + ${project.parent.parent.basedir} + diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 73033120c..3fd8427a2 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -41,6 +41,7 @@ jcr localhost 9160 + ${project.parent.parent.basedir} diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 931b2f9f6..4252ef068 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -39,6 +39,8 @@ jdbc:hsqldb:mem:redback-test org.hsqldb.jdbcDriver -Xmx512m -Xms512m -client + ${project.parent.parent.basedir} + diff --git a/archiva-modules/archiva-web/pom.xml b/archiva-modules/archiva-web/pom.xml index 0df3ad6f2..c55c6f80f 100644 --- a/archiva-modules/archiva-web/pom.xml +++ b/archiva-modules/archiva-web/pom.xml @@ -26,6 +26,10 @@ Archiva :: Web pom + + ${project.parent.basedir} + + archiva-security archiva-webdav diff --git a/archiva-modules/checkoutSite.sh b/archiva-modules/checkoutSite.sh new file mode 100755 index 000000000..5e582bd1e --- /dev/null +++ b/archiva-modules/checkoutSite.sh @@ -0,0 +1,135 @@ +#!/bin/bash +# +# 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. +# +# Author: Martin Stockhammer +# Date: 2018-11-03 +# +# This script runs a sparse git clone of a remote repository and +# initializes the git configuration. +# +# It is mainly used for site content creation, because the main archiva-web-content repository +# is rather large and we don't want to checkout the complete data. +# + +SITE_DIR=".site-content" +GIT_REMOTE="" + +GIT_USER=$(git config user.name) +GIT_EMAIL=$(git config user.email) + +GIT_PATTERN_FILE="git-sparse-checkout-pattern" +GIT_PATTERN_DEST=".git/info/sparse-checkout" + +MY_PWD=$(pwd) + +CLONE=1 +FORCE=1 +MODULE_DIR="${MY_PWD}" +PATTERN="" +while [ ! -z "$1" ]; do + case "$1" in + -f) + FORCE=0 + shift + ;; + -d) + shift + SITE_DIR="$1" + shift + ;; + -p) + shift + if [ -z "${PATTERN}" ]; then + PATTERN="${1}" + else + PATTERN="${PATTERN}\n${1}" + fi + shift + ;; + -m) + shift + MODULE_DIR="$1" + shift + ;; + *) + GIT_REMOTE="$1" + shift + ;; + esac +done + +print_usage() { + echo "checkoutRepo [-m MODULE_DIR] [-d SITE_DIR] [-f] GIT_URL" + echo " -m: The module directory where the pattern file can be found and the site dir will be created." + echo " -d SITE_DIR: Use the given directory for checkout" + echo " -f: Force clone, even if directory exists" +} + +if [ ! -f "${MODULE_DIR}/pom.xml" ]; then + echo "Looks like the working directory is not a valid dir. No pom.xml found." + exit 1 +fi + +cd "${MODULE_DIR}" || { echo "Could not change to module directory ${MODULE_DIR}"; exit 1; } + +if [ -z "$GIT_REMOTE" ]; then + print_usage + exit 1 +fi + +if [ "${GIT_REMOTE:0:8}" == "scm:git:" ]; then + GIT_REMOTE="${GIT_REMOTE:8}" +fi + + +if [ -d "${SITE_DIR}" ]; then + if [ ! -d "${SITE_DIR}/.git" ]; then + echo "Directory ${SITE_DIR} exist already, but is not a git clone. Aborting." + exit 1 + elif [ "$FORCE" -eq 0 ]; then + CLONE=0 + fi +else + CLONE=0 +fi + +if [ $CLONE -eq 0 ]; then + git clone "${GIT_REMOTE}" "${SITE_DIR}" --no-checkout + if [ $? -ne 0 ]; then + echo "Git clone failed" + exit 1 + fi +fi + +cd "${SITE_DIR}" || { echo "Could not change to site dir ${SITE_DIR}"; exit 1; } + +git config core.sparsecheckout true +git config user.name "${GIT_USER}" +git config user.email "${GIT_EMAIL}" + +if [ ! -z "${PATTERN}" ]; then + echo -e "${PATTERN}" >"${GIT_PATTERN_DEST}" +elif [ -f "../${GIT_PATTERN_FILE}" ]; then + cp "../${GIT_PATTERN_FILE}" "${GIT_PATTERN_DEST}" +fi + +git checkout -- + +cd "${MY_PWD}" + diff --git a/archiva-modules/deploySite.sh b/archiva-modules/deploySite.sh old mode 100644 new mode 100755 index 44a13e0e9..564cdfe5e --- a/archiva-modules/deploySite.sh +++ b/archiva-modules/deploySite.sh @@ -1 +1,61 @@ -mvn clean site site:stage -Preporting scm-publish:publish-scm $@ +#!/bin/bash +# +# 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. +# +# Author: Martin Stockhammer +# Date: 2018-11-15 +# +# Publishes the site content and generated reports to the web content repository. +# It stops after the staging and let you check the content before pushing to the repository +# + +THIS_DIR=$(dirname $0) +THIS_DIR=$(readlink -f ${THIS_DIR}) +CONTENT_DIR=".site-content" + +PROJECT_VERSION=$(grep '' pom.xml |head -1 | sed -e 's/.*\(.*\)<\/version>.*/\1/g') +SUB_DIR="ref/${PROJECT_VERSION}" + +if [ -d "${CONTENT_DIR}/.git" ]; then + git -C "${CONTENT_DIR}" fetch origin + git -C "${CONTENT_DIR}" reset --hard origin/master +fi + +echo ">>>> Creating site and reports <<<<" +mvn clean site site:stage -Preporting "$@" + +echo "*****************************************" +echo ">>>> Finished the site stage process <<<<" +echo "> You can check the content in the folder target/staging or by opening the following url" +echo "> file://${THIS_DIR}/target/staging/${SUB_DIR}/index.html" +echo "> " +echo "> If everything is fine enter yes. After that the publish process will be started." +echo -n "Do you want to publish (yes/no)? " +read ANSWER + +if [ "${ANSWER}" == "yes" -o "${ANSWER}" == "YES" ]; then + echo "> Starting publish process" + mvn scm-publish:publish-scm "$@" +else + echo "> Aborting now" + echo "> Running git reset in .site-content directory" + git -C "${CONTENT_DIR}" fetch origin + git -C "${CONTENT_DIR}" reset --hard origin/master + echo ">>>> Finished <<<<" +fi + diff --git a/archiva-modules/git-sparse-checkout-pattern b/archiva-modules/git-sparse-checkout-pattern new file mode 100644 index 000000000..db843b211 --- /dev/null +++ b/archiva-modules/git-sparse-checkout-pattern @@ -0,0 +1 @@ +/ref \ No newline at end of file diff --git a/archiva-modules/metadata/metadata-model-maven2/pom.xml b/archiva-modules/metadata/metadata-model-maven2/pom.xml index ad10ffbcb..1bb4a8a1a 100644 --- a/archiva-modules/metadata/metadata-model-maven2/pom.xml +++ b/archiva-modules/metadata/metadata-model-maven2/pom.xml @@ -28,6 +28,10 @@ bundle Archiva Metadata :: Maven 2 Model + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/metadata/metadata-model/pom.xml b/archiva-modules/metadata/metadata-model/pom.xml index 3ddf05645..399198ecd 100644 --- a/archiva-modules/metadata/metadata-model/pom.xml +++ b/archiva-modules/metadata/metadata-model/pom.xml @@ -28,6 +28,10 @@ bundle Archiva Metadata :: Model + + ${project.parent.parent.basedir} + + org.apache.geronimo.specs diff --git a/archiva-modules/metadata/metadata-repository-api/pom.xml b/archiva-modules/metadata/metadata-repository-api/pom.xml index 5cc507898..290f6f67b 100644 --- a/archiva-modules/metadata/metadata-repository-api/pom.xml +++ b/archiva-modules/metadata/metadata-repository-api/pom.xml @@ -27,6 +27,11 @@ metadata-repository-api bundle Archiva Metadata :: Repository API + + + ${project.parent.parent.basedir} + + org.springframework diff --git a/archiva-modules/metadata/metadata-statistics-api/pom.xml b/archiva-modules/metadata/metadata-statistics-api/pom.xml index 251f2a729..61bbfbf23 100644 --- a/archiva-modules/metadata/metadata-statistics-api/pom.xml +++ b/archiva-modules/metadata/metadata-statistics-api/pom.xml @@ -27,6 +27,11 @@ metadata-statistics-api bundle Archiva Metadata :: Statistics API + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/metadata/pom.xml b/archiva-modules/metadata/pom.xml index 1c1ba6978..b86b8751a 100644 --- a/archiva-modules/metadata/pom.xml +++ b/archiva-modules/metadata/pom.xml @@ -27,6 +27,11 @@ metadata Archiva :: Metadata pom + + + ${project.parent.basedir} + + metadata-model metadata-repository-api diff --git a/archiva-modules/metadata/test-repository/pom.xml b/archiva-modules/metadata/test-repository/pom.xml index 7313a1c8a..1ebe3003a 100644 --- a/archiva-modules/metadata/test-repository/pom.xml +++ b/archiva-modules/metadata/test-repository/pom.xml @@ -26,6 +26,11 @@ test-repository Archiva Metadata :: Repository for Testing + + + ${project.parent.parent.basedir} + + diff --git a/archiva-modules/plugins/audit/pom.xml b/archiva-modules/plugins/audit/pom.xml index cf37c0d6f..be0268318 100644 --- a/archiva-modules/plugins/audit/pom.xml +++ b/archiva-modules/plugins/audit/pom.xml @@ -27,6 +27,11 @@ audit bundle Archiva Core Plugins :: Audit Logging + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/generic-metadata-support/pom.xml b/archiva-modules/plugins/generic-metadata-support/pom.xml index 64120b412..68bd5cd17 100644 --- a/archiva-modules/plugins/generic-metadata-support/pom.xml +++ b/archiva-modules/plugins/generic-metadata-support/pom.xml @@ -27,6 +27,11 @@ generic-metadata-support bundle Archiva Core Plugins :: Generic Metadata Support + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/maven2-repository/pom.xml b/archiva-modules/plugins/maven2-repository/pom.xml index e271c2013..9c6a4c28f 100644 --- a/archiva-modules/plugins/maven2-repository/pom.xml +++ b/archiva-modules/plugins/maven2-repository/pom.xml @@ -27,6 +27,11 @@ maven2-repository bundle Archiva Core Plugins :: Maven 2.x Repository Support + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/metadata-store-cassandra/pom.xml b/archiva-modules/plugins/metadata-store-cassandra/pom.xml index e1650b127..3f2cafe65 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/pom.xml +++ b/archiva-modules/plugins/metadata-store-cassandra/pom.xml @@ -30,9 +30,8 @@ Archiva Core Plugins :: Cassandra Storage for Metadata - + ${project.parent.parent.basedir} 3.11.2 - diff --git a/archiva-modules/plugins/metadata-store-file/pom.xml b/archiva-modules/plugins/metadata-store-file/pom.xml index 2fcf7eb41..4e85c63ff 100644 --- a/archiva-modules/plugins/metadata-store-file/pom.xml +++ b/archiva-modules/plugins/metadata-store-file/pom.xml @@ -27,6 +27,11 @@ metadata-store-file bundle Archiva Core Plugins :: File System Backed Metadata Repository + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml index a7df77f7b..114bcb7dc 100644 --- a/archiva-modules/plugins/metadata-store-jcr/pom.xml +++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml @@ -28,6 +28,11 @@ metadata-store-jcr bundle Archiva Core Plugins :: JCR Storage for Metadata + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/pom.xml b/archiva-modules/plugins/pom.xml index 039d7e14c..e8242b392 100644 --- a/archiva-modules/plugins/pom.xml +++ b/archiva-modules/plugins/pom.xml @@ -27,6 +27,11 @@ plugins Archiva :: Core Plugins pom + + + ${project.parent.basedir} + + metadata-store-file maven2-repository diff --git a/archiva-modules/plugins/problem-reports/pom.xml b/archiva-modules/plugins/problem-reports/pom.xml index 69c7f3c1c..ad15973c0 100644 --- a/archiva-modules/plugins/problem-reports/pom.xml +++ b/archiva-modules/plugins/problem-reports/pom.xml @@ -27,6 +27,11 @@ problem-reports bundle Archiva Core Plugins :: Problem Reporting Plugin + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/repository-statistics/pom.xml b/archiva-modules/plugins/repository-statistics/pom.xml index 38f83fdc9..4fe10de2e 100644 --- a/archiva-modules/plugins/repository-statistics/pom.xml +++ b/archiva-modules/plugins/repository-statistics/pom.xml @@ -27,6 +27,11 @@ repository-statistics bundle Archiva Core Plugins :: Repository Statistics + + + ${project.parent.parent.basedir} + + org.apache.archiva diff --git a/archiva-modules/plugins/stage-repository-merge/pom.xml b/archiva-modules/plugins/stage-repository-merge/pom.xml index d8719f8e6..d77142822 100644 --- a/archiva-modules/plugins/stage-repository-merge/pom.xml +++ b/archiva-modules/plugins/stage-repository-merge/pom.xml @@ -29,6 +29,10 @@ bundle Archiva Core Plugins :: Stage Repository Merge + + ${project.parent.parent.basedir} + + junit diff --git a/archiva-modules/pom.xml b/archiva-modules/pom.xml index ccbc0594d..e06a90eff 100644 --- a/archiva-modules/pom.xml +++ b/archiva-modules/pom.xml @@ -17,7 +17,8 @@ ~ specific language governing permissions and limitations ~ under the License. --> - + archiva org.apache.archiva @@ -27,16 +28,18 @@ archiva-modules pom Archiva :: Modules - http://archiva.apache.org/ref/${project.version} + https://archiva.apache.org/ref/${project.version} - ${user.home}/archiva-sites/archiva-ref-${project.version}/ - file://${siteFilePath} ${basedir}/.site-content + + scm:git:https://gitbox.apache.org/repos/asf/archiva-web-content.git + ${project.basedir} archiva-base + archiva-scheduler archiva-web archiva-karaf @@ -49,29 +52,99 @@ org.apache.maven.plugins - maven-scm-publish-plugin + maven-site-plugin - scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/ref/${project.version} - Apache Archiva Versionned ref for ${project.version} - ${project.build.directory}/staging + true + + + org.apache.maven.plugins + maven-scm-publish-plugin + false + + Apache Archiva versioned module docs for ${project.version} + true + ${project.build.directory}/staging + true + + + + + scm-publish + site-deploy + + publish-scm + + + + + + + org.apache.maven.plugins + maven-site-plugin + + true + ${site.staging.base}/target/staging/ref/${project.version}/ + + + + attach-descriptor + + attach-descriptor + + + + + + + + - + + org.apache.maven.plugins maven-jxr-plugin ${jxrVersion} - - true - + + + aggregate + false + + aggregate + + + + org.apache.maven.plugins maven-checkstyle-plugin @@ -89,6 +162,13 @@ org.apache.maven.plugins maven-project-info-reports-plugin ${maven-project-info-reports-plugin.version} + + + + index + + + @@ -100,9 +180,9 @@ true 1.8 1.8 + none - http://java.sun.com/j2se/1.5.0/docs/api - http://docs.oracle.com/javase/8/docs/api + https://docs.oracle.com/javase/8/docs/api http://commons.apache.org/collections/apidocs-COLLECTIONS_3_0/ http://commons.apache.org/dbcp/apidocs/ http://commons.apache.org/fileupload/apidocs/ @@ -114,6 +194,7 @@ http://jakarta.apache.org/regexp/apidocs/ http://velocity.apache.org/engine/releases/velocity-1.5/apidocs/ + true private @@ -134,6 +215,8 @@ + + @@ -158,14 +241,56 @@ - + + + site-checkout + + + ${scmPubCheckoutDirectory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + false + + + prepare-checkout + pre-site + + exec + + + checkoutSite.sh + ${project.basedir} + + -d + ${scmPubCheckoutDirectory} + ${siteRepositoryUrl} + + + + + + + + + apache.website - ${siteUrlDeployment} + ${siteRepositoryUrl} + diff --git a/archiva-modules/src/site/site.xml b/archiva-modules/src/site/site.xml index 2830c81d7..1963e93ca 100644 --- a/archiva-modules/src/site/site.xml +++ b/archiva-modules/src/site/site.xml @@ -35,16 +35,25 @@ 6670 - stats + thin-badge + + apache/archiva + right + black + + + + + - + + + diff --git a/pom.xml b/pom.xml index 3223f5037..daefd0fe2 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ pom Apache Archiva - http://archiva.apache.org + https://archiva.apache.org archiva-cli