readme.adoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Salespoint Framework
  2. image:https://travis-ci.org/st-tu-dresden/salespoint.svg?branch=6.4.x["Build Status", link="https://travis-ci.org/st-tu-dresden/salespoint"]
  3. ## Prerequisites
  4. - Java 8
  5. - Git
  6. - Maven 3.x
  7. ## Building the project
  8. .Building the project
  9. [source, bash]
  10. ----
  11. $ git clone https://github.com/st-tu-dresden/salespoint
  12. $ cd salespoint
  13. $ mvn clean install
  14. ----
  15. ## Documentation
  16. The reference documentation is written in Asciidoc and built using Asciidoctor. The main documentation source file is located in `src/main/asciidoc`.
  17. To build the reference documentation simply run `mvn generate-resources` on the command line. This generates the following HTML files:
  18. * the Salespoint website in `target/generated-docs/index.html`.
  19. * the Salespoint reference in `target/generated-docs/salespoint-reference.html`.
  20. ## Deployment
  21. To deploy artifacts to the salespoint repository, simply run `mvn clean deploy`. This requires your `settings.xml` (located in `~/.m2`) to contain a server defintion with the credentials to access the Salespoint server via SFTP:
  22. [source, xml]
  23. ----
  24. <server>
  25. <id>salespoint</id>
  26. <username>…</username>
  27. <password>…</password>
  28. </server>
  29. ----
  30. To deploy the website and reference documentation, run `mvn site:deploy`.
  31. ## Release
  32. . Make sure all tickets are closed, except the release one.
  33. . Tweak `ChangelogCreator` (in `src/test/java`) to point to the milestone to be released. Run the creator. Copy console output into `src/main/asciidoc/site/changelog.adoc`.
  34. . Update `src/main/asciidoc/site/index.adoc` to reflect version about to be released and correct next development version.
  35. . Commit as `#?? - Prepare release $version.`.
  36. . Run `mvn release:prepare -DscmCommentPrefix="$releaseTicketId - "`.
  37. . Edit commits to match commit message format, re-create tag.
  38. . Push changes & tag.
  39. . Check out tag.
  40. . Run `mvn clean deploy site:deploy -Prelease -DskipTests`.