Reputation: 1039
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.
Upvotes: 0
Views: 477
Reputation: 327
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.
Upvotes: 1
Reputation: 551
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.
Upvotes: 0
Reputation: 327
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
Upvotes: 0