Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Maven compilation Error - SCR plugin error

Avatar

Level 2

we are getting compilation error - Got unexpected exception while analyzing:org.apache.felix.scrplugin.SCRDescriptorException: Unable to load compiled class

 

[ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin: 4.2.1:manifest (generate-osgi-metadata-for-unittests) on project : Error(s) found in manifest configuration

 

If anybody faced same problem and resolved it or have any idea of resolution, would be helpful.

(I am using  scrplugin version - 1.24.0)

 

Thanks,

Manisha

4 Replies

Avatar

Community Advisor

Are you using Java 11 or java 8? It seems the maven-scr-plugin that you are using is not being supported by Java that you are using. Latest version of maven-scr-plugin supports java11 and if you are using java 11 try moving to latest version of maven-scr-plugin which is 1.26.4

Avatar

Community Advisor

Can you share more details like Java, maven archetype, and maven versions?

Avatar

Community Advisor

Try updating the maven-scr-plugin version to the latest one