Skip to content

Apache Lucene open-source search software

SOLR-5022: Make the Maven build also automatically populate the tests.disableHdfs property by a build profile. Otherwise the maven build fails by default on Windows.

Uwe Schindler46e83f7e600b
diff --git a/dev-tools/maven/solr/pom.xml.template b/dev-tools/maven/solr/pom.xml.template
index 25229450ebc..1b35e2b540e 100644
--- a/dev-tools/maven/solr/pom.xml.template
+++ b/dev-tools/maven/solr/pom.xml.template
@@ -190,4 +190,15 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>windows-tests-disableHdfs</id>
+ <activation>
+ <os><family>windows</family></os>
+ </activation>
+ <properties>
+ <tests.disableHdfs>true</tests.disableHdfs>
+ </properties>
+ </profile>
+ </profiles>
</project>