中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

怎樣創(chuàng)建自己公司的網(wǎng)站百度競價代理公司

怎樣創(chuàng)建自己公司的網(wǎng)站,百度競價代理公司,官方網(wǎng)站下載安裝qq,網(wǎng)站建設分為展示型本文摘要 Maven作為Java后端使用頻率非常高的一款依賴管理工具,在此咱們由淺入深,分三篇文章(Maven基礎、Maven進階、私服搭建)來深入學習Maven,此篇為開篇主要介紹Maven私服搭建-Nexus 文章目錄 本文摘要1. Nexus安裝…

本文摘要

Maven作為Java后端使用頻率非常高的一款依賴管理工具,在此咱們由淺入深,分三篇文章(Maven基礎、Maven進階、私服搭建)來深入學習Maven,此篇為開篇主要介紹Maven私服搭建-Nexus


文章目錄

  • 本文摘要
  • 1. Nexus安裝
  • 2. Nexus配置
  • 3. Nexus倉庫類型
  • 4.發(fā)布依賴
    • 4.1 配置倉庫用戶名密碼
    • 4.2 配置上傳倉庫地址
    • 4.3 上傳依賴
    • 4.4 查看Nexus倉庫
    • 4.5 下載依賴
      • 4.5.1 setting.xml(mirror)配置
      • 4.5.2 pom.xml(repositories)配置
      • 4.5.3 settings.xml(profiles)配置
  • 6. 安裝三方依賴
    • 6.1 安裝至本地
    • 6.2 上傳至私服


1. Nexus安裝

使用Docker進行安裝

  • 拉取鏡像
    docker pull sonatype/nexus3
  • 啟動鏡像
    docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3

2. Nexus配置

# Jetty section
# 端口,可以修改
# application-port=8081
# application-host=0.0.0.0
# nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
# nexus-context-path=/${NEXUS_CONTEXT}# Nexus section
# nexus-edition=nexus-pro-edition
# nexus-features=\
#  nexus-pro-feature
# nexus.clustered=false

3. Nexus倉庫類型

在這里插入圖片描述

  • hosted:表示用戶自己上傳的依賴將會上傳至該倉庫
  • proxy:表示代理遠程倉庫地址
  • group:用來組合hosted/proxy倉庫,下載依賴將從該倉庫下載

4.發(fā)布依賴

4.1 配置倉庫用戶名密碼

setting.xml 文件中配置

<!-- 定義穩(wěn)定版本的id名稱,用戶名密碼 -->
<server><id>releases</id><username>admin</username><password>admin123</password>
</server>
<!-- 定義開發(fā)版本的id名稱,用戶名密碼 -->
<server><id>snapshots</id><username>admin</username><password>admin123</password>
</server>

4.2 配置上傳倉庫地址

需要上傳至徑服所在項目pom.xml文件中配置

<distributionManagement><repository><id>releases</id><url>http://nas:18081/repository/maven-releases/</url></repository><snapshotRepository><id>snapshots</id><url>http://nas:18081/repository/maven-snapshots/</url></snapshotRepository>
</distributionManagement>

4.3 上傳依賴

idea中點擊deploy

在這里插入圖片描述

4.4 查看Nexus倉庫

在這里插入圖片描述

4.5 下載依賴

4.5.1 setting.xml(mirror)配置

該配置方案存在問題:無法拉取SNAPSHOT依賴

<mirrors><mirror><!--    配置id  --><id>nexus</id><!--     配置攔截倉庫,*表示攔截所有倉庫拉取請求 --><mirrorOf>*</mirrorOf><name>nexus</name><!--     配置倉庫地址  --><url>http://nas:18081/repository/maven-public/</url></mirror>
</mirrors>

4.5.2 pom.xml(repositories)配置

該配置方案存在問題:該種方式只能針對某個項目下載依賴

<repositories><repository><id>nexus</id><name>nexus</name><url>http://nas:18081/repository/maven-public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository>
</repositories>
<pluginRepositories><pluginRepository><id>public</id><url>http://nas:18081/repository/maven-public/</url><name>pluginRepositories</name></pluginRepository>
</pluginRepositories>

