在maven-resource-plugin中使用当前文件位置

时间:2018-04-05 09:48:53

标签: maven maven-resources-plugin

使用Maven Resources Plugin过滤资源时,有没有办法引用当前处理的资源文件路径?

例如,如果我的YAML资源app: location: ${filePath} 包含内容:

${filePath}

我希望将app: location: src/main/resources/config.yml 令牌替换为相对或绝对资源文件路径,从而导致:

arr1 = [(7, 0.78, 7920), (8, 0.9, 9000)]
arr2 = [(7, 1.68, 8460)]

dict1 = {i: (x, y) for i, x, y in arr1}
dict2 = {i: (x, y) for i, x, y in arr2}

是否有Maven提供的属性可用于获取已处理的资源文件路径?我无法对Maven属性中的一个路径进行硬编码,因为应该使用自己的路径过滤不同的资源。

0 个答案:

没有答案