$ git clone https://github.com/st-tu-dresden/salespoint
$ cd salespoint
$ mvn 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 mvn -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 mvn 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 mvn -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
#?? - Prepare release $version.
. If this was on a maintainance branch, also cherry-pick this commit tomain
and resolve any conflicts. -
Run
mvn release:prepare
. -
Edit commits to match commit message format, re-create tag.
-
Push changes & tag.
-
Check out tag and run
mvn clean deploy -Prelease -DskipTests
. -
Check out
main
and runmvn clean package -Pdocs -Prelease
. -
Again, check out tag and run
mvn site:deploy -Pdocs
.