问题标签 [gretty]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
326 浏览

gradle - 为 libGDX 构建 html 项目时出现错误

我正在用 gradle 构建一个 html libGDX 项目。

命令后:

我收到此错误消息:

0 投票
0 回答
76 浏览

spring-boot - Spring boot 测试失败 - gradle wrapper build - 添加插件 gretty 和 google app 引擎时

我试图创建战争文件并添加谷歌应用引擎工件

gradlew clean build曾经在谷歌和 gretty artifacts 之前工作得很好

但添加后

集成测试失败并出现错误:

引起:org.springframework.context.ApplicationContextException:无法启动Web服务器;嵌套异常是 org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean。在 org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161)

如果我申请spring.main.web-application-type=none ,那么它会说端口问题

引起:java.lang.IllegalArgumentException:无法在 org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178) 中解析值“${local.server.port}”中的占位符“local.server.port”

所以看来 spring.main.web-application-type=none 不行

我在我的 build.gradle 中使用它

请问你能帮忙解决这个问题吗?

注意:我可以毫无问题地从 eclipse 运行测试,但从命令提示符失败

我的测试看起来像

注意:这是一个多模块项目,构建运行是从父项目文件夹触发的

0 投票
1 回答
55 浏览

gradle - 从 gretty 3.0.1 升级到 3.0.7 导致错误无法获取未知属性“mainClass”

我目前正在运行 gradle 版本 5.6.4。当尝试将我们的 gretty 依赖项从 3.0.1 升级到 3.0.5 或 3.0.7 时,我遇到了这个错误,没有其他信息:

0 投票
0 回答
22 浏览

java - gretty appRun 在哪里找到要运行的主类?

我正在尝试将我的应用程序部署到云中,每次尝试时,我都会收到一条错误消息,提示没有主清单属性。我的应用程序没有主要方法,只有一些配置、控制器、模型和 DAO。我正在使用 Gradle 和一些 Spring 框架,如 JDBC、webmvc、orm 等。当我在 IntelliJ 本地单击 gretty appRun 方法时,它可以完美运行,但是当我尝试部署到云时,它会将其转换为 jar 文件并尝试执行它,但它不能,因为它没有主要的清单属性,我怎么能继续解决这个问题?