How To Use Different Dependencies On Profile Posted on 2022-03-25 Edited on 2024-07-03 In Maven Views: Disqus: Symbols count in article: 483 Reading time ≈ 1 mins.Intro How To Use Different Dependencies On Profile這篇介紹How To Use Different Dependencies On Profile.使用情境123456789101112131415161718192021在不同環境佈署時,欲使用不同的版本來運作。可使用<profiles> <profile> <id>debug</id> … <dependencies> <dependency>…</dependency> </dependencies> … </profile> <profile> <id>release</id> … <dependencies> <dependency>…</dependency> </dependencies> … </profile></profiles>來指定Maven bulid來產生相對應不同的版本。