When you try to start a local server for local plugin development, the ${localHome} variable is used in the server configuration (confluence.cfg.xml) for the lucene.index.dir and struts.multipart.saveDir settings.

However, the Confluence server itself apparently can no longer handle this variable.
Ultimately, this results in the inability to import any spaces into the local Confluence server.
I haven’t tested this with every Confluence version, but the Long-Term Support (LTS) versions 9.2 and 8.5 did not have this issue. We first noticed it with LTS version 10.2.
We’re using SDK 9.11.2. And the pom.xml is configured as follows:
amps.version 9.13.2
confluence.version 10.2.18
As a workaround, Atlassian Support helped us by specifying the absolute path for both settings. (Atlassian Support)
However, this gets overwritten every time we run atlas-clean.
That’s why we’re opening this ticket: to have the SDK/AMPS version adjusted so that the setting is set correctly again, or to ensure that the Confluence server can handle the variable properly.
Translated with DeepL.com (free version)
Hi @FrankHeinze,
Not an AMPS thing. Those two ${localHome} lines ship verbatim in confluence-home/confluence.cfg.xml inside confluence-plugin-test-resources-10.2.18.jar, and 9.13.2 is already the newest AMPS, so a bump probably won’t help.
Looks like Windows from the c:\ path in your screenshot. In the 10.2.18 bytecode FileStoreHomePathPlaceholderResolver only resolves a value starting with ${localHome} plus File.separator, which is \ there, so ${localHome}/index stays a literal relative path. Hence the ${localHome}\index folder under the cargo home.
9.2 is the odd part. Same values in the 9.2.9 zip, same resolver code, and no idea yet what changed. Was 9.2 on Windows too?
To survive atlas-clean I’d point <productDataPath> at a home zip kept outside target/ (from atlas-create-home-zip) with the two properties set to %PRODUCT_HOME_DIR%/index and %PRODUCT_HOME_DIR%/temp, AMPS swaps that token in confluence.cfg.xml on unzip. Haven’t tested that part. Only read it in the AMPS source.
Hi @Mihai_leanzero ,
Yep, we developers have been using Confluence 8 locally on Windows.
I can only speculate that either the component handling the settings file is faulty and is using a potentially outdated variable,
or the component responsible for resolving that variable is no longer able to handle it.
I just tried replacing the variable ‘${localHome}’ with ‘${confluenceHome}’ for both settings. In that case, it would be reset to ‘${localHome}’ when the Confluence server starts up.
Hi @FrankHeinze,
The reset is expected. DefaultBootstrapManager.updateSharedHomeToLocalHome runs on every start. It rewrites a lucene.index.dir or struts.multipart.saveDir value containing ${confluenceHome} to ${localHome}, and the code is identical in 8.5.10, 9.2.9 and 10.2.18. That’s from the jar bytecode, and I haven’t run it.
An absolute path survives restarts. The home directory docs say “An alternative directory may be specified for the index by setting the lucene.index.dir property in confluence.cfg.xml.” AMPS passes -Dconfluence.home itself, so the home is fine.
Only atlas-clean wipes that path, so keep it in a home zip outside target/ as in post 2.
CONFSERVER-78902 covers Windows ${localHome} folders in the install dir. Since Confluence 8 worked for you on Windows, the literal folder alone probably isn’t what breaks the import. 8.5 and 9.2 both ship a BootstrapPropertiesProvider that resolves the home placeholders in every confluence.cfg.xml value, and 10.2 doesn’t. I haven’t found what used it.
AMPS 9.14.0 (2026-10-22) is now the newest, but nothing in it touches localHome, so upgrading won’t change this.
Was 9.2 also run on Windows?
Hi @Mihai_leanzero ,
I was on vacation for a short while.
Yep, version 9.2 also ran on Windows.
It’s good that you mentioned ticket CONFSERVER-78902, when I replace the forward slash with a backward slash in the configuration, it seems to resolve the variable again (in the system information).
And importing a range works again, too.
So this old problem is happening again.