awk ‘BEGIN {FS="[<>]"} \{if($2=="groupId") {groupId=$3}} \{if($2=="artifactId") {artifactId=$3}} \{if($2=="version") {version=$3}} \{if($2=="type") {type=$3}} \{if($4=="\/type") {system("mvn install:install-file -DgroupId="groupId" -DartifactId="artifactId" -Dversion="version" -Dpackaging=jar -Dfile=was85\/"artifactId".jar")}}‘ file.pom
时间: 2024-10-28 15:18:06