在Maven Web專案中加入專案目錄中的函式庫jar的方式如下。
2025/6/30
2025/2/19
Spring Boot application.properites取得pom.xml的屬性值
Spring Boot的設定檔application.properties取得pom.xml中<properties>內的屬性值的方式如下。
2022/4/20
2021/5/2
2020/12/22
Maven Surefire Plugin run Spring Boot JUnit test pass environment variables
Maven Surefire Plugin執行Spring Boot的JUnit測試傳入環境變數的方法如下。
2020/12/12
String Boot Jib Maven build docker image
使用GoogleContainerTools下的Jib maven plugin build Spring Boot docker image。
2020/12/1
2020/10/30
IntelliJ IDEA Maven使用自訂的Nexus repository settings xml
IntelliJ IDEA Maven使用自訂的Nexus repository setting.xml設定方式如下。
2020/9/16
Maven 安裝目錄檔案到本地倉庫發生指定檔案不存在錯誤 install file to local repository specified file not exists
在Windows有pom.xml的目錄以cmd執行Maven的mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>命令來安裝檔案到local repository時發生錯誤。
2020/8/28
IntelliJ IDEA Maven 下載依賴函式庫原始碼 download dependency library source code
IntelliJ IDEA Maven預設只會下載依賴函式庫已編譯的jar,如果要查看原始碼的話就必須連同原始碼(source code)一起下載。
2020/6/8
2020/4/30
Maven WARNING Using platform encoding to copy filtered resources
在maven build時出現下面警告:
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
2020/4/28
2020/4/11
2019/7/4
2019/6/6
Eclipse Maven pom.xml Maven Configuration Problem: Unknown
今天用Eclipse (2019-03)的STS plugin建立Spring Boot Web Starter專案(2.1.5)時,專案的pom.xml第一行出現未知的紅色叉叉錯誤如下。