当前位置:网站首页>Batch uploading of local jar packages to nexus private server
Batch uploading of local jar packages to nexus private server
2022-06-25 18:17:00 【RT_ 0114】
background : I ran a local java Microservices , The service needs to be dependent on jar Upload the package to private server , Batch transfer . The server cannot connect to the Internet. It can only transmit data locally . If it is a very confirmed jar It can be transferred directly in the private server interface .
1、 Turn the locally dependent services into compressed packages and send them to the server for decompression
Manual transmission zip Compressed package
2、 Generation script , Script name mavenimport.sh
#!/bin/bash
# copy and run this script to the root of the repository directory containing files
# this script attempts to exclude uploading itself explicitly so the script name is important
# Get command line params
while getopts ":r:u:p:" opt; do
case $opt in
r) REPO_URL="$OPTARG"
;;
u) USERNAME="$OPTARG"
;;
p) PASSWORD="$OPTARG"
;;
esac
done
find . -type f -not -path './mavenimport\.sh*' -not -path '*/\.*' -not -path '*/\^archetype\-catalog\.xml*' -not -path '*/\^maven\-metadata\-local*\.xml' -not -path '*/\^maven\-metadata\-deployment*\.xml' | sed "s|^\./||" | xargs -I '{}' curl -u "$USERNAME:$PASSWORD" -X PUT -v -T {
} ${REPO_URL}/{
} ;
3、 Execute the script and transfer it to the private server
chmod +x mavenimport.sh
./mavenimport.sh -u Warehouse account number -p Warehouse password -r http://ip:port/repository/ylsh_maven/
give an example
chmod +x mavenimport.sh
./mavenimport.sh -u root -p 123456 -r http://192.168.34.2:1000/repository/ylsh_maven/
边栏推荐
- Kotlin of Android cultivation manual - several ways to write a custom view
- anaconda下载清华源
- 【深入理解TcaplusDB技术】单据受理之建表审批
- Indexes
- 将Graph Explorer搬上JupyterLab:使用GES4Jupyter连接GES并进行图探索
- 什么是泛型以及在集合中泛型的使用[通俗易懂]
- Deep learning network model
- 踩坑记录---线程池拒绝策略引起的一系列巧合
- 【深入理解TcaplusDB技术】TcaplusDB运维
- How to judge whether you are suitable for software testing
猜你喜欢

Virtual machine class loading mechanism
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data

【深入理解TcaplusDB技术】集群管理操作

【深入理解TcaplusDB技术】单据受理之表管理

How can the self-supporting number evaluation be safer for cross-border e-commerce platforms such as Amazon, eBay, shopee, lazada, express, Wal Mart and Alibaba international?

SQL Server实时备份库要求

Encryption trend: Fashion advances to the meta universe

【深入理解TcaplusDB技术】Tmonitor后台一键安装

【深入理解TcaplusDB技术】TcaplusDB导入数据

篇6:CLion:Toolchains are not configured Configure Disable profile
随机推荐
沁恒CH583 USB 自定义HID调试记录
广发易淘金和指南针哪个更好,更安全一些
【深入理解TcaplusDB技术】TcaplusDB运维
Garbage collector and memory allocation strategy
哈希竞猜游戏系统开发如何开发?哈希竞猜游戏系统开发应用详情案例及源码
【深入理解TcaplusDB技术】单据受理之创建游戏区
[in depth understanding of tcapulusdb technology] tcapulusdb construction data
RMAN备份数据库_双重备份备份集(Duplexing Backup Sets)
【工作小技巧】刚入职的软件测试工程师怎么快速上手新岗位
股票开户怎么办理?证券开户哪家好 办理开户安全吗
CentOS7 安装 Redis 7.0.2
【深入理解TcaplusDB技术】Tmonitor系统升级
SQL Server实时备份库要求
跨境电商亚马逊、eBay、Shopee、Lazada、速卖通、沃尔玛、阿里国际等平台,怎样进行自养号测评更安全?
el-table高度自适应
Part 5:vs2017 build qt5.9.9 development environment
.NET Worker Service 如何优雅退出
【flutter 页面跳转后退如何刷新?】
Good news | Haitai Fangyuan has passed the cmmi-3 qualification certification, and its R & D capability has been internationally recognized
解析数仓lazyagg查询重写优化