AdSense

顯示具有 maven 標籤的文章。 顯示所有文章
顯示具有 maven 標籤的文章。 顯示所有文章

2025/6/30

Maven Web 加入專案目錄內的函式庫jar依賴

在Maven Web專案中加入專案目錄中的函式庫jar的方式如下。

2025/2/19

Spring Boot application.properites取得pom.xml的屬性值

Spring Boot的設定檔application.properties取得pom.xml中<properties>內的屬性值的方式如下。

2022/4/20

Eclipse 2022 建立一個簡單的Maven Java應用程式

Eclipse 2022新增一個簡單Maven Java應用程式。

2021/5/2

Maven 依賴機制的 依賴傳遞 transitive dependencies

本篇介紹Maven依賴機制的依賴傳遞特性(Transitive Dependencies)。

2020/12/12

String Boot Jib Maven build docker image

使用GoogleContainerTools下的Jib maven plugin build Spring Boot docker image。

2020/12/1

Mac install Maven by Homebrew

Mac使用Homebrew安裝Maven的方式如下。

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

Spring Boot IntelliJ IDEA Maven executable jar

IntelliJ IDEA Maven打包Spring Boot為可執行的jar的方法如下。

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!

IntelliJ IDEA Maven 打包可執行的jar檔 package executable jar

在IntelliJ使用maven將專案打包成可執行的jar的方法如下。

2020/4/28

Java 什麼是 fat jar or uber jar

fat jar又稱uber jar,是一個包含其他依賴jar的jar。

2020/4/11

Maven Apache Maven Compiler Plugin

在Java Maven專案的pom.xml常看到下面的設定。

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第一行出現未知的紅色叉叉錯誤如下。

2019/4/21

Maven 什麼是Repository

在學習Maven時常會看到Repository這個詞,以下有時簡稱repo。

2019/2/16

Maven 執行建置時略過test步驟
Maven build skip test

使用Maven build建置專案時,若要省略test步驟,可以使用以下參數。

AdSense