Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 如何在shell脚本中获取依赖项版本_Maven - Fatal编程技术网

Maven 如何在shell脚本中获取依赖项版本

Maven 如何在shell脚本中获取依赖项版本,maven,Maven,我有一个项目工件版本说 apple-0.0.1 在另一个项目mango中,我对苹果有依赖性,我在pom中添加了这一点。 在mango中有一个shell脚本 哪些需要参考 apple-{apple.version} 如何在mango项目的包期间通过读取pom在shell脚本中动态填充该值 提前感谢。将shell脚本放到src/main/resources中,让maven完成它的过滤工作。给他一根骨头:

我有一个项目工件版本说

apple-0.0.1
在另一个项目mango中,我对苹果有依赖性,我在pom中添加了这一点。 在mango中有一个shell脚本

哪些需要参考

apple-{apple.version}
如何在mango项目的包期间通过读取pom在shell脚本中动态填充该值


提前感谢。

将shell脚本放到src/main/resources中,让maven完成它的过滤工作。给他一根骨头: