在建立mavenweb项目是遇到了一点小小的友好提示----
Some problems were encountered while building the effective model for MyspringBatis:Spring_Mybatis:war:1.0-SNAPSHOT
The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.
The expression ${pom.version} is deprecated. Please use ${project.version} instead.
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
这种错误是因为maven版本为3.0本本比较高,之前创建的模板maven版本比较低,那么这种情况怎么解决呢?
1,更换maven版本
2,在配置文件中修改一下
正常编译;
虽然官方不赞成使用$ {pom.version},和 $ {pom.artifactId}而应使用{project.artifactId}但目前仍支持,
不过最好是按照官方提示的来;
为什么官方在maven3的时候废弃了$ {pom.version},和 $ {pom.artifactId}而改为{project.artifactId}?