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

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

    [ 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