文章目錄
- 一、私服配置
- 二、IntelliJ IDEA
- 2.1. 創(chuàng)建項(xiàng)目
- 2.2. 指定配置
- 2.3. 下載依賴
- 2.4. 依賴查看
- 2.5. 注意事項(xiàng)
一、私服配置
將服務(wù)端生成的配置復(fù)制下來,進(jìn)行修改
1. 賬戶密碼
2. 本地倉庫
3. ip/port
內(nèi)容:
<?xml
version="1.0" encoding="UTF-8"?
>
<settings xsi:schemaLocation
="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.2.0"xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"><servers
><server
><username
>gblfyuser
</username
><password
>APA5NvgEGGHbw3mszVftZjsLj3b
</password
><id
>central
</id
></server
><server
><username
>gblfyuser
</username
><password
>APA5NvgEGGHbw3mszVftZjsLj3b
</password
><id
>snapshots
</id
></server
><server
><username
>gblfyuser
</username
><password
>APA5NvgEGGHbw3mszVftZjsLj3b
</password
><id
>ssc-center
</id
></server
></servers
><localRepository
>D:
\rep
2</localRepository
><mirrors
><mirror
><mirrorOf
>*
</mirrorOf
><name
>ssc-center
</name
><url
>http://192.168.159.134:8082/artifactory/ssc-center
</url
><id
>ssc-center
</id
></mirror
></mirrors
><profiles
><profile
><repositories
><repository
><snapshots
><enabled
>false
</enabled
></snapshots
><id
>central
</id
><name
>ssc-snapshots
</name
><url
>http://192.168.159.134:8082/artifactory/ssc-snapshots
</url
></repository
><repository
><snapshots /
><id
>snapshots
</id
><name
>ssc-snapshots
</name
><url
>http://192.168.159.134:8082/artifactory/ssc-snapshots
</url
></repository
></repositories
><pluginRepositories
><pluginRepository
><snapshots
><enabled
>false
</enabled
></snapshots
><id
>central
</id
><name
>ssc-center
</name
><url
>http://192.168.159.134:8082/artifactory/ssc-center
</url
></pluginRepository
><pluginRepository
><snapshots /
><id
>snapshots
</id
><name
>ssc-center
</name
><url
>http://192.168.159.134:8082/artifactory/ssc-center
</url
></pluginRepository
></pluginRepositories
><id
>artifactory
</id
></profile
></profiles
><activeProfiles
><activeProfile
>artifactory
</activeProfile
></activeProfiles
>
</settings
>
二、IntelliJ IDEA
idea 測試
新建項(xiàng)目或者在現(xiàn)有的項(xiàng)目中添加依賴都可以,要是在現(xiàn)有的項(xiàng)目中添加MySQL依賴,刷新maven
2.1. 創(chuàng)建項(xiàng)目
2.2. 指定配置
2.3. 下載依賴
2.4. 依賴查看
2.5. 注意事項(xiàng)
第一次配置好maven之后,重啟一下idea,在刷新maven即可
總結(jié)
以上是生活随笔為你收集整理的Docker JFrog Artifactory 7.27.10 maven私服(IDEA 实战篇01) linux的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。