Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10691

mvn sonar:sonar (Java 11) fails for many modules, "Unable to create javax script engine for javascript"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      This error at https://ci-builds.apache.org/job/Sling/view/Monitor/job/modules/job/sling-maven-launchpad-plugin/job/master/56/console seems to be common to many of our modules, for which mvn sonar:sonar fails on Jenkins:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run
      (set-bundle-required-execution-environment) on project maven-launchpad-plugin:
      An Ant BuildException has occured:
      Unable to create javax script engine for javascript
      [ERROR] around Ant part ...
      <script language="javascript">var System = java.lang.System;... @ 4:33
      in /home/jenkins/workspace/ng-maven-launchpad-plugin_master/target/antrun/build-main.xml
      ...
      Marking build unstable due to mvn sonar:sonar failing. See https://cwiki.apache.org/confluence/display/SLING/SonarCloud+analysis for more info.
      

      Running mvn help:effective-pom on the {{}} module which is also failing shows the below code which is apparently the culprit.

              <execution>
                  <id>set-bundle-required-execution-environment</id>
      ...
                    <target>
                      <script language="javascript">var System = java.lang.System;
                                          var bree = "JavaSE-1.6";
       ...
      

      This looks related to MANTRUN-200 and those builds have been failing for a while, https://ci-builds.apache.org/job/Sling/view/Monitor/job/modules/job/sling-org-apache-sling-jcr-jcr-wrapper/job/master/47/ from June 8 for example has the same problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: