Maven Builds with external command (sencha) not working with scancentral 24.2.x based on JDK17

Hi,

in our projects we are using scancentral client 24.2.0 version. This version requires JDK17 - but our application is based on JDK11.

So we set JAVA_HOME to JDK11 location (opt/jdk11) and SCANCENTRAL_JAVA_HOME to JDK17 location (opt/jdk17)

This is working than for Maven projects - but we also have Maven projects that build the UI with Sencha (7.x) version.

The "sencha" command is started by the maven-exec-plugin

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>sencha-compile</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>true</skip>
<executable>${sencha.cmd}</executable>
<workingDirectory>${project.basedir}/src/main</workingDirectory>
<arguments>
<argument>app</argument>
<argument>build</argument>
<argument>--archive</argument>
<argument>${project.build.outputDirectory}</argument>
<argument>--destination</argument>
<argument>${project.build.outputDirectory}/META-INF/resources</argument>
<argument>production</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>sencha-clean</id>
<phase>clean</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>true</skip>
<executable>${sencha.cmd}</executable>
<workingDirectory>${project.basedir}/src/main</workingDirectory>
<arguments>
<argument>app</argument>
<argument>clean</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>

- and stops immediately with the error

/home/jenkins/agent/workspace/my-viewer/Nightly-master/myviewer-gui/src/main/.sencha/app/init-impl.xml:19: Unable to create javax script engine for javascript

It looks like scancentral is somehow not passing JAVA_HOME properly? Any ideas to this or how to workaround this issue?

All our projects based on JDK11 with Sencha cannot be updated to scancentral 24.2.x client.
Thx for any ideas !

Torsten