You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Drew Farris (JIRA)" <ji...@apache.org> on 2010/11/21 21:09:15 UTC

[jira] Created: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

ant generate-maven-artifacts target broken for contrib
------------------------------------------------------

                 Key: LUCENE-2774
                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
             Project: Lucene - Java
          Issue Type: Bug
          Components: Build
    Affects Versions: 3.1, 4.0
            Reporter: Drew Farris
            Priority: Minor


When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:

{code}
dist-maven:
     [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[artifact:pom] An error has occurred while processing the Maven artifact tasks.
[artifact:pom]  Diagnosis:
[artifact:pom] 
[artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
[artifact:pom] Unable to download the artifact from any repository
{code}


The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984583#action_12984583 ] 

Steven Rowe commented on LUCENE-2774:
-------------------------------------

I tested {{ant clean generate-maven-artifacts}} on branch_3x with {{maven-ant-tasks-2.1.1.jar}} and both Ant 1.7.1 and 1.8.1.  Everything works.

I'll test more combinations tomorrow.

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935103#action_12935103 ] 

Steven Rowe commented on LUCENE-2774:
-------------------------------------

bq. after switching to maven-ant-tasks 2.0.9 the builds for branch 3.x and trunk work fine without the patch I proposed.

After switching to Ant 1.7.1 and maven-ant-tasks 2.0.9, both trunk and branch_3x now work for me too under Cygwin on Win7 without the proposed patch.  (I put maven-ant-tasks-2.0.9.jar in {{C:\Users\sarowe\.ant\lib\}}, rather than the Cygwin-ish {{/home/sarowe/.ant/lib}}, because Ant is running on the native Windows binary 1.6.0_21 JRE).



> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Issue Comment Edited: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934470#action_12934470 ] 

Uwe Schindler edited comment on LUCENE-2774 at 11/22/10 9:14 AM:
-----------------------------------------------------------------

Hi,

- ANT 1.8 is not recommeneded for Lucene builds, some specials in Lucene do not work correctly, because some internal changes to handling of sysprops and other is not working correcty. Use Ant 1.7.x
- Both Lucene 3.x and trunk build correctly without your patch, as it can be seen every night on Hudson.
- There are some warnings and errors about missing artifacts, but the JARs are built correctly - so not fatal - that was always the case and we dont want to touch this :-)
- Building maven artifacts from inside contrib dirs do not work, only from top-level lucene subdir
- Building maven artifacts from the lucene/solr main folder does not work, too (I mean directly below trunk or branch_3x) -> be sure to be inside lucene folder

See hudson builds:
- https://hudson.apache.org/hudson/job/Lucene-trunk/1369/consoleText
- https://hudson.apache.org/hudson/job/Lucene-3.x/187/consoleText

Maybe your maven.jar version is wrong, we are using 2.0.9 on hudson. This version is used since ages to also build the release artifacts (see release todo in wiki):

{noformat}
[hudson@lucene ~]$ ls -l ~/.ant/lib/
total 1831
-rw-r--r--  1 hudson  hudson   701049 Jul 27  2006 js.jar
-rw-r--r--  1 hudson  hudson  1018394 Sep 30 20:28 maven-ant-tasks-2.0.9.jar
-rw-r--r--  1 hudson  hudson    34607 Oct 16  2006 script-js.jar
{noformat}

(the js.jar and script.js.jar are in our ant lib folder as we are using OpenJDK on FreeBSD and that has no JavaScript for testing Solr)

      was (Author: thetaphi):
    Hi,

- ANT 1.8 is not recommeneded for Lucene builds, some specials in Lucene do not work correctly, because some internal changes to handling of sysprops and other is not working correcty. Use Ant 1.7.x
- Both Lucene 3.x and trunk build correctly without your patch, as it can be seen every night on Hudson.
- There are some warnings and errors about missing artifacts, but the JARs are built correctly - so not fatal - that was always the case and we dont want to touch this :-)
- Building maven artifacts from inside contrib dirs do not work, only from top-level lucene subdir
- Building maven artifacts from the lucene/solr main folder does not work, too -> bes usre to be inside lucene

