Start compiled Java 8 integration tests on Confluence Server with Java 11

Hi all,

we would like to run our integration tests on Confluence Server running with Java 11. We don’t want to compile our tests or our app with Java 11 and want still use Java 8 for it. The only option for us is to start the test Confluence instance with Java 11. How can I do that? I looked into amps code and couldn’t find anything I can pass as parameter. Maybe @mpaisley?

Thanks in advance,
Daria

Found finally a solution: just pass -Dcargo.java.home={JAVA_HOME_PATH_FOR_CONFLUENCE} and amps will pass it to cargo-maven2-plugin and start Confluence with the specified java version.

Daria

2 Likes