Open marsdonne opened 6 years ago
@marsdonne Please provide a sample project
@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
What went wrong: Execution failed for task ':server:ngGenerateAll'.
Process 'command 'C:\Program Files\Java\jdk8\bin\java.exe'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error | Command [ngGenerateAll] error: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.4.1-bin.zip'. (Use --stacktrace to see the full trace)
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 >_<