Build Issue while adding JSOUP to maven project.
Hi All,
I'm trying to add JSOUP to my maven project in order to do that i followed the below steps.
I have read few articles and tried to embed the JSOUP JAR in AEM but its not working.
Could you please provide an step by step instruction for adding 3rd party library (JSOUP) in AEM Maven Project.
Core POM.xml:
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.17.2</version> <scope>provided</scope>
</dependency>
ERROR :
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] com.carrybag:carry-bag.core:1.0.0-SNAPSHOT: Bundle carry-bag.core:1.0.0-SNAPSHOT is importing package(s) [org.jsoup.nodes, org.jsoup, org.jsoup.select] in start level 20 but no bundle is exporting these for that start level. (com.carrybag:carry-bag.all:1.0.0-SNAPSHOT)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Carry Bag 1.0.0-SNAPSHOT:
[INFO]
[INFO] Carry Bag .......................................... SUCCESS [ 0.865 s]
[INFO] Carry Bag - Core ................................... SUCCESS [01:11 min]
[INFO] Carry Bag - UI Frontend ............................ SUCCESS [04:17 min]
[INFO] Carry Bag - Repository Structure Package ........... SUCCESS [ 4.149 s]
[INFO] Carry Bag - UI apps ................................ SUCCESS [ 36.522 s]
[INFO] Carry Bag - UI content ............................. SUCCESS [ 26.174 s]
[INFO] Carry Bag - UI config .............................. SUCCESS [ 1.516 s]
[INFO] Carry Bag - All .................................... FAILURE [01:45 min]
[INFO] Carry Bag - Integration Tests ...................... SKIPPED
[INFO] Carry Bag - Dispatcher ............................. SKIPPED
[INFO] Carry Bag - UI Tests ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:30 min
[INFO] Finished at: 2024-04-06T22:00:07+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.4.10:project-analyse (aem-analyser) on project carry-bag.all: One or more feature analyser(s) detected feature error(s), please read the plugin log for more details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :carry-bag.all


