archiva/archiva-modules
Martin Stockhammer 3a08931d19 Removing plexus dependency 2019-11-15 20:05:48 +01:00
..
archiva-base Adding unzip utility method 2019-10-14 21:42:59 +02:00
archiva-maven Switching to zip file for index test 2019-10-14 21:43:23 +02:00
archiva-scheduler Renaming packages to make them distinct over modules 2019-10-04 13:04:18 +02:00
archiva-web Removing plexus dependency 2019-11-15 20:05:48 +01:00
metadata Changing package for audit events 2019-10-03 18:36:54 +02:00
plugins Changing jboss-logging version (new version uses apache license) 2019-10-05 16:15:02 +02:00
src/site Adding site deploy script for archiva-docs. Using https urls. 2018-11-22 20:32:24 +01:00
.gitignore ignore .site-content 2013-05-03 23:36:29 +00:00
README.adoc Adding script for site publish and some documentation 2018-11-15 22:11:20 +01:00
checkoutSite.sh Adding archiva-modules site build changes for git migration 2018-11-04 13:34:47 +01:00
deploySite.sh Adding script for site publish and some documentation 2018-11-15 22:11:20 +01:00
git-sparse-checkout-pattern Fixing paths and plugin execution 2018-11-04 15:31:11 +01:00
pom.xml Combining maven specific packages into subdirectory and package structure. 2019-05-05 21:46:25 +02:00

README.adoc

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.