报错信息:Could not resolve placeholder 'project.build.testOutputDirectory'
来源:互联网 发布:centos禁止ip访问网站 编辑:程序博客网 时间:2024/06/06 02:50
学习《Maven实战》这门课程时,出现如题所示的错误,在网上找了好久解决方案都没找到什么原因,最后被自己无意间的一个想法给处理掉了这个问题。
错误位置:persist.file=${project.build.testOutputDirectory}/persist.xml
程序报错提示不能解析${project.build.testOutputDirectory}
之后再网上找到说要在pom.xml中配置资源过滤,不然无法解析。
看到这句时,一直没理解,之后对比pom.xml中的所有代码,就发现有一处不对劲,更改后错误就不在提示了。
pom.xml:
<build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources></build>
项目工程:
于是将pom.xml更改为:
<build> <testResources> <testResource> <directory>src/main/resources</directory> <filtering>true</filtering> </testResource> </testResources></build>
1 0
- 报错信息:Could not resolve placeholder 'project.build.testOutputDirectory'
- spring报“Could not resolve placeholder”错误
- spring报“Could not resolve placeholder”错误
- spring报“Could not resolve placeholder”错误
- spring报“Could not resolve placeholder”错误
- Could not resolve placeholder
- Could not resolve placeholder
- Jenkins 构建报错 Could not resolve dependencies for project
- Spring中报"Could not resolve placeholder"的解决方案
- Spring中报"Could not resolve placeholder"的解决方案
- Spring中报"Could not resolve placeholder"的解决方案
- spring报“Could not resolve placeholder”错误,解决方案
- spring报“Could not resolve placeholder”错误,解决方案
- Spring中报"Could not resolve placeholder"的解决方案
- Spring中报"Could not resolve placeholder"的解决方案
- 项目启动一直报Could not resolve placeholder错误
- Spring中报"Could not resolve placeholder"的解决方案
- "Could not resolve placeholder"解决方案
- n皇后问题
- ubuntu下eclipse无法创建新的Java project
- 文章标题
- Android TextView 现在指定字数,多余部分显示省略号
- 管道命令"|"和"xargs"命令的区别
- 报错信息:Could not resolve placeholder 'project.build.testOutputDirectory'
- Bootstrap常用笔记
- python 中出现的AttributeError: 'module' object has no attribute '_handlerList'
- 在Struts2中实现登陆后跳转到登录前页面
- poi 解析excel 浮点数跟整数的读取
- OpenJ_Bailian
- HttpClient通过代理进行请求
- 1076. Forwards on Weibo (30) PAT 甲级
- 按要求输出