Skip to content

Apache Lucene open-source search software

running 'mvn generate-maven-artifacts' will put all the files in the same directory (dist/maven)

Ryan McKinley6c6a675a4abb
diff --git a/build.xml b/build.xml
index 5a102cc7fac..61a7c0eb557 100644
--- a/build.xml
+++ b/build.xml
@@ -38,10 +38,13 @@
</sequential>
</target>
- <!-- run with -Dmaven.dist.dir=maven to put all the artifacts in one place -->
<target name="generate-maven-artifacts" description="Generate Maven Artifacts for Lucene and Solr">
+ <property name="maven.dist.dir" location="dist/maven" />
+ <mkdir dir="${maven.dist.dir}" />
+
<sequential>
<subant target="generate-maven-artifacts" inheritall="false" failonerror="true">
+ <property name="maven.dist.dir" location="${maven.dist.dir}" />
<fileset dir="lucene" includes="build.xml" />
<fileset dir="modules" includes="build.xml" />
<fileset dir="solr" includes="build.xml" />
@@ -50,6 +53,7 @@
</target>
<target name="clean" description="Clean Lucene and Solr">
+ <delete dir="dist" />
<sequential>
<subant target="clean" inheritall="false" failonerror="true">
<fileset dir="lucene" includes="build.xml" />