鲲鹏镜像站中提供的二进制包是基于开源代码直接编译打包而成的,不含漏洞及BUG修复。
使用开源软件时需遵守开源软件的许可协议。
1 2 3 |
cd /home git config --global http.sslVerify false git clone https://github.com/spring-cloud/spring-cloud-contract.git |
1 2 |
cd spring-cloud-contract git checkout v2.2.1.RELEASE |
1
|
mkdir -p ~/.m2/repository/com/github/tomakehurst/wiremock-jre8-standalone/2.25.1/ |
1
|
wget https://mirrors.huaweicloud.com/kunpeng/maven/com/github/tomakehurst/wiremock-jre8-standalone/2.25.1/wiremock-jre8-standalone-2.25.1.jar --no-check-certificate |
1
|
cp wiremock-jre8-standalone-2.25.1.jar ~/.m2/repository/com/github/tomakehurst/wiremock-jre8-standalone/2.25.1/ |
1
|
mkdir -p ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/ |
1
|
wget https://mirrors.huaweicloud.com/kunpeng/maven/io/specto/hoverfly-junit/0.2.2/hoverfly-junit-0.2.2.jar --no-check-certificate |
1
|
cp hoverfly-junit-0.2.2.jar ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/ |
jar tvf ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/hoverfly-junit-0.2.2.jar
unzip ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/hoverfly-junit-0.2.2.jar -d ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/hoverfly-junit-0.2.2
cd ~/.m2/repository/io/specto/hoverfly-junit/0.2.2/hoverfly-junit-0.2.2 && mv hoverfly_v0.9.1_linux_arm64 hoverfly_v0.9.1_linux_amd64
jar cvf ../hoverfly-junit-0.2.2.jar -c ./*
1 2 |
cd /home/spring-cloud-contract ./mvnw clean install -Dgpg.skip=true |
若显示BUILD SUCCESS,则编译通过。