Граальс запустить проектJAVA

Программисты JAVA общаются здесь
Anonymous
Граальс запустить проект

Сообщение Anonymous »

Я установил Grails 4.1.1 и запустил эту команду Grails run-app < ​​/code>, давая мне ошибку, как это:
| Ошибка не удалось скомпилировать GenerateAsynccontroller.grovy: org/codehaus/groovy/ast/nodemetaDatahandler (используйте -stacktrace, чтобы увидеть полную трассу)
| Произошла ошибка ошибки, используя CLI Grails: null (используйте - -stacktrace, чтобы увидеть полную трассу) < /em>.
my Gradle версия 6.0.1 и Groovy версия 2.5.14.
my build.gradle файл : < /p>
buildscript {
ext {
// grailsVersion = project.grailsVersion
// grailsVersion = '5.0.0'
grailsVersion = '4.1.1'
// gormVersion = '7.3.0'
gormVersion = '7.0.5'
}

repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo.grails.org/grails/core" }
maven { url 'https://repo.grails.org/grails/plugins' }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:7.0.5"
classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.2.4"
}
// dependencies {
// classpath "org.grails:grails-gradle-plugin:$grailsVersion"
// classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.3"
// classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
// // classpath "org.grails.plugins:views-gradle:1.1.0.M2"
// classpath "org.grails.plugins:views-gradle:1.2.7"
// classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.15.RELEASE"

// }
}

version "0.1"
group "shopizerserver"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"asset-pipeline"
// apply plugin:"org.grails.plugins.views-json"
apply plugin:"org.grails.grails-gsp"

ext {
// grailsVersion = project.grailsVersion
grailsVersion = '5.0.0'
gradleWrapperVersion = '6.0.1'
// gradleWrapperVersion = project.gradleWrapperVersion
gradleWrapperVersion = gradleWrapperVersion
}

repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo.grails.org/grails/core" }
maven { url 'https://repo.grails.org/grails/plugins' }
// maven { url "http://dl.bintray.com/stefanogualdi/plugins" }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
compile "org.grails:grails-plugin-databinding"
compile "org.grails:grails-plugin-i18n"
compile "org.grails:grails-plugin-services"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails:grails-plugin-interceptors"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:async"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:events"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.5.Final"
compile "org.hibernate:hibernate-ehcache:5.1.5.Final"
compile "org.grails.plugins:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
runtime "org.glassfish.web:el-impl:2.1.2-b03"
runtime "org.apache.tomcat:tomcat-jdbc"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.14.3"
runtime 'org.postgresql:postgresql:9.4-1201-jdbc41'
compile "org.grails.plugins:views-json"
compile "org.grails.plugins:views-json-templates"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
testCompile "org.grails.plugins:geb:1.1.2"
testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:2.47.1"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"

compile "org.grails.plugins:ajax-tags:1.0.0"
compile 'org.imgscalr:imgscalr-lib:4.1'
compile 'org.grails.plugins:quartz:2.0.0'
compile 'org.grails.plugins:http-builder-helper:1.0.2'
compile 'org.grails.plugins:mail:2.0.0.RC6'
compile 'org.apache.httpcomponents:httpclient:4.5.5'
compile 'org.apache.httpcomponents:httpmime:4.5.5'
compile 'org.grails.plugins:cache-headers:2.0.2'

compile 'org.grails.plugins:spring-security-core:3.2.1'
compile "org.grails.plugins:spring-security-rest:2.0.0.RC1"
compile "org.grails.plugins:spring-security-rest-gorm:2.0.0.RC1"

compile 'org.grails.plugins:elasticsearch:2.4.3.MARKETPLACE'
compile 'org.elasticsearch.plugin:mapper-attachments:2.4.6'
compile 'org.elasticsearch:elasticsearch:5.4.3'

compile 'org.grails.plugins:i18n-enums:2.0.2'

compile "org.grails.plugins:grails-spring-websocket:2.4.1"
compile "org.gr8crm.sequence:sequence-generator-starter:0.0.1-SNAPSHOT"
compile "org.jsoup:jsoup:1.12.1"

compile 'org.grails.plugins:browser-detection:3.4.0'
compile 'org.grails.plugins:excel-import:3.0.2'
compile group: 'net.coobird', name: 'thumbnailator', version: '0.4.8'
compile group: 'org.im4java', name: 'im4java', version: '1.4.0'
compile group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
compile group: 'org.json', name: 'json', version: '20080701'
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.11'

}

bootRun {
jvmArgs('-Dspring.output.ansi.enabled=always')
// addResources = true
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}

tasks.withType(Test) {
systemProperty "geb.env", System.getProperty('geb.env')
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
systemProperty "webdriver.chrome.driver", System.getProperty('webdriver.chrome.driver')
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
}

assets {
minifyJs = true
minifyCss = true
enableGzip = true
includes = ["fonts/*"]
}

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}

grails {
pathingJar = true
}

