$ git clone https://github.com/st-tu-dresden/salespoint
$ cd salespoint
$ ./mvnw clean install
The reference documentation is written in Asciidoc and built using Asciidoctor. The main documentation source file is located in src/main/asciidoc
.
To build the reference documentation simply run ./mvnw -Pdocs package
on the command line. This generates the following HTML files:
-
the Salespoint website in
target/generated-docs/index.html
. -
the Salespoint reference in
target/generated-docs/salespoint-reference.html
.
To deploy artifacts to the salespoint repository, simply run ./mvnw clean deploy
. This requires your settings.xml
(located in ~/.m2
) to contain a server definition with the credentials to access the Salespoint server via SFTP:
<server>
<id>salespoint</id>
<username>…</username>
<password>…</password>
</server>
To deploy the website and reference documentation, run ./mvnw -Pdocs site:deploy
.
-
Make sure all tickets are closed, except the release one.
-
Tweak
ChangelogCreator
(insrc/test/java
) to point to the milestone to be released. Run the creator. Copy console output intosrc/main/asciidoc/site/changelog.adoc
. -
Update version information
index.adoc
(insrc/main/asciidoc/site
). -
Commit as
GH-??? - Prepare release $version.
. If this was on a maintainance branch, also cherry-pick this commit tomain
and resolve any conflicts. -
Run
./mvnw release:prepare
. -
Edit commits to match commit message format, re-create tag.
-
Push changes & tag.
-
Check out tag and run
./mvnw clean deploy -Prelease -DskipTests
. -
Check out tag and run
./mvnw clean package site:deploy -Pdocs,release
.