标签:
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
标签:
原文地址:http://www.cnblogs.com/wayhow/p/5439656.html