Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: Tomcat subpackages don't have fragments (jars are invisible to maven)
https://bugzilla.redhat.com/show_bug.cgi?id=773009
Summary: Tomcat subpackages don't have fragments (jars are invisible to maven) Product: Fedora Version: rawhide Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: tomcat AssignedTo: ivan.afonichev@gmail.com ReportedBy: sochotni@redhat.com QAContact: extras-qa@fedoraproject.org CC: akurtako@redhat.com, java-sig-commits@lists.fedoraproject.org, ivan.afonichev@gmail.com Classification: Fedora Story Points: --- Type: --- Regression: --- Mount Type: --- Documentation: ---
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.