readme.adoc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Salespoint Framework
  2. ## Prerequisites
  3. - Java 8
  4. - Git
  5. - Maven 3.x
  6. ## Building the project
  7. .Building the project
  8. [source, bash]
  9. ----
  10. $ git clone https://github.com/st-tu-dresden/salespoint
  11. $ cd salespoint
  12. $ mvn clean install
  13. ----
  14. ## Documentation
  15. The reference documentation is written in Asciidoc and built using Asciidoctor. The main documentation source file is located in `src/main/asciidoc`.
  16. To build the reference documentation simply run `mvn generate-resources` on the command line. This generates the following HTML files:
  17. * the Salespoint website in `target/generated-docs/index.html`.
  18. * the Salespoint reference in `target/generated-docs/salespoint-reference.html`.
  19. ## Deployment
  20. 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:
  21. [source, xml]
  22. ----
  23. <server>
  24. <id>salespoint</id>
  25. <username>…</username>
  26. <password>…</password>
  27. </server>
  28. ----
  29. To deploy the website and reference documentation, run `mvn site:deploy`.