See hudson builds:
- https://hudson.apache.org/hudson/job/Lucene-trunk/1369/consoleText
- https://hudson.apache.org/hudson/job/Lucene-3.x/187/consoleText

Maybe your maven.jar version is wrong, we are using 2.0.9 on hudson. This version is used since ages to also build the release artifacts (see release todo in wiki):

{noformat}
[hudson@lucene ~]$ ls -l ~/.ant/lib/
total 1831
-rw-r--r--  1 hudson  hudson   701049 Jul 27  2006 js.jar
-rw-r--r--  1 hudson  hudson  1018394 Sep 30 20:28 maven-ant-tasks-2.0.9.jar
-rw-r--r--  1 hudson  hudson    34607 Oct 16  2006 script-js.jar
{noformat}

(the js.jar and script.js.jar are in our ant lib folder as we are using OpenJDK on FreeBSD and that has no JavaScript for testing Solr)
  
> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Resolved: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe resolved LUCENE-2774.
---------------------------------

    Resolution: Fixed

All nightlies succeeded last night - resolving.

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Ian Boston (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965305#action_12965305 ] 

Ian Boston commented on LUCENE-2774:
------------------------------------

I am sure you know this, but, this patch fixes an otherwise broken build of Solr and Lucene at r1040465 using 

Apache Ant version 1.8.1 compiled on September 21 2010
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_22
OS name: "mac os x" version: "10.6.5" arch: "x86_64" Family: "mac"
/usr/share/ant/lib/maven-ant-tasks-2.1.1.jar

Since 1.8.1 came with the last JDK install, others might be having the same problem.
HTH

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Reopened: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir reopened LUCENE-2774:
---------------------------------


i know, i'm re-opening a maven issue!

But I'm working on fixes to resolve our build so it works fine on 1.7 and 1.8.

I tend to agree with Ian's comment that since 1.8 is installed on many systems by default,
we should just try to make things work with it nicely.

So, if someone wants to make a patch that fixes this issue so it works on both 1.7 and 1.8,
I think it would be a good thing. Its unclear from the comments whether this patch does
that (it might, but i don't know, since we have no way of verifying that maven is working).


> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984827#action_12984827 ] 

Steven Rowe commented on LUCENE-2774:
-------------------------------------

Hudson nightly builds are failing when executing {{ant generate-maven-artifacts}}, with the same error as Drew reported.

When I use {{maven-ant-tasks-2.0.9.jar}} with Ant 1.7.1 locally, and the equivalent of Drew's patches (since the POM parents have changed), I see the same errors, but the build doesn't fail.

I just re-ran {{ant clean generate-maven-artifacts}} on trunk with an empty {{~/.m2/}} directory, Ant 1.7.1 and {{maven-ant-tasks-2.1.1.jar}}, and no errors were printed, and the build succeeded.

I think instead of adding stuff to the *build.xml files, we should require {{maven-ant-tasks-2.1.1.jar}} for execution of {{ant generate-maven-artifacts}}.

I just re-ran {{ant clean generate-maven-artifacts}} on trunk with an empty {{~/.m2/}} directory, Ant 1.7.1 and {{maven-ant-tasks-2.1.1.jar}} -- no errors were printed, and the build succeeded.


> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934464#action_12934464 ] 

Steven Rowe commented on LUCENE-2774:
-------------------------------------

Hi Drew,

I tried running {{ant generate-maven-artifacts}} without your patch, and I see the same failure as you do.

(Actually, when I first tried, with Ant 1.8.1, it wasn't able to find the maven ant tasks jar (the most recent) that I had placed in {{$ANT_HOME/lib/}} - I downgraded to Ant 1.7.0 and everything went fine.  Apparently Ant 1.8.X no longer pays attention to jars in {{$ANT_HOME/lib/}}?)

However, after applying your patch, the build still fails on trunk (haven't tried branch_3x yet), though not with the same failure.

(Ant 1.7.0, Sun JDK 1.6.0_13 on Cygwin/WinVista):

{noformat}
BUILD FAILED
C:\cygwin\home\us\svn\lucene\dev\trunk\lucene\build.xml:396: The following error occurred while executing this line:
C:\cygwin\home\us\svn\lucene\dev\trunk\lucene\common-build.xml:324: Error deploying artifact 'org.apache.lucene:lucene-core:jar': Error deploying artifact: 
File C:\cygwin\home\us\svn\lucene\dev\trunk\lucene\build\${project.artifactId}-${project.version}.jar does not exist
{noformat}

Looks like some kind of failed interpolation maybe?

I'm going to try under Linux later today.

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984966#action_12984966 ] 

Steven Rowe commented on LUCENE-2774:
-------------------------------------

It appears that there were two problems blocking the Hudson build scripts from succeeding:

# Maven Ant Tasks seems to dislike mixed artifact versions cached in the local maven repository ({{~/.m2/repository/}}) - this leads to errors that look like the one Drew originally reported on this issue, regardless of the version of Maven Ant Tasks that is used.
# {{maven-ant-tasks-2.0.9.jar}} does not work with the new full POMs introduced by LUCENE-2657 - errors that look like Drew's are printed and the build fails.

However, purging the local maven repository ({{~/.m2/repository/}}) and upgrading to {{maven-ant-tasks-2.1.1.jar}} allows {{ant generate-maven-artifacts}} to consistently succeed.

Uwe has changed the Hudson build setup to {{rm -rf $HOME/.m2/repository}} and has upgraded the Maven Ant Tasks jar to v2.1.1.  Since these changes, the only full build that has completed is the Lucene-3.x build, and it was a success.

I'll leave this issue open until all of the nightly Hudson builds have succeeded (hopefully that will happen tonight).

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Issue Comment Edited: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984827#action_12984827 ] 

Steven Rowe edited comment on LUCENE-2774 at 1/21/11 12:41 PM:
---------------------------------------------------------------

Hudson nightly builds are failing when executing {{ant generate-maven-artifacts}}, with the same error as Drew reported.

When I use {{maven-ant-tasks-2.0.9.jar}} with Ant 1.7.1 locally, and the equivalent of Drew's patches (since the POM parents have changed), I see the same errors, but the build doesn't fail.

I just re-ran {{ant clean generate-maven-artifacts}} on trunk with an empty {{~/.m2/}} directory, Ant 1.7.1 and {{maven-ant-tasks-2.1.1.jar}} -- no errors were printed, and the build succeeded.

I think instead of adding stuff to the *build.xml files, we should require {{maven-ant-tasks-2.1.1.jar}} for execution of {{ant generate-maven-artifacts}}.


      was (Author: steve_rowe):
    Hudson nightly builds are failing when executing {{ant generate-maven-artifacts}}, with the same error as Drew reported.

When I use {{maven-ant-tasks-2.0.9.jar}} with Ant 1.7.1 locally, and the equivalent of Drew's patches (since the POM parents have changed), I see the same errors, but the build doesn't fail.

I just re-ran {{ant clean generate-maven-artifacts}} on trunk with an empty {{~/.m2/}} directory, Ant 1.7.1 and {{maven-ant-tasks-2.1.1.jar}}, and no errors were printed, and the build succeeded.

I think instead of adding stuff to the *build.xml files, we should require {{maven-ant-tasks-2.1.1.jar}} for execution of {{ant generate-maven-artifacts}}.

I just re-ran {{ant clean generate-maven-artifacts}} on trunk with an empty {{~/.m2/}} directory, Ant 1.7.1 and {{maven-ant-tasks-2.1.1.jar}} -- no errors were printed, and the build succeeded.

  
> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Closed: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Drew Farris (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew Farris closed LUCENE-2774.
-------------------------------

       Resolution: Invalid
    Lucene Fields:   (was: [New])

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934470#action_12934470 ] 

Uwe Schindler commented on LUCENE-2774:
---------------------------------------

Hi,

- ANT 1.8 is not recommeneded for Lucene builds, some specials in Lucene do not work correctly, because some internal changes to handling of sysprops and other is not working correcty. Use Ant 1.7.x
- Both Lucene 3.x and trunk build correctly without your patch, as it can be seen every night on Hudson.
- There are some warnings and errors about missing artifacts, but the JARs are built correctly - so not fatal - that was always the case and we dont want to touch this :-)
- Building maven artifacts from inside contrib dirs do not work, only from top-level lucene subdir
- Building maven artifacts from the lucene/solr main folder does not work, too -> bes usre to be inside lucene

See hudson builds:
- https://hudson.apache.org/hudson/job/Lucene-trunk/1369/consoleText
- https://hudson.apache.org/hudson/job/Lucene-3.x/187/consoleText

Maybe your maven.jar version is wrong, we are using 2.0.9 on hudson. This version is used since ages to also build the release artifacts (see release todo in wiki):

{noformat}
[hudson@lucene ~]$ ls -l ~/.ant/lib/
total 1831
-rw-r--r--  1 hudson  hudson   701049 Jul 27  2006 js.jar
-rw-r--r--  1 hudson  hudson  1018394 Sep 30 20:28 maven-ant-tasks-2.0.9.jar
-rw-r--r--  1 hudson  hudson    34607 Oct 16  2006 script-js.jar
{noformat}

(the js.jar and script.js.jar are in our ant lib folder as we are using OpenJDK on FreeBSD and that has no JavaScript for testing Solr)

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Drew Farris (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew Farris updated LUCENE-2774:
--------------------------------

    Attachment: LUCENE-2774.patch

Attached a trivial patch that applies cleanly against both the 3.x branch and trunk.


> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Assigned: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe reassigned LUCENE-2774:
-----------------------------------

    Assignee: Steven Rowe

I'll work on this once I have committed the patches on LUCENE-2657.  For that work, I've been using Ant 1.7.1 and Maven Ant Tasks 2.0.9 without any problems.  But we should make sure that Ant 1.8.X and Maven Ant Tasks 2.0.10 and 2.1.X also work.

> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (LUCENE-2774) ant generate-maven-artifacts target broken for contrib

Posted by "Drew Farris (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934712#action_12934712 ] 

Drew Farris commented on LUCENE-2774:
-------------------------------------

Hi Steve, Uwe,

I was using Ant 1.7.1  with 1.6.0_22, maven-ant-tasks 2.2.1 on ubuntu 10.04 -- after switching to maven-ant-tasks 2.0.9 the builds for branch 3.x and trunk work fine without the patch I proposed.

FWIW, I was able to fetch 2.0.9 from the archive: http://archive.apache.org/dist/maven/binaries/maven-ant-tasks-2.0.9.jar

Thanks for the detailed explanation Uwe.


> ant generate-maven-artifacts target broken for contrib
> ------------------------------------------------------
>
>                 Key: LUCENE-2774
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2774
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>            Reporter: Drew Farris
>            Priority: Minor
>         Attachments: LUCENE-2774.patch
>
>
> When executing 'ant generate-maven-artifacts' from a pristine checkout of branch_3x/lucene or trunk/lucene the following error is encountered:
> {code}
> dist-maven:
>      [copy] Copying 1 file to /home/drew/lucene/branch_3x/lucene/build/contrib/analyzers/common
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM pom.xml.template: Cannot find parent: org.apache.lucene:lucene-contrib for project: org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT for project org.apache.lucene:lucene-analyzers:jar:3.1-SNAPSHOT
> [artifact:pom] Unable to download the artifact from any repository
> {code}
> The contrib portion of the ant build is executed in a subant task which does not pick up the pom definitions for lucene-parent and lucene-contrib from the main build.xml, so the lucene-parent and lucene-controb poms must be loaded specifically as a part of the contrib build using the artifact:pom task.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org