windows hapi fhir 安裝問題
黃聖哲
2025/1/22 上午 07:37:10
windows hapi fhir 安裝問題
你好
我目前是使用windows環境安裝hapi fhir
到遇到幾點問題
1.JDK 目線可以下載倒的版本是21但文件是寫17,請問版本會影響嗎?
2.我使用 JDK 21 照步驟繼續安裝,到mvn -Pjetty jetty:run執行完之後出現以下錯誤
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.578 s
[INFO] Finished at: 2025-01-22T07:35:54+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Administrator\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
不知道我有少做什麼步驟,或是哪個環節出錯嗎,謝謝!
智慧健康雲專案辦公室FHIR技術團隊解答
(小河)
2025/1/24 下午 02:29:41
更新
1. 我們已在版本 17 和 21 上進行測試,且在這兩個版本下的 Java 環境中均能成功架設 FHIR 伺服器。 2. 官方已對 hapifhir/hapi-fhir-jpaserver-starter 進行版本更新,舊版的 mvn -Pjetty jetty:run 指令可能無法正常執行。建議使用 mvn spring-boot:run 來啟動伺服器,成功後 HAPI FHIR 伺服器會正常運行在 http://localhost:8080/fhir。不過,預設的可視化頁面 (http://localhost:8080) 需要額外配置,具體配置步驟可參考官方 GitHub 頁面(https://github.com/hapifhir/hapi-fhir-jpaserver-starter)。除了頁面外,伺服器本身的功能都能正常使用。
新增答覆