Bug 773009 - Tomcat subpackages don't have fragments (jars are invisible to maven)
Summary: Tomcat subpackages don't have fragments (jars are invisible to maven)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ivan Afonichev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-10 16:40 UTC by Stanislav Ochotnicky
Modified: 2012-01-30 20:55 UTC (History)
3 users (show)

Fixed In Version: tomcat-7.0.25-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-30 20:55:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stanislav Ochotnicky 2012-01-10 16:40:15 UTC
Description of problem:
Tomcat spec correcly uses add_to_maven_depmap macros, but generated fragments (%{depmapfragdir}/%{name}) are all included in main package. 

Fragments should be placed in a subpackage that contains given jar/pom file. I.e. tomcat-libs should contain fragments for all jars placed into tomcat-libs subpackage. With new style macro you can do it like this:

add_maven_depmap XXX.pom XXX.jar -f "fragment-suffix"

This will put generated fragment into %{depmapfragdir}/%{name}-fragment-suffix so it can be included in appropriate subpackage.

Without this change package that would normally only require tomcat-libs (or other subpackage) have to require whole tomcat package.

If more information is needed, feel free to ask.

Comment 1 Stanislav Ochotnicky 2012-01-10 16:50:30 UTC
Same thing for the pom files. Basically pom, jar and fragments must always be in the same (sub)package or at least require package that pulls in the others, otherwise the whole thing doesn't work

Comment 2 Fedora Update System 2012-01-22 18:30:57 UTC
tomcat-7.0.25-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/tomcat-7.0.25-2.fc16

Comment 3 Fedora Update System 2012-01-22 22:55:44 UTC
Package tomcat-7.0.25-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat-7.0.25-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0805/tomcat-7.0.25-2.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-01-30 20:55:00 UTC
tomcat-7.0.25-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.