willjava

导航

 
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

 

posted on 2016-04-27 17:24  威尔爪哇  阅读(377)  评论(0)    收藏  举报