代码拉取完成,页面将自动刷新
同步操作将从 smartboot/smart-boot 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#/bin/bash
curDir=$(cd `dirname $0`; pwd)
find . -name \.settings -exec rm -r {} \;
find . -name \.externalToolBuilders -exec rm -r {} \;
find . -name \.project -exec rm -r {} \;
find . -name \.classpath -exec rm -r {} \;
rm -rf ${curDir}/src
rm -rf ${curDir}/site.sh
rm -rf ${curDir}/site_pom.xml
rm -rf ${curDir}/smart-dal/src/main/resources
cp -R ${curDir}/../../../../../../../smart-dal/src/main/resources/ ${curDir}/smart-dal/src/main/resources
cp -R ${curDir}/../../../../../../../htdocs/ ${curDir}/htdocs
#Mac下的sed命令差异
sed -i "" "s/org\.smartboot/\$\{groupId\}/g" `grep "org.smartboot" -rl .|grep pom.xml`
sed -i "" "s/smartboot/\${rootArtifactId}/g" `grep "smartboot" -rl .|grep log4j2.xml`
sed -i "" "s/org\/smartboot/\$\{groupId\.replace\(\'\.\', \'\/\'\)\}/g" `grep "org/smartboot" -rl .|grep pom.xml `
##修改跟目录下pom.xml
sed -i "" "s/smart-assembly/\$\{artifactId\}-assembly/g" pom.xml
sed -i "" "s/smart-shared/\$\{artifactId\}-shared/g" pom.xml
sed -i "" "s/smart-dal/\$\{artifactId\}-dal/g" pom.xml
sed -i "" "s/smart-component/\$\{artifactId\}-component/g" pom.xml
sed -i "" "s/smart-service-integration/\$\{artifactId\}-service-integration/g" pom.xml
sed -i "" "s/smart-service-impl/\$\{artifactId\}-service-impl/g" pom.xml
sed -i "" "s/smart-service-facade/\$\{artifactId\}-service-facade/g" pom.xml
##修改其余目录下的pom.xml
sed -i "" "s/smart-assembly/\$\{rootArtifactId\}-assembly/g" `grep "smart-assembly" -rl .|grep pom.xml`
sed -i "" "s/smart-shared/\$\{rootArtifactId\}-shared/g" `grep "smart-shared" -rl .|grep pom.xml`
sed -i "" "s/smart-dal/\$\{rootArtifactId\}-dal/g" `grep "smart-dal" -rl .|grep pom.xml`
sed -i "" "s/smart-component/\$\{rootArtifactId\}-component/g" `grep "smart-component" -rl .|grep pom.xml`
sed -i "" "s/smart-service-integration/\$\{rootArtifactId\}-service-integration/g" `grep "smart-service-integration" -rl .|grep pom.xml`
sed -i "" "s/smart-service-impl/\$\{rootArtifactId\}-service-impl/g" `grep "smart-service-impl" -rl .|grep pom.xml`
sed -i "" "s/smart-service-facade/\$\{rootArtifactId\}-service-facade/g" `grep "smart-service-facade" -rl .|grep pom.xml`
##修改各自pom.xml文件的artifactId
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-assembly<\/artifactId>/g" ./smart-assembly/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-shared<\/artifactId>/g" ./smart-shared/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-dal<\/artifactId>/g" ./smart-dal/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-component<\/artifactId>/g" ./smart-component/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-service-integration<\/artifactId>/g" ./smart-service-integration/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-service-impl<\/artifactId>/g" ./smart-service-impl/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-service-facade<\/artifactId>/g" ./smart-service-facade/pom.xml
sed -i "" "s/<artifactId>\${artifactId}<\/artifactId>/<artifactId>\${rootArtifactId}-restful<\/artifactId>/g" ./smart-restful/pom.xml
sed -i "" "s/<name>\${artifactId}<\/name>/<name>\${rootArtifactId}-restful<\/name>/g" ./smart-restful/pom.xml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。