[ 
https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754450#action_12754450
 ] 

Hoss Man commented on SOLR-1424:
--------------------------------

Hmmm.... i think the way the macro uses the pom.xml argument is the problem ... 
in some cases it can be an absolute path (ie: when you're on windows) so 
concating with ${maven.build.dir} in the copy task is a bad idea.

we could change the copy task to use a target dir instead of a target file ... 
except the artifact:pom task also needs the final filename.

Try changing the <m2-deploy> call something like this...

{noformat}
Index: build.xml
===================================================================
--- build.xml   (revision 813985)
+++ build.xml   (working copy)
@@ -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 ========== -->
 
{noformat}

...and if that works, just document the hell out of the m2-deploy macro that 
the pom.xml arg must be a relative path.


> ant generate-maven-artifacts fails on windows
> ---------------------------------------------
>
>                 Key: SOLR-1424
>                 URL: https://issues.apache.org/jira/browse/SOLR-1424
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> From solr-user...
> {noformat}
> generate-maven-artifacts:
>     [mkdir] Created dir: c:\Downloads\solr_trunk\build\maven
>     [mkdir] Created dir: c:\Downloads\solr_trunk\dist\maven
>      [copy] Copying 1 file to
> c:\Downloads\solr_trunk\build\maven\c:\Downloads\s
> olr_trunk\src\maven
> BUILD FAILED
> c:\Downloads\solr_trunk\build.xml:741: The following error occurred while
> execut
> ing this line:
> c:\Downloads\solr_trunk\common-build.xml:261: Failed to copy
> c:\Downloads\solr_t
> runk\src\maven\solr-parent-pom.xml.template to
> c:\Downloads\solr_trunk\build\mav
> en\c:\Downloads\solr_trunk\src\maven\solr-parent-pom.xml.template due to
> java.io
> .FileNotFoundException
> c:\Downloads\solr_trunk\build\maven\c:\Downloads\solr_tru
> nk\src\maven\solr-parent-pom.xml.template (The filename, directory name, or
> volu
> me label syntax is incorrect)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to