コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

AEM 6.5.2 compilation errors with JDK 11

Avatar

Level 2

Hi -

We are getting Code compilation errors as Failed to execute goal org.apache.felix:maven-scr-plugin:1.25.0:scr (generate-scr-scrdescriptor)

when we compile our code with JDK 11 for AEM 6.5.2 upgrade.

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

[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.25.0:scr (generate-scr-scrdescriptor) on project <????>

(Class file format probably not supported by ASM ?): Ille

galArgumentException -> [Help 1]

1 受け入れられたソリューション

Avatar

正解者
Employee Advisor

From what I see, the latest version of the maven-scr-plugin should support Java 11.

元の投稿で解決策を見る

3 返信

Avatar

Employee

Could you please verify whether the source and the target compilers are using jdk11 or auto setting, in your IDE and also that the machine shows the latest version of Java (11) as installed by checking the java version on it?

In AEM, you can check & set the compilers by following the below steps:

In http://<host>:<port>/system/console/configMgr, open Apache Sling Java Script Handler, and set Source & Target VMs to auto or to some jdk 11 version.

Hope it helps.

Avatar

Employee

This issue seems to be coming from the maven-scr-plugin. By moving to Java 11, the class files that you create will be compiled to Java 11 byte code. The maven-scr-plugin then has to scan this byte code to find the annotations that are applied to it. You may need to find the maven-scr-plugin that supports Java 11.

I found a few relevant links that contain the hotfixes/workarounds and could be helpful:

* https://github.com/headwirecom/aem-ide-tooling-4-intellij/issues/20

* https://stackoverflow.com/questions/53086179/maven-src-plugin-java-11-unable-to-scan-class-files

* https://wso2.org/jira/browse/CARBON-15369

I also found out that the latest version of maven-scr-plugin is 1.26.2. It could be possible that this latest version of the plugin has support for Java 11.

Maven Repository: org.apache.felix » maven-scr-plugin » 1.26.2

Avatar

正解者
Employee Advisor

From what I see, the latest version of the maven-scr-plugin should support Java 11.