When Js = true, compilation fails (problem doesn't occurs when js = fasle)
When is JS enable in this configuration :
ModelGengenerate${metamodel.ecore}truetruefalsetrue
Compilation fails :
Check Aspect completeness
Launching model generation
Done with model generation
Start Kotlin compilation ....
ERROR: /Users/Aymeric/Documents/dev_PCM/pcm-scrapper/org.diverse.pcm-model/target/generated-sources/kmf/kpcmmm/factory/DefaultKPCMMMTransactionManager.kt: (26, 36) Unresolved reference: Random
ERROR: /Users/Aymeric/Documents/dev_PCM/pcm-scrapper/org.diverse.pcm-model/target/generated-sources/kmf/kpcmmm/factory/DefaultKPCMMMTransactionManager.kt: (57, 36) Unresolved reference: Random
[ERROR]
java.lang.Exception: Embedded Kotlin compilation error !
at org.kevoree.modeling.kotlin.generator.RootGenerator.execute(RootGenerator.java:250)
at org.kevoree.modeling.kotlin.generator.mavenplugin.GenModelPlugin.execute(GenModelPlugin.java:179)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
When Js = true, compilation fails (problem doesn't occurs when js = fasle)
When is JS enable in this configuration :