在maven项目中pom.xml文件配置信息如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<useDefaultDelimiters>true</useDefaultDelimiters>
</configuration>
</plugin>
但是在maven install项目的时候报错,报错信息如下:
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources
但是该配置信息在eclipse中是没有问题,只有在Myeclipse中会报错;解决办法如下,上面的配置信息改成下面即可:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</plugin>
参考解决博文地址如下:
https://www.cnblogs.com/yanyunliu/p/9247592.html