Skip to content

Apache Lucene open-source search software

Add nightly maven build&check task (more will come later!), also remove duplicate dependencies. The validate task now only runs from root

Uwe Schindler29793bc97fb9
diff --git a/build.xml b/build.xml
index 74bff27534d..29c9df3fe9d 100644
--- a/build.xml
+++ b/build.xml
@@ -91,13 +91,6 @@
</subant></sequential>
</target>
- <target name="validate-maven-dependencies" description="Validates maven dependencies, licenses, etc">
- <subant target="validate-maven-dependencies" inheritall="false" failonerror="true">
- <fileset dir="lucene" includes="build.xml"/>
- <fileset dir="solr" includes="build.xml"/>
- </subant>
- </target>
-
<target name="resolve" depends="clean-jars" description="Resolves all dependencies">
<sequential><subant target="resolve" inheritall="false" failonerror="true">
<fileset dir="lucene" includes="build.xml" />
@@ -149,6 +142,13 @@
</sequential>
</target>
+ <target name="validate-maven-dependencies" depends="generate-maven-artifacts" description="Validates maven dependencies, licenses, etc">
+ <subant target="-validate-maven-dependencies" inheritall="false" failonerror="true">
+ <fileset dir="lucene" includes="build.xml"/>
+ <fileset dir="solr" includes="build.xml"/>
+ </subant>
+ </target>
+
<target name="eclipse" depends="clean-jars, resolve" description="Setup Eclipse configuration">
<copy file="dev-tools/eclipse/dot.project" tofile=".project" overwrite="false"/>
<copy file="dev-tools/eclipse/dot.classpath" tofile=".classpath" overwrite="true"/>
@@ -293,6 +293,8 @@
</antcall>
</target>
<target name="-jenkins-clover" depends="clean,test,generate-clover-reports"/>
+
+ <target name="jenkins-maven-nightly" depends="clean,generate-maven-artifacts,validate-maven-dependencies"/>
<!-- we need this extra condition, as we want to match only on "true", not solely if property is set: -->
<property name="disable.javadocs-lint" value="false" />
diff --git a/lucene/build.xml b/lucene/build.xml
index 2de00e5f863..5827a8b783e 100644
--- a/lucene/build.xml
+++ b/lucene/build.xml
@@ -455,7 +455,7 @@
</sequential>
</target>
- <target name="validate-maven-dependencies" depends="compile-tools, generate-maven-artifacts, load-custom-tasks">
+ <target name="-validate-maven-dependencies" depends="compile-tools, install-maven-tasks, load-custom-tasks">
<sequential>
<subant target="-validate-maven-dependencies" failonerror="true" inheritall="false">
<propertyset refid="uptodate.and.compiled.properties"/>
diff --git a/solr/build.xml b/solr/build.xml
index 0d8d4dd6603..1f939b4d1a1 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -575,7 +575,7 @@
</subant>
</target>
- <target name="validate-maven-dependencies" depends="compile-tools, generate-maven-artifacts, -generate-lucene-maven-artifacts, load-custom-tasks">
+ <target name="-validate-maven-dependencies" depends="compile-tools, install-maven-tasks, load-custom-tasks">
<sequential>
<subant target="-validate-maven-dependencies" failonerror="true" inheritall="false">
<propertyset refid="uptodate.and.compiled.properties"/>