You can look at how Commons Text builds, basically, JavaScript (Nashorn)
was removed from the JRE, so you have to add a JS engine like GraalVM.

Gary

On Tue, Dec 13, 2022, 04:01 Alex Herbert <alex.d.herb...@gmail.com> wrote:

> On Tue, 13 Dec 2022 at 01:05, Gilles Sadowski <gillese...@gmail.com>
> wrote:
> >
> > Hello.
> >
> > Running
> > $ JAVA_HOME=~/java/jdk/oracle/jdk1.8.0_333 mvn
> commons-build:download-page
> > [...]
> > [INFO] BUILD SUCCESS
> > [...]
> >
> > Running
> > $ JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ mvn
> commons-build:download-page
> > [...]
> > [ERROR] Failed to execute goal
> > org.apache.commons:commons-build-plugin:1.12:download-page
> > (default-cli) on project commons-math4-core: Failed to execute:
> > Executing Ant script: generate-xdocs.build.xml [download-page]: Failed
> > to execute.: The following error occurred while executing this line:
> > [ERROR] /tmp/plexus-ant-component18328128830526809687.build.xml:215:
> > Unable to create javax script engine for javascript
> > [...]
>
> I did not find a solution for this when doing the latest releases. I
> put this note in the release notes doc:
>
> Note: This command presently requires Java 8.
>
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>

Reply via email to