Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

当你新创建一个maven工程时会提示如下的错误

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac
Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

提示你无法获取maven资源,这是由于你没有配置工作环境的原因造成的

接下来配置一下我们的工作环境

首先删除刚创建的day01项目
Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

打开maven设置如图,这里需要把全局设置和用户设置填写进去
找到自己电脑的maven仓库架包

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

配置到如下路径

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

解决之前的提示框

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

但是创建的maven工程还是有错,这是由于我创建的web的maven工程,所以要导入tomcat才能使用

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

选择自己的tomcat后配置路径就可以了

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

配置好了还是有错,如图

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

这是由于你的tamcat版本和创建的版本不符导致的错误
首先删除webapp下的WEB-INF文件夹

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac
Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

这里我是用到3.1版本,看你自己之前用的什么版本,

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

然后生成webapp文件

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

然后还要把tamcat配置到工程里才行

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac

完成以上步骤后解决了创建问题

Could not get the value for parameter encoding for plugin execution default-resourcesPlugin org.apac
以上是我自己摸索半天出来的结果,如有错误或者更好的方法欢迎评论,以便我们大家一起学习成长。