知識分享之Java——Maven的settings常用配置文件

知識分享之Java——Maven的settings常用配置文件

背景

日常我們開發(fā)時,我們會遇到各種各樣的奇奇怪怪的問題(踩坑o(╯□╰)o),這個常見問題系列就是我日常遇到的一些問題的記錄文章系列蒙秒,這里整理匯總后分享給大家,讓其還在深坑中的小伙伴有繩索能爬出來。
同時在這里也歡迎大家把自己遇到的問題留言或私信給我,我看看其能否給大家解決币叹。

開發(fā)環(huán)境

  • 系統(tǒng):windows10
  • JDK:openjdk11
  • 開發(fā)工具:IDEA 教育版
  • 框架:SpringBoot
  • 包管理:Gradle

內容

本篇主要用于記錄日常我們比較常用的settings配置文件,大家有需要的可以直接復制文章中的配置信息快速使用模狭。

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <profiles>
    <profile>
      <id>pentaho</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>pentaho-public</id>
          <name>Pentaho Public</name>
          <url>https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>pentaho-public</id>
          <name>Pentaho Public</name>
          <url>https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
    <profile>
        <id>aliyun</id>
        <repositories>
            <repository>
                <id>aliyun</id>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>aliyun</id>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile>
    <profile>
      <id>activiti-repos2</id>
      <repositories>
        <repository>  
          <id>activiti-repos2</id>  
          <name>Activiti Repository 2</name>  
          <url>https://app.camunda.com/nexus/content/groups/public</url>
        </repository>  
      </repositories>
    </profile>
    <profile> 
      <id>mvnrepository</id>
      <repositories> 
        <repository> 
          <id>mvnrepository</id> 
          <name>mvnrepository</name> 
          <url>http://www.mvnrepository.com</url> 
        </repository> 
      </repositories> 
    </profile>
  </profiles>

  <!-- this lets you call plugins from these groups in their short form -->
  <pluginGroups>
    <pluginGroup>org.pentaho.maven.plugins</pluginGroup>
    <pluginGroup>com.pentaho.maven.plugins</pluginGroup>
    <pluginGroup>com.github.spotbugs</pluginGroup>
  </pluginGroups>
  <activeProfiles>
      <activeProfile>aliyun</activeProfile>
      <activeProfile>pentaho</activeProfile>
      <activeProfile>activiti-repos2</activeProfile>
      <activeProfile>mvnrepository</activeProfile>
  </activeProfiles>
</settings>

這里面包含了很多我們的常用庫颈抚,使用時將不需要的去除即可。

本文聲明:

88x31.png

知識共享許可協(xié)議
本作品由 cn華少 采用 知識共享署名-非商業(yè)性使用 4.0 國際許可協(xié)議 進行許可嚼鹉。

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末贩汉,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子反砌,更是在濱河造成了極大的恐慌雾鬼,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,427評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件宴树,死亡現場離奇詭異策菜,居然都是意外死亡,警方通過查閱死者的電腦和手機酒贬,發(fā)現死者居然都...
    沈念sama閱讀 93,551評論 3 395
  • 文/潘曉璐 我一進店門又憨,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人锭吨,你說我怎么就攤上這事蠢莺。” “怎么了零如?”我有些...
    開封第一講書人閱讀 165,747評論 0 356
  • 文/不壞的土叔 我叫張陵躏将,是天一觀的道長。 經常有香客問我考蕾,道長祸憋,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,939評論 1 295
  • 正文 為了忘掉前任肖卧,我火速辦了婚禮蚯窥,結果婚禮上,老公的妹妹穿的比我還像新娘塞帐。我一直安慰自己拦赠,他們只是感情好,可當我...
    茶點故事閱讀 67,955評論 6 392
  • 文/花漫 我一把揭開白布葵姥。 她就那樣靜靜地躺著荷鼠,像睡著了一般。 火紅的嫁衣襯著肌膚如雪牌里。 梳的紋絲不亂的頭發(fā)上颊咬,一...
    開封第一講書人閱讀 51,737評論 1 305
  • 那天务甥,我揣著相機與錄音牡辽,去河邊找鬼喳篇。 笑死,一個胖子當著我的面吹牛态辛,可吹牛的內容都是我干的麸澜。 我是一名探鬼主播,決...
    沈念sama閱讀 40,448評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼奏黑,長吁一口氣:“原來是場噩夢啊……” “哼炊邦!你這毒婦竟也來了?” 一聲冷哼從身側響起熟史,我...
    開封第一講書人閱讀 39,352評論 0 276
  • 序言:老撾萬榮一對情侶失蹤馁害,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后蹂匹,有當地人在樹林里發(fā)現了一具尸體碘菜,經...
    沈念sama閱讀 45,834評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,992評論 3 338
  • 正文 我和宋清朗相戀三年限寞,在試婚紗的時候發(fā)現自己被綠了忍啸。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,133評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡履植,死狀恐怖计雌,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情玫霎,我是刑警寧澤凿滤,帶...
    沈念sama閱讀 35,815評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站庶近,受9級特大地震影響翁脆,放射性物質發(fā)生泄漏。R本人自食惡果不足惜拦盹,卻給世界環(huán)境...
    茶點故事閱讀 41,477評論 3 331
  • 文/蒙蒙 一鹃祖、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧普舆,春花似錦恬口、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,022評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至蛾洛,卻和暖如春养铸,著一層夾襖步出監(jiān)牢的瞬間雁芙,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,147評論 1 272
  • 我被黑心中介騙來泰國打工钞螟, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留兔甘,地道東北人。 一個月前我還...
    沈念sama閱讀 48,398評論 3 373
  • 正文 我出身青樓鳞滨,卻偏偏與公主長得像洞焙,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子拯啦,可洞房花燭夜當晚...
    茶點故事閱讀 45,077評論 2 355

推薦閱讀更多精彩內容