[
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: [email protected]
For additional commands, e-mail: [email protected]