I'm creating a java database but maven fails:
codeql database create log4j-database -l=java -c="mvn clean install -file pom.xml -Dmaven.test.skip=true" --overwrite
When I run it again I got:
A fatal error occurred: Ran with database overwriting enabled, but the directory does not appear to be a CodeQL database or database cluster. Please check you do indeed wish to delete it, and do so manually.
When maven fails, codeql would fail to determine if it's a codeql database. That looks like a bug to me.
Here's the contents of log4j-database directory:
%> ls log4j-database/ -R
log4j-database/:
./ ../ log/ trap/