Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Cannot resolve dependency for Microsoft service bus


Level 2


I have added following dependency to my pom.xml -







Build is successful, but bundle says cannot resolve it. So, I added it to export package -




now it resolves the service-bus dependency, but there are several other dependencies that bundle can't resolve, example - -- Cannot be resolved -- Cannot be resolved -- Cannot be resolved -- Cannot be resolved

io.netty.handler.codec.http,version=[4.1,5) -- Cannot be resolved


If I add all these dependencies, some in export package/import-package it resolves all but local instance is extremely slow and crashes.Is there better way to add the dependencies required for azure service-bus ?

Thank You!

2 Replies


Employee Advisor

As far as I can check, there is no appropriate bundle exists to use in OSGi specific application. There are other ways to solve this issue.

  • Create a web service (pure standalone java application) and post require details to web service rather handling at AEM site.
  • Use maven embed dependencies concept to embed third-party jars[1] into your bundle and make third-party classes to available at the runtime.  More info at [1]

[1] Embedding third party jar into bundle


Level 2

Thank you! Approach #2 may work for local instance, but for other environments (Dev,QA etc) do I have to add jar to each environment ?