Issue with Import Packages in OSGi Container
- October 27, 2015
- 2 replies
- 1207 views
Hi Friends,
I have created a AEM project using maven Archetype process. I have an event listener component in that project which will listen to "Activate" event when a user tries to publish/replicate the content from author to publish server. As part of that event I have a requirement to import the below package.
com.emc.esu.api.* (emcesuapi-1.4.1.jar).
Corresponding <dependency> for the same in both parent and child pom.xml files
<dependency>
<groupId>com.emc.esu</groupId>
<artifactId>emcesuapi</artifactId>
<version>1.4.1</version>
</dependency>
I could see the jars under Maven Dependencies folder after I give its dependency tag in POM. But in the osgi container under Import Packages section. It says
~com.emc.esu.api -- Cannot be resolved
com.emc.esu.api.rest -- Cannot be resolved
{Also attached the message.}
If I don't use this package, my listener code works perfectly fine. It listens to "Activate" event a logs a message.
Additional info just an FYI: The above packages are related to Atmos browser that will help us to upload the content created in AEM to the cloud. Currently the listener will log a message and as a next step I am trying to upload the content to cloud using those packages. Please note that I don't have entire code that uploads the content to cloud, I am just creating an object. That's all.
Let me know, if you have any questions.
Thanks