Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.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

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
List 在maven表达式中寻址列表项_List_Maven_Collections_Properties_Expression - Fatal编程技术网

List 在maven表达式中寻址列表项

List 在maven表达式中寻址列表项,list,maven,collections,properties,expression,List,Maven,Collections,Properties,Expression,如何在maven表达式中寻址列表项 例如,在以下代码段中: 猫 狗 土豚 “dog”用什么表达。它应该类似于${configuration.animals.animal}您可以使用${configuration.animals[1]} 引用:您是否尝试过${configuration.animates[1]}?我发现功能请求:标记为已修复,但根据一些评论,它不是。@ben75:${configuration.animates[1]}工作正常,谢谢。尽管有链接的讨论,但它与帮助:evaluat

如何在maven表达式中寻址列表项

例如,在以下代码段中:


猫
狗
土豚

“dog”用什么表达。它应该类似于
${configuration.animals.animal}

您可以使用
${configuration.animals[1]}


引用:

您是否尝试过
${configuration.animates[1]}
?我发现功能请求:标记为已修复,但根据一些评论,它不是。@ben75:
${configuration.animates[1]}
工作正常,谢谢。尽管有链接的讨论,但它与
帮助:evaluate
一起工作,并用pom编写。我使用Maven 3.0.5。你能把它作为一个常规的答案放在下面吗?