Skip to content

Apache Lucene open-source search software

Don't fail on non-existent m2 repo

Uwe Schindler227341579bd2
diff --git a/build.xml b/build.xml
index 915294ed2eb..7cc273155c6 100644
--- a/build.xml
+++ b/build.xml
@@ -164,7 +164,7 @@
<target name="remove-maven-artifacts" description="Removes all Lucene/Solr Maven artifacts from the local repository">
<echo message="Removing all Lucene/Solr Maven artifacts from '${user.home}/.m2/repository'..."/>
<delete includeemptydirs="true">
- <fileset dir="${user.home}/.m2/repository">
+ <fileset dir="${user.home}/.m2/repository" erroronmissingdir="false">
<include name="org/apache/lucene/**"/>
<include name="org/apache/solr/**"/>
</fileset>