4.5.3 settings.xml(profiles)配置

該種配置方式全局配置,可以根據(jù)需求選擇配置方案,生產(chǎn)中選擇該方式

<profiles><!-- 下載jar包配置 --><profile><!--profile的id --><id>dev</id><repositories><repository> <!--倉庫id,repositories可以配置多個倉庫,保證id不重復 --><id>nexus</id> <!--倉庫地址,即nexus倉庫組的地址 --><url>http://nas:18081/repository/maven-public/</url> <!--是否下載releases構(gòu)件 --><releases><enabled>true</enabled></releases> <!--是否下載snapshots構(gòu)件 --><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories> <!-- 插件倉庫,maven的運行依賴插件,也需要從私服下載插件 --><pluginRepository> <!-- 插件倉庫的id不允許重復,如果重復后邊配置會覆蓋前邊 --><id>public</id><name>Public Repositories</name><url>http://nas:18081/repository/maven-public/</url></pluginRepository></pluginRepositories></profile>
</profiles>
<!-- 選擇那一個配置 -->
<activeProfiles><activeProfile>dev</activeProfile>
</activeProfiles>

6. 安裝三方依賴

6.1 安裝至本地

mvn install:install-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dfile=fastjson-1.1.37.jar -Dpackaging=jar

6.2 上傳至私服

mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpackaging=jar -Dfile=fastjson-1.1.37.jar -Durl=http://localhost:8079/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty
http://m.risenshineclean.com/news/57769.html

相關(guān)文章:

  • 桂林網(wǎng)站建設費用seo搜索優(yōu)化公司
  • 南京做中英文網(wǎng)站設計seosem是指什么意思
  • 沛縣做網(wǎng)站揚州seo博客
  • wordpress 5.2設置中文seo概念的理解
  • 關(guān)于做網(wǎng)站的策劃書百度app瀏覽器下載
  • 榆林市城鄉(xiāng)建設規(guī)劃局網(wǎng)站旅游營銷推廣方案
  • 做老師一些好的網(wǎng)站上海十大營銷策劃公司
  • 瓊海在線百度seo推廣是什么
  • seo在中國aso優(yōu)化技術(shù)
  • 代做畢設網(wǎng)站推薦萬網(wǎng)域名注冊流程
  • 做電商網(wǎng)站搭建晉升沈陽百度快照優(yōu)化公司
  • wordpress資源下載seo營銷的概念
  • 日本真人做爰直播網(wǎng)站市場營銷的策劃方案
  • 前程無憂網(wǎng)廣州網(wǎng)站建設類崗位網(wǎng)絡營銷論文
  • 漢中免費做網(wǎng)站活動策劃公司
  • wordpress 高級自定義廣東seo點擊排名軟件哪里好
  • 網(wǎng)站評估怎么做北京百度推廣電話
  • 網(wǎng)站排名優(yōu)化工具產(chǎn)品seo怎么優(yōu)化
  • 西安公司網(wǎng)站開發(fā)seo技術(shù)培訓學校
  • 做品牌網(wǎng)站哪個好用北大青鳥職業(yè)技術(shù)學院簡介
  • 平面設計圖網(wǎng)站有哪些?鄭州seo排名第一
  • 網(wǎng)站美化怎么做廈門seo網(wǎng)絡優(yōu)化公司
  • 網(wǎng)站建設與管理教程視頻教程搜索引擎環(huán)境優(yōu)化
  • 外貿(mào)seo網(wǎng)站開發(fā)廣州seo外包多少錢
  • 網(wǎng)站開發(fā)論文答辯重慶廣告公司
  • 移動端網(wǎng)站怎么做的媒體資源網(wǎng)
  • 網(wǎng)站自建設需要買什么google chrome download
  • 房地產(chǎn)估價師智推教育seo課程
  • 在茂名哪里可以做網(wǎng)站哪個網(wǎng)站百度收錄快
  • 本地利用wordpress建站百度網(wǎng)站客服電話