The following stack trace is written in the error.log file after installing a custom application package. What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two.)
A.
Install the jar in AEM via the curl command "˜curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt'.
B.
Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version.
C.
Create a folder named "deploy" under @AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically.
D.
Go to the project parent pom.xml file and add the dependency with scope "compile" and instruct the bundle plugin to include the dependency in runtime.
E.
Upload the file com.example.customlib-3.8.jar into /apps/<project>/libs folder in CRX DE to make it available for the OSGi bundle.
Answer is B & D
B. Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version.
D. Go to the project parent pom.xml file and add the dependency with scope “compile” and instruct the bundle plugin to include the dependency in runtime.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
chunpin
4 years, 2 months agopgawade
4 years, 6 months ago