```.
My project structure:
***total 92
drwxrwxr-x 10 ubuntu ubuntu 4096 Feb 24 08:01 .
drwxr-x--- 15 ubuntu ubuntu 4096 Feb 24 08:17 ..
drwxrwxr-x 7 ubuntu ubuntu 4096 Feb 24 08:01 build
> -rwxrwxr-x 1 ubuntu ubuntu 6236 Feb 24 08:00 build.gradle
> -rw-rw-r-- 1 ubuntu ubuntu 94 Feb 24 06:37 .gitignore
drwxrwxr-x 5 ubuntu ubuntu 4096 Feb 24 07:33 .gradle
drwxrwxr-x 3 ubuntu ubuntu 4096 Feb 24 06:37 gradle
> -rw-rw-r-- 1 ubuntu ubuntu 218 Feb 24 07:18 gradle.properties
> -rwxrwxr-x 1 ubuntu ubuntu 5764 Feb 24 07:12 gradlew
> -rwxrw-r-- 1 ubuntu ubuntu 2942 Feb 24 07:12 gradlew.bat
drwxrwxr-x 13 ubuntu ubuntu 4096 Feb 24 06:48 grails-app
> -rwxrw-r-- 1 ubuntu ubuntu 4672 Feb 24 06:37 grailsw
> -rwxrw-r-- 1 ubuntu ubuntu 2375 Feb 24 06:37 grailsw.bat
> -rw-rw-r-- 1 ubuntu ubuntu 5473 Feb 24 06:37 grails-wrapper.jar
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb 24 07:09 lib
> -rw-rw-r-- 1 ubuntu ubuntu 3852 Feb 24 06:37 org_build.gradle
drwxrwxr-x 12 ubuntu ubuntu 4096 Feb 24 06:37 org_grails_app
drwxrwxr-x 5 ubuntu ubuntu 4096 Feb 24 06:37 org_src
drwxrwxr-x 5 ubuntu ubuntu 4096 Feb 24 06:50 src***
Why i got this error. Thanks

< /code>
Grails run-app-stacktrace
| Ошибка не удалось скомпилировать GenerateAsynccontroller.grovy: org/codehaus/groovy/ast/nodemetadatahandler (примечание: трасса стека была отфильтрован. Groovy/ast/nodemetadatahandler
at org.grails.cli.profile.commands.factory.grovyscriptcommandfactory.readcommandfile (grovyscriptcommandfactory.grovy: 50)
at org.grails.cli.profile.commands.factory.groovyscriptcommandfactory.readfile (groovyscompcome.groovyscriptcommandfactory.readcommandfile (groovyscompcome.groovyscriptcompcompcome.readcommandfile. > в org.grails.cli.profile.commands.factory.resourceresolvingcommandfactory.findcommands (resourceresolvingcommandfactory.groovy: 44)
at org.grails.cli.profile.commands.commangistry.findcommands (команд. > в org.grails.cli.profile.commands.commandregistry.findcommands (commandgistry.grovy)
at org.grails.cli.profile.abstractprofile.getCommands (AbstractProfile.groovy: 439)
org.grails.cli.profile.repository.abstractjarprofilerepository $ jarprofile.getcommands (AbstractJarProfilERePository.Groovy: 130)
at org.grails.cli.profile.abstrafile.handlecommand (Abstractprofile.groovy. org.grails.cli.grailscli.handlecommand (grailscli.groovy: 377)
at org.grails.cli.grailscli.handlecommand (grailscli.groovy: 350)
atrg.grails.cli.grailscli. execute (Grailscli.grovy: 271)
at org.grails.cli.grailscli.main (grailscli.groovy: 159)
вызван: java.lang.classnotfoundexception: org.codehaus.groovy.ast.nodemetadatahandler
... еще
| Ошибка не удалось скомпилировать generateAsynccontroller.groovy: org/codehaus/groovy/ast/nodemetadatahandler
| Команда ошибок [run-app] Ошибка: null (Примечание: Trace Stack Trace была отфильтрована. Используйте-verbose, чтобы увидеть весь трассиров .commands.factory.grovyscriptCommandFactory.createCommand (groovyscriptCommandFactory.groovy: 85)
at org.grails.cli.profile.commands.factory.grovyscriptcommandfactory.createcommand (grovyscriptcommandfactory.grovy)
at org.grails.cli.profile.commands.factory.resourceresolvingcommandfactory.findcommands (resourcereSolvingcom.grorvingcommancefortory.findcommands (resourcereSolvingCompory. /> at org.grails.cli.profile.commands.commandregistry.findcommands (CommandGistry.grovy: 86)
at org.grails.cli.profile.commands.commandregistry.findcommands (CommandGistry.Groovy)
в org.grails.cli.profile.abstractprofile.getCommands (AbstractProfile.grovy: 439)
at org.grails.cli.profile.repository.abstractjarprofilerepository $ jarprofile.getcommands (Abstr. org.grails.cli.profile.abstractprofile.handlecommand (AbstractProfile.groovy: 469)
at org.grails.cli.grailscli.handlecommand (Grailscli.grovy: 377)
at org.grails.cli.grailscli.handlecommand (grailscli.grovy: 350)
at org.grails.cli.grailscli.execute (grailscli.groovy: 271)
at org.grails.cli.grailscli. Main (Grailscli.groovy: 159)
| Команда ошибок [Run-App] Ошибка: null < /p>


Подробнее здесь: https://stackoverflow.com/questions/794 ... un-project

Вернуться в «JAVA»