I have a (rather complex) build script which call Maven on a number of repositories to execute jQA `scan` on them. As I want to accumulate all results in a single database, I start every run with -Djqassistant.scan.reset=false.
As far as I can see, jQA very often leaves a lock file in the database directory (`…/store/data/databases/store_lock`) which prevents the next iteration to run successfully. 
	Error:  Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.7.0:scan (default-cli) on project indexer-reader: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.7.0:scan failed: Error starting Neo4j database server at .../jqassistant/store/data/databases: Component 'org.neo4j.kernel.internal.locker.LockerLifecycleAdapter@14ddbb6a' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to obtain lock on file: .../jqassistant/store/data/databases/store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)". -> [Help 1]
As a workaround, I have added a loop which checks for the lock file and removes it after some (15) seconds if it does not vanish. This has improved the situation, though making the whole process way slower (I have 125 repositories to scan). It runs many hours so, these (125x15 secs) ~30 minutes do not really matter.
However on some of the projects jQA scan runs into the lock problem anyway (even when starting with a clean db directory). It seems to fail after checking some modules successfully but on one of the last modules. I see this behaviour on several of my 125 repos but could not yet identify a common pattern, eg., some projects are single module projects, others are multi module. It seems to always fail on multi module projects but not every multi module project involved.
Looks like this (excerpt):
[INFO] Maven SLF4J Simple Provider ........................ SUCCESS [  0.164 s]
[INFO] Maven Embedder ..................................... SUCCESS [  3.052 s]
[INFO] Maven Compat ....................................... SUCCESS [  2.525 s]
[INFO] Apache Maven Distribution .......................... FAILURE [  3.401 s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
I seem to have this problem with jQA 2.6.0 and 2.7.0 (some month ago I was using 2.5.0 and cannot remember such issues, but perhaps had other changes).
Any ideas?