https://bugzilla.redhat.com/show_bug.cgi?id=830762
Bug ID: 830762 QA Contact: extras-qa@fedoraproject.org Severity: unspecified Version: 17 Priority: unspecified CC: akurtako@redhat.com, hicham.haouari@gmail.com, java-sig-commits@lists.fedoraproject.org, kdaniel@redhat.com Assignee: akurtako@redhat.com Summary: lucene ships POMs with uninitialized version properties Regression: --- Story Points: --- Classification: Fedora OS: Unspecified Reporter: michel+fdr@sylvestre.me Type: Bug Documentation: --- Hardware: Unspecified Mount Type: --- Status: NEW Component: lucene Product: Fedora
Created attachment 590902 --> https://bugzilla.redhat.com/attachment.cgi?id=590902&action=edit POM file for clucy
Description of problem: The latest Lucene RPM ships with POMs that have unitialized version properties, thus causing mvn-rpmpackage to fail when building a package that uses Lucene as a dependency.
Version-Release number of selected component (if applicable): lucene-2.9.4-8.fc17.noarch
How reproducible: Always
Steps to Reproduce: 1. grep "<version>@version@</version>" *lucene*.pom | wc -l 2. Attempt to build clucy (https://github.com/weavejester/clucy) using the attached POM file
Actual results: 1. => 59 2. => fails with
[ERROR] Failed to execute goal on project clucy: Could not resolve dependencies for project clucy:clucy:jar:0.3.0: The following artifacts could not be resolved : org.apache.lucene:lucene-highlighter:jar:latest, org.apache.lucene:lucene-memo ry:jar:@version@: The repository system is offline but the artifact org.apache.l ucene:lucene-highlighter:jar:latest is not available in the local repository. -> [Help 1]
Expected results: 1. => 0 2. => succeeds
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=830762
--- Comment #1 from Michel Alexandre Salim michel+fdr@sylvestre.me --- Created attachment 590906 --> https://bugzilla.redhat.com/attachment.cgi?id=590906&action=edit Patch to lucene spec to fix @version@ instantiation
Patch added that fixes the issue. Please review; I can commit and do updates if you want.
https://bugzilla.redhat.com/show_bug.cgi?id=830762
--- Comment #2 from Michel Alexandre Salim michel+fdr@sylvestre.me --- Note: build is still failing:
[ERROR] Failed to execute goal on project clucy: Could not resolve dependencies for project clucy:clucy:jar:0.3.0: The following artifacts could not be resolved: org.apache.lucene:lucene-highlighter:jar:2.9.4, org.apache.lucene:lucene-memory:jar:2.9.4: The repository system is offline but the artifact org.apache.lucene:lucene-highlighter:jar:2.9.4 is not available in the local repository. -> [Help 1]
let me check the way lucene registers its POMs as well, something might be wrong
https://bugzilla.redhat.com/show_bug.cgi?id=830762
--- Comment #3 from Michel Alexandre Salim michel+fdr@sylvestre.me --- OK, the problem was really that I needed to depend on lucene-contrib -- the @version@ issue is just an annoyance as mvn-rpmbuild really ignores versions. But it's still nice to have a fix, regardless. Build now succeeds.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=830762
Krzysztof Daniel kdaniel@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|akurtako@redhat.com |kdaniel@redhat.com
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=830762
Krzysztof Daniel kdaniel@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |RAWHIDE Last Closed| |2013-03-01 03:39:10
--- Comment #4 from Krzysztof Daniel kdaniel@redhat.com --- Patch release into rawhide. Verified by unpacking built rpms and ensuring find . -name *.pom -exec grep -H @version@ {} ; returned no results.
Thanks for the patch, it's really appreciated!
java-sig-commits@lists.fedoraproject.org