readme.adoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Salespoint Framework
  2. image:https://travis-ci.org/st-tu-dresden/salespoint.svg?branch=master["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. 1. Make sure all tickets are closed, except the release one.
  33. 2. 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. 3. Commit as `#?? - Prepare release $version.`.
  35. 4. Run `mvn release:prepare`.
  36. 5. Edit commits to match commit message format, re-create tag.
  37. 6. Push changes & tag.
  38. 7. Check out tag.
  39. 8. Run `mvn clean deploy site:deploy -Prelease -DskipTests`.