AEM-6.3 build failing with Java-1.8.0_211 and Maven-3.3.9

436 Views Asked by At

I created project using archetype-12 for AEM-6.3 referring here.

Also tried to compile projects from github like aem-simple

Getting following errors,

[INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ AEMMaven12.core ---
[WARNING] Error injecting: org.apache.felix.bundleplugin.BundlePlugin
java.lang.NoClassDefFoundError: aQute/bnd/osgi/Analyzer

Tried changing Java-1.8.. minor versions and also tried with different maven versions above 3.2.

3

There are 3 best solutions below

0
GuillaumeCleme On BEST ANSWER

What Maven goals are you running? Can you confirm that Maven is downloading the dependency to your ~/.m2 folder when running mvn clean install? You may want to clean out your ~/.m2 folder to ensure you do not have stale or corrupted dependencies.

4
GuillaumeCleme On

I vaguely remember running into the same issue. If I am not mistaken, version 12 of the AEM Archetype had this issue. I believe it was fixed in version 13, although you may want to try the latest version (19) from the aem-project-archetype repository

0
Sadistic On

The dependency is missing in the pom. Add the required dependency in pom and check if the same jar is downloaded in the m2. Many times due to proxies prevent from downloading the jars. Hope this helps.