mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
https://github.com/cskefu/cskefu/issues/775 add scripts to deploy plugins
Signed-off-by: Hai Liang Wang <hai@chatopera.com>
This commit is contained in:
parent
c8ea030b5e
commit
26c8377a02
29
plugins/bin/deployAll.sh
Normal file
29
plugins/bin/deployAll.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#! /bin/bash
|
||||
###########################################
|
||||
# Install All public plugins
|
||||
# Copyright (2019-2023) 北京华夏春松科技有限公司
|
||||
###########################################
|
||||
|
||||
# constants
|
||||
baseDir=$(cd `dirname "$0"`;pwd)
|
||||
|
||||
# functions
|
||||
|
||||
# main
|
||||
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
||||
|
||||
echo "Remove old plugins ..."
|
||||
set -x
|
||||
rm -rf $baseDir/../../compose/contact-center/plugins/*.jar
|
||||
set +x
|
||||
|
||||
cd $baseDir/..
|
||||
echo "Inspect plugins -->" `pwd`
|
||||
for x in `ls .`; do
|
||||
cd $baseDir/..
|
||||
if [ -d ./$x ] && [ $x != "bin" ] && [ -f $x/pom.xml ]; then
|
||||
cd $x
|
||||
echo "Package and Deploy Plugin" `pwd`
|
||||
mvn -DskipTests clean package deploy
|
||||
fi
|
||||
done
|
@ -98,4 +98,58 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>chatopera</id>
|
||||
<name>Chatopera Inc.</name>
|
||||
<url>https://nexus.chatopera.com/repository/maven-public</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>chatopera-releases</id>
|
||||
<name>Chatopera Nexus Releases</name>
|
||||
<url>https://nexus.chatopera.com/repository/maven-releases/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>chatopera-snapshots</id>
|
||||
<name>Chatopera Nexus Snapshots</name>
|
||||
<url>https://nexus.chatopera.com/repository/maven-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hailiang-wang</id>
|
||||
<name>Hai Liang Wang</name>
|
||||
<email>h@cskefu.com</email>
|
||||
<url>https://github.com/hailiang-wang</url>
|
||||
<organization>Chatopera Inc.</organization>
|
||||
<organizationUrl>https://www.chatopera.com</organizationUrl>
|
||||
<roles>
|
||||
<role>chief engineer</role>
|
||||
<role>developer</role>
|
||||
</roles>
|
||||
<timezone>Asia/Shanghai</timezone>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache-2.0</name>
|
||||
<url>https://github.com/cskefu/cskefu/blob/develop/LICENSE</url>
|
||||
<distribution>repo</distribution>
|
||||
<comments>A business-friendly OSS license</comments>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
|
||||
</project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user