浏览代码

Merge pull request #6628 from suztomo/linakge_monitor_fix

Linakge Monitor fix to handle a new version of protobuf-bom not available in Maven Central
Rafi Kamal 6 年之前
父节点
当前提交
1363bf9c05
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests.sh

+ 3 - 0
tests.sh

@@ -252,6 +252,9 @@ build_java_linkage_monitor() {
   # Example: "3.9.0" (without 'rc')
   # Example: "3.9.0" (without 'rc')
   VERSION=`grep '<version>' pom.xml |head -1 |perl -nle 'print $1 if m/<version>(\d+\.\d+.\d+)/'`
   VERSION=`grep '<version>' pom.xml |head -1 |perl -nle 'print $1 if m/<version>(\d+\.\d+.\d+)/'`
   cd bom
   cd bom
+  # This local installation avoids the problem caused by a new version not yet in Maven Central
+  # https://github.com/protocolbuffers/protobuf/issues/6627
+  $MVN install
   $MVN versions:set -DnewVersion=${VERSION}-SNAPSHOT
   $MVN versions:set -DnewVersion=${VERSION}-SNAPSHOT
   cd ..
   cd ..
   $MVN versions:set -DnewVersion=${VERSION}-SNAPSHOT
   $MVN versions:set -DnewVersion=${VERSION}-SNAPSHOT