I am getting following error in aem bundles
com.microsoft.aad.msal4j,version=[1.14,2) -- Cannot be resolved
com.microsoft.graph.models -- Cannot be resolved
I have added following instructions, however my issue is still not resolved
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>
com.microsoft.aad.msal4j;version="[1.14,2)",
com.microsoft.graph.models</Import-Package>
<Export-Package>
com.microsoft.aad.msal4j
</Export-Package>
<Embed-Dependency>
msal4j
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
</plugin>
Error log reveals
07.03.2024 22:38:29.068 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer TaskResource(url=jcrinstall:/apps/xxxx/xxxxx-ui.content-1.0.0-SNAPSHOT.zip, entity=content-package:com.fidelity.assets:aem-assets-development.ui.content, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:55:71:73:15:2091:, package-id=xxxxx.ui.content:1.0.0-SNAPSHOT, Bundle-Version=1.0.0.SNAPSHOT], digest=1709869108283): content package installed
07.03.2024 22:38:29.068 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundlexxx.core [642]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve xxx.core [642](R 642.15): missing requirement xxx.core [642](R 642.15)] osgi.wiring.package; (&(osgi.wiring.package=com.microsoft.aad.msal4j)(version>=1.14.0)(!(version>=2.0.0))) Unresolved requirements: [[xxx.core [642](R 642.15)] osgi.wiring.package; (&(osgi.wiring.package=com.microsoft.aad.msal4j)(version>=1.14.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
a[org.apache.sling.installer.core:3.12.0]
07.03.2024 22:38:29.080 *INFO* [OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle xxx.core [642]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve xxx.core [642](R 642.15): missing requirement [xxx.core [642](R 642.15)] osgi.wiring.package; (&(osgi.wiring.package=com.microsoft.aad.msal4j)(version>=1.14.0)(!(version>=2.0.0))) Unresolved requirements: [[xxxxt.core [642](R 642.15)] osgi.wiring.package; (&(osgi.wiring.package=com.microsoft.aad.msal4j)(version>=1.14.0)(!(version>=2.0.0)))]
a
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi,
You need to wrap the external bundle into your bundle so that it can be deployed altogether. Please follow this article, which explains what you need to do: https://www.linkedin.com/pulse/how-add-third-party-bundle-you-aem-package-veena-vikraman/
Hope this helps
@ddadfdsf Did you find the suggestion from user helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes