Looks like you found another part of the problem which obviously was not fully resolved (thank you for raising the issue).
One approach for a workaround might be just to set the entire output directory to an alternate location, rather than only trying to set your logs directory to an alternate location. So something like:
REMOVE the logDirectory
attribute from the <logging>
element in server.xml.
Set the output directory via liberty-maven-plugin:
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<configuration>
<outputDirectory>C:/liberty-output</outputDirectory>
- OR, (as an alternate to 2.), instead of using plugin config, you can set the output directory in
src/main/liberty/config/server.env
:
WLP_OUTPUT_DIR=C:/liberty-output
NOTE
Note that you'll get some extra directories nested in this solution.
You'll get something like:
C:/liberty-output/defaultServer/logs/messages.log
Rather than:
C:/liberty-output/messages.log