Go to file
Martin Stockhammer 298fb786c3 Merge branch 'dependabot/maven/org.apache.maven.plugins-maven-dependency-plugin-3.2.0'
Merge dependabot PR:  Bump maven-dependency-plugin from 3.1.1 to 3.2.0 #18
2021-12-12 09:52:53 +01:00
.github add gh actions and dependabot 2021-10-28 11:10:05 +10:00
idea.run.configuration Moving rest utility classes to components 2021-01-01 19:00:03 +01:00
redback-authentication Making ldapconnection autocloseable 2021-01-17 11:09:36 +01:00
redback-authorization Improving response of permission interceptor 2021-05-30 10:55:29 +02:00
redback-common Adding query search for groups 2021-01-17 16:37:40 +01:00
redback-configuration Adding refresh token for authentication 2020-07-12 21:03:37 +02:00
redback-integrations REST API build changes 2021-09-24 21:50:02 +02:00
redback-keys Moving to jakarta libraries 2020-07-04 16:59:49 +02:00
redback-policy Moving to jakarta libraries 2020-07-04 16:59:49 +02:00
redback-rbac Making ldapconnection autocloseable 2021-01-17 11:09:36 +01:00
redback-system Fix for JDK11 dependencies 2020-07-05 00:32:28 +02:00
redback-users Making ldapconnection autocloseable 2021-01-17 11:09:36 +01:00
src Set OpenJPA logging to commons 2019-12-15 23:52:45 +01:00
.gitattributes add .gitattributes file 2014-04-24 11:55:10 +10:00
.gitignore Ignore Netbeans artifacts 2016-09-07 00:30:14 +03:00
.travis.yml Changing jdk version and distribution for travis-ci 2020-11-17 19:11:27 +01:00
Jenkinsfile Adding components as upstream trigger 2021-12-07 20:27:34 +01:00
README.adoc Refactoring of role API and new Role V2 REST service 2020-11-24 21:28:42 +01:00
checkoutSite.sh Migrating to staging branch for site publish 2019-11-29 21:41:55 +01:00
deploySite.sh Using help plugin for config retrieval 2019-12-01 00:04:09 +01:00
git-sparse-checkout-pattern Changes for site git migration 2018-11-11 10:02:27 +01:00
pom.xml Bump maven-dependency-plugin from 3.1.1 to 3.2.0 2021-11-05 16:24:56 +00:00

README.adoc

Archiva Redback - Documentation
===============================
:toc:

== Update Information for 3.0

=== Database Schema Changes

==== org.apache.archiva.redback.rbac.Role

New fields:
id, modelId, isTemplateInstance, resource

Primary key changed from name to combined key id,name


== 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 

  /redback/core

=== 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.