You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2009/09/11 21:11:57 UTC
[jira] Created: (SOLR-1424) ant generate-maven-artifacts fails on
windows
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.
[jira] Updated: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-1424:
--------------------------------
Attachment: SOLR-1424.patch
> 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
> Assignee: Ryan McKinley
> Fix For: 1.4
>
> Attachments: SOLR-1424.patch
>
>
> 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.
[jira] Assigned: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley reassigned SOLR-1424:
-----------------------------------
Assignee: Ryan McKinley
yup, that does it... I will commit shortly
> 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
> Assignee: Ryan McKinley
>
> 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.
[jira] Commented: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley resolved SOLR-1424.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.4
> 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
> Assignee: Ryan McKinley
> Fix For: 1.4
>
> Attachments: SOLR-1424.patch
>
>
> 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.
[jira] Commented: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754386#action_12754386 ]
Ryan McKinley commented on SOLR-1424:
-------------------------------------
no dice. with:
{code}
$ svn diff
Index: common-build.xml
===================================================================
--- common-build.xml (revision 814053)
+++ common-build.xml (working copy)
@@ -104,13 +104,12 @@
<property name="junit.reports" location="${common.dir}/${dest}/test-results/reports"/>
<!-- Maven properties -->
- <property name="maven.build.dir" value="${basedir}/build/maven"/>
- <property name="maven.dist.dir" value="${basedir}/dist/maven"/>
+ <property name="maven.build.dir" location="${basedir}/build/maven"/>
+ <property name="maven.dist.dir" location="${basedir}/dist/maven"/>
+ <property name="maven.dist.prefix" location="${maven.dist.dir}/org/apache/solr"/>
- <property name="maven.dist.prefix" value="${maven.dist.dir}/org/apache/solr"/>
-
{code}
I still get:
{code}
generate-maven-artifacts:
[copy] Copying 1 file to c:\workspace\apache\solr\build\maven\c:\workspace\apache\solr\src\maven
BUILD FAILED
c:\workspace\apache\solr\build.xml:750: The following error occurred while executing this line:
c:\workspace\apache\solr\common-build.xml:260: Failed to copy c:\workspace\apache\solr\src\maven\solr-parent-pom.xml.template to c:\workspace\apache\solr\build\maven\c:\workspace\apache\solr\src\maven
\solr-parent-pom.xml.template due to java.io.FileNotFoundException c:\workspace\apache\solr\build\maven\c:\workspace\apache\solr\src\maven\solr-parent-pom.xml.template (The filename, directory name, o
r volume label syntax is incorrect)
Total time: 4 minutes 7 seconds
{code}
looking around at some other options, but don't see anything obvious
> 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.
[jira] Commented: (SOLR-1424) ant generate-maven-artifacts fails on
windows
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754287#action_12754287 ]
Hoss Man commented on SOLR-1424:
--------------------------------
I believe the error is just because maven directory properties are defined like this...
{code}
<!-- Maven properties -->
<property name="maven.build.dir" value="${basedir}/build/maven"/>
<property name="maven.dist.dir" value="${basedir}/dist/maven"/>
<property name="maven.dist.prefix" value="${maven.dist.dir}/org/apache/solr"/>
{code}
...but i'm pretty sure they're suppose to be defined like this...
{code}
<!-- Maven properties -->
<property name="maven.build.dir" location="${basedir}/build/maven"/>
<property name="maven.dist.dir" location="${basedir}/dist/maven"/>
<property name="maven.dist.prefix" location="${maven.dist.dir}/org/apache/solr"/>
{code}
...so that ANt recognizes that they're paths.
but i don't have a windows box, so i can't test that that fixes the problem
> 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.