Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-1424 -- fixing ant generate-maven-artifacts on windows

Ryan McKinley26efaadaf125
diff --git a/build.xml b/build.xml
index 307eedc3961..b2986036302 100644
--- a/build.xml
+++ b/build.xml
@@ -747,7 +747,7 @@
<!-- ========== SOLR PARENT POM ========== -->
- <m2-deploy pom.xml="${src}/maven/solr-parent-pom.xml.template"/>
+ <m2-deploy pom.xml="src/maven/solr-parent-pom.xml.template"/>
<!-- ========== SOLR SPECIFIC LUCENE ARTIFACTS ========== -->
@@ -815,7 +815,7 @@
<!-- TODO: MORE NEEDED HERE ONCE WE FINALIZE THE LIBS FOR CARROT -->
<!-- end clustering specific -->
- <m2-deploy pom.xml="${src}/maven/solr-core-pom.xml.template"
+ <m2-deploy pom.xml="src/maven/solr-core-pom.xml.template"
jar.file="${dist}/apache-solr-core-${version}.jar">
<artifact-attachments>
@@ -825,7 +825,7 @@
</m2-deploy>
- <m2-deploy pom.xml="${src}/maven/solr-solrj-pom.xml.template"
+ <m2-deploy pom.xml="src/maven/solr-solrj-pom.xml.template"
jar.file="${dist}/apache-solr-solrj-${version}.jar">
<artifact-attachments>
diff --git a/common-build.xml b/common-build.xml
index f891dc7e97d..5b416fc64ed 100644
--- a/common-build.xml
+++ b/common-build.xml
@@ -253,6 +253,7 @@
</sequential>
</macrodef>
+ <!-- NOTE, the pom.xml MUST be a relative path. An absolute path may break the build on windows -->
<macrodef name="m2-deploy" description="Builds a Maven artifact">
<element name="artifact-attachments" optional="yes"/>
<attribute name="pom.xml" default="${pom.xml}"/>