最近在本地启动web项目,经常报错: Result Maps collection already contains value for *.BaseResultMap. 是因为mvn install打包snapshot版本jar包时,多余生成了一个带日期的jar包。
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<packagingExcludes>%regex[WEB-INF/lib/.*-\d{8}.\d{6}-?\d*.jar]</packagingExcludes>
</configuration>
</plugin>
详情见这篇文章:https://blog.csdn.net/isea533/article/details/89511838
网友评论