How to run Confluence Data Center with an embedded H2 database for testing purposes
プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。
目的
2021 年 2 月 2 日 ( サーバーの販売終了日) 以降、Data Center 評価ライセンスの生成のみが可能となります。つまり、Confluence セットアップ ウィザードには、組み込みの H2 データベースを使用するオプションは含まれなくなります。
The purpose of this article is to explain how to run non-clustered (single node) Confluence Data Center installations with an embedded H2 database for testing and app development purposes. You can run an H2 database using existing automated tooling through Atlassian Maven Plugin Suite (AMPS).
ソリューション
- Download and Install the AMPS SDK
- Run the AMPS SDK.
You can pass parameters on the command line in the form:
atlas-run-standalone --product confluence
AMPS will use the latest stable version of Confluence. If the <confluence-home>/confluence.cfg.xml
file includes an H2 database URL, Confluence will start an H2 instance.
Here are some useful parameters:
パラメーター | 説明 | 例 |
---|---|---|
version | Specify the version of the product to run (default is RELEASE) | 1.0 |
http-port | The HTTP port for the servlet container | 8080 |
ajp-port | The AJP port for the servlet container | 7412 |
plugins | Comma-delimited list of plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST |
|
lib-plugin | Comma-delimited list of lib artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST |
|
bundled-plugins | Comma-delimited list of bundled plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST |
|
Note: different SDK releases offer different parameters.
Learn how to work with the SDK