Files
hap/buildArifactDir.sh
2022-09-26 11:26:06 +08:00

15 lines
439 B
Bash
Executable File

#list=`grep artifactId ./pom.xml | sed "s/<artifactId>//g" | sed "s/<\/artifactId>//g" | awk '{print $2}'`
list=`grep artifactId ./pom.xml | sed "s/<artifactId>//g" | sed "s/<\/artifactId>//g"`
for x in $list; do
path=`find ./repository -name "*${x}*.jar" #| sed "s/\.\/repository\///g"`
for j in $path; do
echo "<systemPath>\${project.basedir}/${j}</systemPath>" | sed 's/\.\/repository/repository/g'
done
done