更新模块版本 #
mvn versions:set -DgenerateBackupPoms=false
deploy本地jar包到仓库 #
mvn deploy:deploy-file -DgroupId=sviolet.smcrypto -DartifactId=hanweb-sm -Dversion=4.1.1 -Dpackaging=jar -Dfile=/Users/dishui/project/hanweb-sm-4.1.1.jar -Durl=http://172.17.3.50:58081/repository/3rd-library/ -DrepositoryId=nexus-releases -Dusername=admin -Dpassword=Mk3Jsw34ATAk -e
增量打包 #
- 下载依赖包
mvn dependency:copy-dependencies -DoutputDirectory=lib
- 还原依赖包目录结构
cd /e/project/88
ls -l 'E:\project\wf\data-sync\dependency\lib'|awk '{if (NR>1){print $9}}'|xargs -I{} find repository -name "{}"|awk -F'/' '{$NF = "";gsub(/ /,"/",$0); print $0}'|xargs tar -zcvf incr.tar.gz
tar -cvf data-sync.tar –exclude data-sync/.git –exclude tmp.tar.gz –exclude dependency data-sync
远程调试 #
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=28089,suspend=n