cincheo / jsweet-quickstart

A template project to start with JSweet Java to TypeScript transpiler.
Apache License 2.0
17 stars 9 forks source link

NodeList nodeList = document.getElementsByTagName("body"); #7

Closed keithphw closed 4 years ago

keithphw commented 4 years ago

Hi, I noticed that this line throws an unusual error:

NodeList nodeList = document.getElementsByTagName("body");

It throws the error if I copy it into the quickstart project. Below is the full code and output. Thanks for your work on this great project. Cheers, Keith

package quickstart;

import static def.dom.Globals.alert;
import static def.dom.Globals.document;
import def.dom.NodeList;
import static def.jquery.Globals.$;

import java.util.ArrayList;
import java.util.List;

import def.js.Array;

/**
 * This class is used within the webapp/index.html file.
 */
public class QuickStart {

    public static void main(String[] args) {

        NodeList nodeList = document.getElementsByTagName("body");
        // you can use regular Java API
        List<String> l = new ArrayList<>();
        l.add("Hello");
        l.add("world");
        // and you can also use regular JavaScript APIs
        Array<String> a = new Array<>();
        a.push("Hello", "world");
        // use of jQuery with the jQuery candy
        $("#target").text(l.toString());
        // use of the JavaScript DOM API
        alert(a.toString());
    }

}

C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart>mvn generate-sources -offline -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jsweet:jsweet-quickstart:jar:3.0.0-RC2
[WARNING] 'version' contains an expression but should be a constant. @ org.jsweet:jsweet-quickstart:${jsweet.transpiler.version}, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\pom.xml, line 6, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] --------------------< org.jsweet:jsweet-quickstart >--------------------
[INFO] Building JSweet quick start 3.0.0-RC2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- jsweet-maven-plugin:3.0.0-RC2:jsweet (generate-js) @ jsweet-quickstart ---
[INFO] maven version: 3.6.3
[INFO] JSweet transpiler version 3.0.0-RC2 (build date: 2020-04-04 11:49:41)
[INFO] dependencies=[Dependency {groupId=org.jsweet, artifactId=jsweet-core, version=6.0.2, type=jar}, Dependency {groupId=org.jsweet.candies, artifactId=jquery, version=1.10.0-20170726, type=jar}]
[INFO] candies detection: add project dependency Dependency {groupId=org.jsweet, artifactId=jsweet-core, version=6.0.2, type=jar} => org.jsweet:jsweet-core:jar:6.0.2:compile
[INFO] candies detection: add project dependency Dependency {groupId=org.jsweet.candies, artifactId=jquery, version=1.10.0-20170726, type=jar} => org.jsweet.candies:jquery:jar:1.10.0-20170726:compile
[INFO] all candies artifacts: [org.jsweet:jsweet-core:jar:6.0.2:compile (1; enabled), org.jsweet.candies:jquery:jar:1.10.0-20170726:compile (1; enabled)]
[INFO] candies jars: [C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar, C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar]
[INFO] classpath from maven: C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar;C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar
[INFO] jsOut: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\js
[INFO] bundle: true
[INFO] tsOut: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts
[INFO] tsOnly: null
[INFO] tsserver: null
[INFO] declarations: null
[INFO] ignoreDefinitions: null
[INFO] declarationOutDir: null
[INFO] candiesJsOutDir: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\webapp
[INFO] ecmaTargetVersion: ES6
[INFO] moduleKind: none
[INFO] sourceMap: null
[INFO] sourceRoot: null
[INFO] verbose: true
[INFO] veryVerbose: null
[INFO] jdkHome: C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot
[INFO] factoryClassName: null
[INFO] ignoredProblems: null
[INFO] extraSystemPath: null
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:389 - no configuration file found at C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweetconfig.json
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:494 - creating transpiler version 3.0.0-RC2 (build date: 2020-04-04 11:49:41)
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:496 - current dir: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\.
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:497 - base directory: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:498 - working directory: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\.jsweet
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:499 - tsOut: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts - C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:500 - jsOut: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\js - C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\js
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:501 - candyJsOut: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\webapp
2020-05-10 14:23:26.026 INFO  JSweetTranspiler:502 - factory: org.jsweet.transpiler.JSweetFactory@46c3a14d
2020-05-10 14:23:26.026 DEBUG JSweetTranspiler:503 - compile classpath: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweet_extension;C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar;C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar
2020-05-10 14:23:26.026 DEBUG JSweetTranspiler:504 - runtime classpath: C:\Program Files\apache-maven-3.6.3\bin\..\boot\plexus-classworlds-2.6.0.jar
2020-05-10 14:23:26.026 DEBUG JSweetTranspiler:505 - extension directory: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweet_extension
2020-05-10 14:23:26.026 INFO  CandyProcessor:123 - candies processor classpath: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweet_extension;C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar;C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar
2020-05-10 14:23:26.026 INFO  CandyProcessor:141 - extracted candies directory: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\webapp
[INFO] source includes: {}
[INFO] source excludes: {}
[INFO] sources paths: [C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java]
[INFO] sources paths from resources: [C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java]
[INFO] sourceFiles=[C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java\quickstart\QuickStart.java]
2020-05-10 14:23:26.026 DEBUG ProcessUtil:66 - extra path:
2020-05-10 14:23:26.026 INFO  CandyProcessor:226 - 2 candies found in classpath
2020-05-10 14:23:26.026 INFO  CandyProcessor:163 - candies are up to date
2020-05-10 14:23:26.026 DEBUG JavaCompilationComponents:102 - charset: windows-1252
2020-05-10 14:23:26.026 DEBUG JavaCompilationComponents:103 - strict mode: false
2020-05-10 14:23:26.026 INFO  JavaCompilationComponents:114 - creating JavaCompiler task with options: JavaCompilerOptions: [--module-path, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweet_extension;C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar;C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar, -cp, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\jsweet_extension;C:\Users\keith\.m2\repository\org\jsweet\jsweet-core\6.0.2\jsweet-core-6.0.2.jar;C:\Users\keith\.m2\repository\org\jsweet\candies\jquery\1.10.0-20170726\jquery-1.10.0-20170726.jar, -Xlint:path, -encoding, windows-1252]
2020-05-10 14:23:27.027 DEBUG JSweetTranspiler:992 - ordered compilation units: [C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java\quickstart\QuickStart.java]
2020-05-10 14:23:27.027 DEBUG JSweetTranspiler:995 - count: 1 (initial), 1 (ordered)
2020-05-10 14:23:27.027 DEBUG JSweetTranspiler:1003 - permutation: 0=0;
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:1047 - scanning C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java\quickstart\QuickStart.java...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jsweet.transpiler.util.Util$JavacInternals (file:/C:/Users/keith/.m2/repository/org/jsweet/jsweet-transpiler/3.0.0-RC2/jsweet-transpiler-3.0.0-RC2.jar) to field com.sun.tools.javac.model.JavacTypes.types
WARNING: Please consider reporting this to the maintainers of org.jsweet.transpiler.util.Util$JavacInternals
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:1070 - creating bundle file: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts\bundle.ts
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:1120 - created C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts\bundle.ts
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:1070 - creating bundle file: C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts\bundle.d.ts
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:1120 - created C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts\bundle.d.ts
2020-05-10 14:23:27.027 INFO  JSweetTranspiler:800 - ts2js on org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler@77c1e611 sourceFiles=1
2020-05-10 14:23:27.027 DEBUG TypeScript2JavaScriptWithTscTranspiler:33 - ts2js with TSC: [C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts\bundle.ts, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\.jsweet\candies\typings\META-INF\resources\typings\jquery\1.10.0-20170726\bundle.d.ts]
2020-05-10 14:23:27.027 INFO  TypeScript2JavaScriptWithTscTranspiler:80 - launching tsc...
2020-05-10 14:23:27.027 DEBUG ProcessUtil:288 - run command: C:\Users\keith\.jsweet-node_modules\tsc.cmd --target ES6 --moduleResolution classic --experimentalDecorators --emitDecoratorMetadata --rootDir C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts --outDir C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\js .tsc-rootfile.ts bundle.ts ..\..\.jsweet\candies\typings\META-INF\resources\typings\jquery\1.10.0-20170726\bundle.d.ts
2020-05-10 14:23:27.027 DEBUG ProcessUtil:303 - started [C:\Users\keith\.jsweet-node_modules\tsc.cmd, --target, ES6, --moduleResolution, classic, --experimentalDecorators, --emitDecoratorMetadata, --rootDir, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\ts, --outDir, C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\target\js, .tsc-rootfile.ts, bundle.ts, ..\..\.jsweet\candies\typings\META-INF\resources\typings\jquery\1.10.0-20170726\bundle.d.ts]
2020-05-10 14:23:29.029 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - bundle.ts(9,17): error TS2739: Type 'HTMLCollectionOf<HTMLBodyElement>' is missing the following properties from type 'NodeList': forEach, entries, keys, values
2020-05-10 14:23:29.029 ERROR output:55 - type 'HTMLCollectionOf<HTMLBodyElement>' is missing the following properties from type 'NodeList': forEach, entries, keys, values at C:\Users\keith\Desktop\BackupManual\JavaFiles\jsweet-quickstart\src\main\java\quickstart\QuickStart.java(20)
2020-05-10 14:23:29.029 INFO  JSweetTranspiler:784 - transpilation process finished in 2814 ms
> java2ts: 774.1069ms
> ts2js: 1985.1495ms

