: <!-- Used to specify an alternate directory to hold all index data : other than the default ./data under the Solr home. : If replication is in use, this should match the replication : configuration : . --> : <dataDir>${solr.data.dir:./solr/data}</dataDir>
that directive says "use the solr.data.dir system property to pick a path, if it is not set, use "./solr/data" (realtive the CWD) if you want it to use the default, then you need to eliminate it completley, or you need to change it to the empty string... <dataDir>${solr.data.dir:}</dataDir> or... <dataDir></dataDir> -Hoss