You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.adoc 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Archiva Documentation - User Documentation
  2. ===========================================
  3. :toc:
  4. == How to build and publish the pages for the archiva web content
  5. This module and the children contain web content and project reports that can be published to the
  6. archiva web site: https://archiva.apache.org
  7. The web content parts of this module and submodules are published to the path
  8. /docs/${project.version}/
  9. === Use the script
  10. There is a shell script +deploySite.sh+ which you can run to generate the site check and publish to
  11. the remote repository. It works only on Linux, on other platforms you have to go the next section.
  12. The script is interactive, it asks you to confirm the publish after generation of the staging part.
  13. .Execute
  14. ./deploySite.sh
  15. All arguments are appended to the mvn calls.
  16. === Run the mvn steps manually
  17. ==== Building the pages
  18. You need enough free disk space to publish the web content. The archiva web site repository is big,
  19. but the maven build will only checkout the necessary directories for this build (sparse checkout).
  20. For all the commands you have to change to this archiva-modules directory:
  21. cd archiva/archiva-modules
  22. .The following creates the site to the staging folder
  23. mvn clean site site:stage
  24. The result can be checked in
  25. archiva-modules/target/staging/ref/${project.version}
  26. with your browser.
  27. If you would like the use a local checkout of the archiva-web-content.git repository and not push directly
  28. to the remote repository, you may add this parameter:
  29. -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git
  30. where +${path-to-your-local-archiva}+ is the path where a bare clone of the archiva-web-content.git is stored.
  31. NOTE: You cannot use +mvn site:run+ because this will place the submodules into the same folder and
  32. overwrite each other.
  33. ==== Publish the pages
  34. .This command publishes to the git repository
  35. mvn scm-publish:publish-scm
  36. After publishing to the git repository the gitpubsub mechanism is transferring it to the HTTP server.
  37. If you would like the use a local checkout of the archiva-web-content.git repository and not push directly
  38. to the remote repository, you may add this parameter:
  39. -DsiteRepositoryUrl=scm:git:file:///${path-to-your-local-archiva}/archiva-web-content.git
  40. === Some notes about the build process
  41. A sparse checkout of the git repository will be created in
  42. .site-content
  43. but only, if the directory +.site-content/.git+ does not exist.