maven部分:html
1.maven的下載安裝以及配置:見梁總的 Maven下載、安裝和配置(二)windows
安裝成功後,在cmd中輸入 mvn -v 則以下圖:瀏覽器
2.eclipse插件中若是沒有maven插件則須要安裝插件:見 安裝Eclipse Maven插件的幾種方法eclipse
安裝成功後在eclipse的 windows--->preferences 看到mavenmaven
3. 將eclipse中的插件maven 指向本身安裝的Maven:見 Eclipse Java EE IDE for Web Developers集成的Maven 3 指向本身安裝的 Mavenpost
maven 本地倉儲的存放路徑,若是沒有設置默認就在:C:\Users\cjjuan\.m2\repository 下 ,這個地方須要改到:D:\IDEStrain\maven\repositoryui
4.編譯 :選中項目右鍵 maven---->update project (從遠程倉儲中下載.jar包)url
5.發佈,生成.jar包 spa
選中項目裏的pom.xml右鍵 Run as --->Maven install 則生成.net
運行成功後,生成.jar包到對應的maven本地倉儲中,若是有遠程倉儲中未下載的包,也會一併下載過來
下載遠程倉儲中未下載的包
[WARNING] Checksum validation failed, could not read expected checksum: Checksum validation failed, expected but is b240cc62640ad4f91ad65c9f8ae137413f3c62e1 for http://192.168.200.57:8081/nexus/content/groups/public/io/zipkin/brave/brave-instrumentation-parent/4.13.3/brave-instrumentation-parent-4.13.3.pom
[INFO] Downloaded: http://192.168.200.57:8081/nexus/content/groups/public/io/zipkin/brave/brave-instrumentation-parent/4.13.3/brave-instrumentation-parent-4.13.3.pom (3 KB at 6.4 KB/sec)
[INFO] Downloading: http://192.168.200.57:8081/nexus/content/repositories/thirdparty/io/zipkin/brave/brave-spancollector-http/4.13.3/brave-spancollector-http-4.13.3.pom
生成.jar到 target目錄
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ Service_Basic --- [INFO] Building jar: D:\SMC\platform\Common\Service_Basic\target\Service_Basic-1.2.0.jar 生成.jar和.pom到本地倉儲 [INFO] --- maven-install-plugin:2.4:install (default-install) @ Service_Basic --- [INFO] Installing D:\SMC\platform\Common\Service_Basic\target\Service_Basic-1.2.0.jar to D:\IDEStrain\maven\repository\com\cdc\platform\common\Service_Basic\1.2.0\Service_Basic-1.2.0.jar [INFO] Installing D:\SMC\platform\Common\Service_Basic\pom.xml to D:\IDEStrain\maven\repository\com\cdc\platform\common\Service_Basic\1.2.0\Service_Basic-1.2.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS
Nexus部分:
1.安裝與部署
1.下載開源Nexus: 找最新的下載https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss
nexus-2.14.11-01-bundle.zip 解壓到路徑:E:\tool\nexus-server
以管理員的身份打開cmd窗口,進入E:\tool\nexus-server\nexus-2.14.11-01\bin ,輸入 nexus install 命令,進行安裝nexus.
將Nexus安裝爲Windows服務。可將服務啓動方式設爲手動
之後經過 nexus start 便可啓動Nexus ,經過 nexus stop 退出Nexus,也能夠直接在服務裏手動啓動和中止
啓動成功後,在瀏覽器中輸入:http://localhost:8081/nexus/ 進入登陸頁面,用帳戶admin 密碼:admin123 登陸,可以使用更多功能