Antoine DESSAIGNE created SM-5530:
-------------------------------------

             Summary: OSGi bundles for spring-jms 5.x ask for unneeded 
dependencies
                 Key: SM-5530
                 URL: https://issues.apache.org/jira/browse/SM-5530
             Project: ServiceMix
          Issue Type: Improvement
          Components: bundles
            Reporter: Antoine DESSAIGNE


Hello,

I just noticed that OSGi bundles for spring-jms 5.x ask for unneeded 
dependencies.

For instance, a dependency tree on 5.3.7 gives
{noformat}
\- org.springframework:spring-jms:jar:5.3.27:compile
   +- org.springframework:spring-beans:jar:5.3.27:compile
   +- org.springframework:spring-core:jar:5.3.27:compile
   |  \- org.springframework:spring-jcl:jar:5.3.27:compile
   +- org.springframework:spring-messaging:jar:5.3.27:compile
   \- org.springframework:spring-tx:jar:5.3.27:compile
{noformat}

Previously, it was
{noformat}
\- org.springframework:spring-jms:jar:4.3.20.RELEASE:compile
   +- org.springframework:spring-aop:jar:4.3.20.RELEASE:compile
   +- org.springframework:spring-beans:jar:4.3.20.RELEASE:compile
   +- org.springframework:spring-context:jar:4.3.20.RELEASE:compile
   |  \- org.springframework:spring-expression:jar:4.3.20.RELEASE:compile
   +- org.springframework:spring-core:jar:4.3.20.RELEASE:compile
   |  \- commons-logging:commons-logging:jar:1.2:compile
   +- org.springframework:spring-messaging:jar:4.3.20.RELEASE:compile
   \- org.springframework:spring-tx:jar:4.3.20.RELEASE:compile
{noformat}

You can see that {{spring-aop}}, {{spring-context}}, {{spring-expression}} are 
no longer needed.

By looking at the manifest of 5.3.25_1 we can see in {{ImportPackage}} that 
{{spring-aop}} and {{spring-context}} are here but optional (are they really 
used?) but {{spring-expression}} is not marked as optional
{noformat}
org.springframework.aop.framework;version="[5.3.25,5.4)";resolution:=optional
org.springframework.aop.support;version="[5.3.25,5.4)";resolution:=optional
org.springframework.context.annotation;version="[5.3.25,5.4)";resolution:=optional
org.springframework.context.event;version="[5.3.25,5.4)";resolution:=optional
org.springframework.context;version="[5.3.25,5.4)";resolution:=optional
org.springframework.expression.spel.standard;version="[5.3.25,5.4)"
org.springframework.expression.spel.support;version="[5.3.25,5.4)"
org.springframework.expression.spel;version="[5.3.25,5.4)"
org.springframework.expression;version="[5.3.25,5.4)"
{noformat}

Can you have a look? Thank you



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to