Contents

apache shenyu 打包命令集

打包常用的命令


# example打包
./mvnw -B clean install -Pexample -DskipTests -f ./shenyu-examples/shenyu-examples-springcloud/pom.xml

./mvnw -B clean install -Pexample -DskipTests -f ./shenyu-examples/shenyu-examples-dubbo/pom.xml

./mvnw -B clean install -Pexample -DskipTests -f ./shenyu-examples/shenyu-examples-http/pom.xml

./mvnw -B clean install  -DskipTests -f ./shenyu-client/pom.xml

./mvnw -B clean install -Pexample -DskipTests -f ./shenyu-examples/pom.xml


./mvnw -B clean install -Prelease  -DskipTests -f ./shenyu-dist/pom.xml

./mvnw -B clean install -Pdocker  -DskipTests -f ./shenyu-dist/pom.xml

# 集成测试打包
./mvnw -B clean install -Pit -DskipTests -f ./shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml


./mvnw -B clean install -Pit -DskipTests -f ./shenyu-integrated-test/shenyu-integrated-test-alibaba-dubbo/pom.xml


./mvnw -B clean install -Pit -DskipTests -f ./shenyu-integrated-test/shenyu-integrated-test-common/pom.xml

./mvnw -B clean install -Pit -DskipTests -f ./shenyu-integrated-test/pom.xml


# docker-compose启动
docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-spring-cloud/docker-compose.yml up -d

docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-spring-cloud/docker-compose.yml up -d

docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml up -d

# 执行测试
./mvnw test -Pit -f ./shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml

./mvnw test -Pit -f ./shenyu-integrated-test/shenyu-integrated-test-alibaba-dubbo/pom.xml

./mvnw test -Pit -f ./shenyu-integrated-test/shenyu-integrated-test-http/pom.xml


./mvnw test -Pit -f ./shenyu-integrated-test/shenyu-integrated-test-http/pom.xml

# docker-compose停止
docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-spring-cloud/docker-compose.yml down

docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-alibaba-dubbo/docker-compose.yml down 


docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml down


registry.cn-hangzhou.aliyuncs.com/apache/shenyu-admin:latest


docker-compose -f ./shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml logs --tail="all"

本地编译报错

./mvnw clean install -Dmaven.javadoc.skip=true 执行以上命令,本地编译报错。

原因: 没有配置JAVA_HOME环境变量


10045  source ~/.bash_profile
10046  echo $JAVA_HOME
10047  cat ~/.bash_profile
10048  source ~/.bash_profile
10049  echo $JAVA_HOME
10050  source ~/.bash_profile
10051  echo $JAVA_HOME
10052  vim  ~/.bash_profile
10053  source ~/.bash_profile