【发布时间】:2016-12-06 14:24:34
【问题描述】:
我已将小型应用程序从 Grails 2.2 升级到 Grails 3.2.3。解决编译问题后,一切看起来都正常,但 bootRun 失败并且没有明显的原因。
我的build.gradle:
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repository.jboss.com/maven2/" }
maven { url "http://repo1.maven.org/maven2/" }
maven { url "http://repo.spring.io/milestone/" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.11.6"
classpath "org.grails.plugins:hibernate5:6.0.4"
}
}
version "0.1"
group "testmonitor"
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.grails-gsp"
apply plugin:"asset-pipeline"
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repository.jboss.com/maven2/" }
maven { url "http://repo1.maven.org/maven2/" }
maven { url "http://repo.spring.io/milestone/" }
}
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-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.2.Final"
compile "org.hibernate:hibernate-ehcache:5.1.2.Final"
compile 'org.grails.plugins:spring-security-core:3.1.1'
compile "org.grails.plugins:quartz:2.0.1"
compile 'org.grails:grails-datastore-rest-client'
profile "org.grails.profiles:web"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.6"
runtime "com.h2database:h2"
compile 'org.apache.commons:commons-math3:3.6.1'
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1'
compile 'net.sf.opencsv:opencsv:2.3'
console "org.grails:grails-console"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.6"
runtime 'mysql:mysql-connector-java:5.1.29'
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
}
bootRun {
jvmArgs = ['-Dspring.output.ansi.enabled=always']
}
assets {
minifyJs = true
minifyCss = true
}
gradle --debug 的日志(这里看不到任何问题)可以下载from Sharepoint。
我使用 IntelliJ IDEA 2016.3,当我运行 grails run-app 时,我得到了相同的结果。我找不到日志/信息 grails 命令的任何选项。 [运行 grails run-app][1]
更新:现在grails run-app 似乎没问题,但返回了 htpp 404。
【问题讨论】:
-
你能发布你得到的错误吗?
-
我将您的
build.gradle复制到您的问题中。我们不应该下载任何文件来理解您的要求。如果您选择一个代码块并单击{}按钮或按 Ctrl+K,它将缩进四个空格,这告诉 Stack Overflow 将其视为代码。有关格式化的更多帮助,请参阅stackoverflow.com/help/formatting。我还更清楚地表明您的日志文件是下载文件。 -
非常感谢,我着急了:(
-
我想发布错误,但我看不到任何错误。我发布了完整的日志,但我是盲人或没有致命错误。
-
grails run-app怎么样?这个命令是不是什么都不做?
标签: grails