java运行构建失败或成功取决于以前的构建
我目前正在与Oracle(H2用于单元测试)、Maven、Git、Spring boot和其他一些框架一起用Java编写一个项目。假设我的项目有以下提交结构
commit A
|
commit B
|
commit C
|
commit D
|
commit E <- HEAD
Commit E构建很好,但在IntelliJ中运行时,应用程序无法启动并显示错误消息
***************************
APPLICATION FAILED TO START
***************************
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
Process finished with exit code 1
通过签出,我会备份我的历史记录(E、D、C、B、A),直到找到一个按预期运行的提交。这似乎是一个承诺
commit A <- HEAD
|
commit B
|
commit C
|
commit D
|
commit E
现在,当我再次运行我的历史记录(A、B、C、D、E)时,所有的构建都会按预期运行,直到我再次到达提交F,在那里它无法启动
我对中间提交(B、C、D)的成功与否感到困惑,这取决于它们之前的构建。有人能解释一下这种行为吗
# 1 楼答案
似乎是IntelliJ本身的问题。我卸载了它,下载并安装了新版本。现在,它可以毫无问题地运行最后一次提交