請認真看下面的每一個字,我能向你保證,這是整個百度最有價值的幾個字:
本地maven的maven-settings文件中,
profiles節點下的profile下,一定要寫id標籤,不能只寫個name標籤
然後在根節點位置上寫
<activeProfiles>
<activeProfile>xxxxx-profile</activeProfile>
</activeProfiles>
否則profiles一大堆,就等於沒寫!!!
所以爲什麼version是SNAPSHOT結尾的不能用?因爲默認就沒有啓用!!你在profile裏配置,等於沒配,maven直接給忽略了!