[英]Running build fails or succeeds depending on previous build
我目前正在與Oracle(H2用於單元測試),Maven,Git,Spring boot和其他一些框架一起用Java編寫一個項目。 假設我的項目具有以下提交結構
commit A
|
commit B
|
commit C
|
commit D
|
commit E <- HEAD
提交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),直到找到可以按預期運行的提交。 這似乎是提交A
commit A <- HEAD
|
commit B
|
commit C
|
commit D
|
commit E
現在,當我再次使用歷史記錄(A,B,C,D,E)時,所有構建都按預期運行,直到我再次到達提交F為止,在那里它無法啟動。
我對中間提交(B,C,D)為什么成功或失敗運行感到困惑,這取決於之前的構建。 有人可以對此行為做出解釋嗎?
似乎是IntelliJ本身的問題。 我卸載了它,下載並安裝了新版本。 現在,它可以毫無問題地運行最后一次提交。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.