Skip to content

Commit eea7667

Browse files
committed
cover more cases when adding vaadin-dev
1 parent 8e2fed5 commit eea7667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pit/lib/lib-utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ addMavenDep() {
830830
local POM=$1; local GI=$2; local AI=$3; local SC=$4; local EX="$5"
831831
local t=' '
832832
[ -z "$POM" ] && POM=pom.xml
833-
__cmd="perl -0777 -pi -e 's|(\n[ \t]*)(</dependencies>\s+(<build>\|<repo\|<dependencyM))|\$1$t<dependency>\$1$t$t<groupId>${GI}</groupId>\$1$t$t<artifactId>${AI}</artifactId>\$1$t$t<scope>${SC}</scope>${EX}\$1$t</dependency>\$1\$2|' $POM"
833+
__cmd="perl -0777 -pi -e 's|(\n[ \t]*)(</dependencies>\s+(<build>\|<repo\|<dependencyM\|<!))|\$1$t<dependency>\$1$t$t<groupId>${GI}</groupId>\$1$t$t<artifactId>${AI}</artifactId>\$1$t$t<scope>${SC}</scope>${EX}\$1$t</dependency>\$1\$2|' $POM"
834834
runCmd -f "Adding dependency $GI $AI $SC to pom.xml" "$__cmd"
835835
}
836836

0 commit comments

Comments
 (0)