Eclipse创建Maven项目时候遇到的问题:Could not get the value for parameter encoding for plugin execution default-
想创建个简单的Maven项目来为一个项目找依赖(别问我为什么不直接使用maven做项目,千金难买我愿意),创建的时候出现如下错误提示:
Could not get the value for parameter encoding for plugin execution default-resources
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central (https://repo.maven.apache.org/maven2): Connection reset
查了一些资料,请教了一些人。
在这里说几句题外话,我作为一个Java新手,经常遇到一些问题,这其中有一些感慨:
我常常会遇到这种人“这么简单的问题张口就问,自己不会百度啊”。他不关心你为解决问题付出的努力,一句话全盘否行。这种人,几乎可以说是品质的问题了。谁都没有义务去为别人解决这种问题,但是劝大家做个人。闭着嘴巴,就能避免伤害别人这种事情,真的,做件好事有时候成本蛮低的。
第二种比较常见的如“你这个就是依赖不能被解析…”这种人,其实我举得蛮可悲的。需求:解决此bug。他的方案:用英文翻译了报错信息。这种逻辑能力基本上可以告别程序员了,勉强为之,也不过是个低端码农。
回归正题:
我查到的信息,有以下几种说法:
1.https://www.geek-share.com/detail/2630523273.html
显然在最初下载本地maven时候,我已经了修改了配置文件,并且将下载地址修改到阿里云镜像。
2.https://www.geek-share.com/detail/2619949341.html
3.https://www.geek-share.com/detail/2707193720.html
2、3的意思基本都是说网络的问题,导致jar包下载有问题。
解决思路:我比较认同3博主的做法。
每个人情况不同,提供下我的思路。我查了自己的maven仓库,发现里边是有相关的信息的。后来突然想起来,自己以前不是用的eclipse做的开发(STS),eclipse没有配置相关的maven信息。
然后按照3博主的步骤走一遍,搞定。
- eclipse maven 报错Could not get the value for parameter encoding for plugin execution default
- Maven: Could not get the value for parameter encoding for plugin execution default-resources Plugin
- Maven: Could not get the value for parameter encoding for plugin execution default-resources Plugin
- Maven:Could not get the value for parameter encoding for plugin execution default-resources
- could not get the value for parameter encoding forplugin execution default resources 处理
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1
- [Maven in action] 解决办法:Could not get the value for parameter encoding for plugin execution...
- Could not get the value for parameter encoding for plugin execution default-resources Plugin
- Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apa
- Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apa
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compil
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- maven pom.xml报错:CoreException: Could not get the value for parameter compilerId for plugin execution
- Could Not Get the Value for Parameter compilerId for Plugin Execution
- Could Not Get the Value for Parameter compilerId for Plugin Execution
- Eclipse中pom文件提示"CoreException:Could not get the value for parameter compilerId for plugin execu"异常