File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments