javamaven-3aemaem-6maven-bundle-plugin

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


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.


Solution

  • 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.