net程序员网站开发工程师,有了云服务器怎么建设网站,关键词怎么优化到百度首页,家装用什么软件设计脚本内容#xff0c;将以下内容保存为mavenimport.sh#xff0c;放置于需要上传的目录下#xff0c;可以是顶层目录#xff0c;或者某个分包的目录#xff0c;若私服已有待上传的包#xff0c;则执行会被替换
#!/bin/bash
# copy and run this script to the root of th…脚本内容将以下内容保存为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; docase $opt inr) REPO_URL$OPTARG;;u) USERNAME$OPTARG;;p) PASSWORD$OPTARG;;esac
donefind . -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}/{} ;执行脚本
./mavenimport.sh -u admin -p admin123456 -r http://192.168.1.88:8081/repository/maven-releases/以上内容若在windows系统上执行需安装git.exe右键点击Git bash here再执行脚本。