grails-plugins / grails-angular-scaffolding

9 stars 6 forks source link

Unsupported Embedded data in Domain? #8

Open marsdonne opened 6 years ago

marsdonne commented 6 years ago

i got a gradle error: myproject:ngGenerateAllCommand execution error: null my environment: grails 3.3.8 java 8 gradle 4.6 my domain like: class MyDomain { static class MySubCls { //some fields } //some fields MySubCls mySubCls static embedded = ['mySubCls'] }

no embedded data, no error >_<

jameskleeh commented 6 years ago

@marsdonne Please provide a sample project

marsdonne commented 6 years ago

@jameskleeh hi, sample project: https://github.com/marsdonne/test_embedded_data

i got err: "C:\Program Files\Java\jdk8\bin\java" -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=UTF-8 -classpath C:\Users\marsd\AppData\Local\Temp\classpath.jar org.grails.cli.GrailsCli create-domain-class Post --plain-output |Resolving Dependencies. Please wait...

CONFIGURE SUCCESSFUL

Total time: 8.305 secs Download https://repo.grails.org/grails/core/org/grails/profiles/angular/4.1.1/angular-4.1.1.pom Download https://repo.grails.org/grails/core/org/grails/profiles/rest-api/3.3.3/rest-api-3.3.3.pom Download https://repo.grails.org/grails/core/org/grails/profiles/angular/4.1.1/angular-4.1.1.jar Download https://repo.grails.org/grails/core/org/grails/profiles/rest-api/3.3.3/rest-api-3.3.3.jar |Created grails-app/domain/test_embedded_data/Post.groovy |Created src/test/groovy/test_embedded_data/PostSpec.groovy

"C:\Program Files\Java\jdk8\bin\java" -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=UTF-8 -classpath C:\Users\marsd\AppData\Local\Temp\classpath.jar org.grails.cli.GrailsCli ngGenerateAll test_embedded_data.Post --plain-output :server:compileJava NO-SOURCE :server:compileGroovy :server:buildProperties :server:processResources :server:classes :server:findMainClass :server:ngGenerateAllCommand execution error: null FAILED

BUILD FAILED FAILURE: Build failed with an exception.

Total time: 26.121 secs