[ERROR] transpilation failed
org.apache.maven.plugin.MojoFailureException: transpilation failed with 1 error(s) and 0 warning(s)
    at org.jsweet.AbstractJSweetMojo.transpile (AbstractJSweetMojo.java:618)
    at org.jsweet.JSweetMojo.execute (JSweetMojo.java:43)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.147 s
[INFO] Finished at: 2020-05-10T14:23:29+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:3.0.0-RC2:jsweet (generate-js) on project jsweet-quickstart: transpilation failed: transpilation failed with 1 error(s) and 0 warning(s) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jsweet:jsweet-maven-plugin:3.0.0-RC2:jsweet (generate-js) on project jsweet-quickstart: transpilation failed
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: transpilation failed
    at org.jsweet.AbstractJSweetMojo.transpile (AbstractJSweetMojo.java:632)
    at org.jsweet.JSweetMojo.execute (JSweetMojo.java:43)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoFailureException: transpilation failed with 1 error(s) and 0 warning(s)
    at org.jsweet.AbstractJSweetMojo.transpile (AbstractJSweetMojo.java:618)
    at org.jsweet.JSweetMojo.execute (JSweetMojo.java:43)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
keithphw commented 4 years ago

Oops, I just realised that i posted this in the quickstart rather than normal jsweet issue tracker. Apologies. I'll move it.