ERROR:
错误:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Solutions Tried:
解决方案的尝试:
Updated project: not able to download from REPO of maven.
更新项目:无法从maven的REPO下载。
Tried putting perticular jar in that folder of .m2 repo.
试着在.m2 repo文件夹中放入透明罐。
Can provide references if you want.
如果你想提供参考。
9 个解决方案
#1
19
Seems your settings.xml
file is missing your .m2 (local maven repo) folder.
似乎你的设置。xml文件缺少.m2(本地maven repo)文件夹。
When using eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml
and click apply.
当使用eclipse导航到窗口->首选项-> Maven ->用户设置->浏览到您的设置。xml并单击apply。
Then do maven Update Project.
然后做maven更新项目。
#2
5
If a download fails for some reason Maven will not try to download it within a certain time frame (it leaves a file with a timestamp).
如果下载由于某种原因失败,Maven将不会在特定的时间范围内尝试下载它(它会留下一个带有时间戳的文件)。
To fix this you can either
要解决这个问题,你可以选择其中之一
- Clear (parts of) your .m2 repo
- 清楚(部分)你的。
- Run maven with -U to force an update
- 使用-U运行maven以强制更新
#3
5
On windows:
在windows上:
- Remove folder from C:\Users\USER.m2
- 从C:\Users\USER.m2删除文件夹
- Close and open the project or force a change on file: pom.xml for saving :)
- 关闭并打开项目或强制修改文件:pom。xml保存:)
#4
5
Right Click on Project go to -> Maven -> Update project ->select Force update project check box and click on Finish.
右击项目go to -> Maven ->更新项目->select Force Update Project复选框,点击Finish。
#5
3
Step 1 : Check the proxy configured in eclipse is correct or not ? (Window->Preferences->General->Network Connections).
步骤1:检查在eclipse中配置的代理是否正确?(窗口- >首选项- >常规- >网络连接)。
Step 2 : Right Click on Project-> Go to Maven -> Update the project
步骤2:右键单击项目->转到Maven ->更新项目
Step 3: Run as Maven Install.
步骤3:作为Maven安装运行。
==== By Following these steps, i am able to solve this error.
通过以下步骤,我能够解决这个错误。
#6
1
I have faced the same issue. Try declaring missing plugin in the conf/settings.xml.
我也遇到过同样的问题。尝试在conf/settings.xml中声明缺少的插件。
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
</build>
#7
0
I had exactly the same error. My network is an internal one of a company. I downloaded neon-eclipse for java developpers. These steps worked for me:
我也有同样的错误。我的网络是一个公司的内部网络。我下载了java开发人员的neon-eclipse。这些步骤对我起了作用:
1- I downloaded a VPN client on my PC to be totally blinded from the network. Shellfire I used. Use free account and connect to Shellserver.
1-我在电脑上下载了一个VPN客户端,完全被网络蒙住了双眼。我用炮火。使用免费帐户并连接到Shellserver。
2- Inside the windows firewall, I added incoming rule for Eclipse. Navigate to where eclipse exe is found.
2-在windows防火墙内,我为Eclipse添加了传入规则。导航到找到eclipse exe的位置。
3- Perform Maven Update project.
3-执行Maven更新项目。
Then the project was able to fetch from the maven repository.
然后,项目能够从maven存储库中获取。
hope it helps.
希望它可以帮助。
#8
0
Tried everything. I deleted m2e and installed m2e version 2.7.0. Then deleted the .m2 directory and force updated maven. It worked!
尝试一切。我删除了m2e并安装了m2e版本2.7.0。然后删除.m2目录并强制更新maven。它工作!
#9
0
This fixed the same issue for me: My eclipse is installed in /usr/local/bin/eclipse
这为我解决了同样的问题:我的eclipse安装在/usr/local/bin/eclipse中
1) Changed permission for eclipse from root to owner: sudo chown -R $USER eclipse
1)将eclipse的权限从根修改为所有者:sudo chown -R $USER eclipse
2) Right click on project/Maven
right click on Update Maven
select Force update maven project
2)右键单击项目/Maven,右键单击更新Maven选择Force Update Maven项目
#1
19
Seems your settings.xml
file is missing your .m2 (local maven repo) folder.
似乎你的设置。xml文件缺少.m2(本地maven repo)文件夹。
When using eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml
and click apply.
当使用eclipse导航到窗口->首选项-> Maven ->用户设置->浏览到您的设置。xml并单击apply。
Then do maven Update Project.
然后做maven更新项目。
#2
5
If a download fails for some reason Maven will not try to download it within a certain time frame (it leaves a file with a timestamp).
如果下载由于某种原因失败,Maven将不会在特定的时间范围内尝试下载它(它会留下一个带有时间戳的文件)。
To fix this you can either
要解决这个问题,你可以选择其中之一
- Clear (parts of) your .m2 repo
- 清楚(部分)你的。
- Run maven with -U to force an update
- 使用-U运行maven以强制更新
#3
5
On windows:
在windows上:
- Remove folder from C:\Users\USER.m2
- 从C:\Users\USER.m2删除文件夹
- Close and open the project or force a change on file: pom.xml for saving :)
- 关闭并打开项目或强制修改文件:pom。xml保存:)
#4
5
Right Click on Project go to -> Maven -> Update project ->select Force update project check box and click on Finish.
右击项目go to -> Maven ->更新项目->select Force Update Project复选框,点击Finish。
#5
3
Step 1 : Check the proxy configured in eclipse is correct or not ? (Window->Preferences->General->Network Connections).
步骤1:检查在eclipse中配置的代理是否正确?(窗口- >首选项- >常规- >网络连接)。
Step 2 : Right Click on Project-> Go to Maven -> Update the project
步骤2:右键单击项目->转到Maven ->更新项目
Step 3: Run as Maven Install.
步骤3:作为Maven安装运行。
==== By Following these steps, i am able to solve this error.
通过以下步骤,我能够解决这个错误。
#6
1
I have faced the same issue. Try declaring missing plugin in the conf/settings.xml.
我也遇到过同样的问题。尝试在conf/settings.xml中声明缺少的插件。
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
</build>
#7
0
I had exactly the same error. My network is an internal one of a company. I downloaded neon-eclipse for java developpers. These steps worked for me:
我也有同样的错误。我的网络是一个公司的内部网络。我下载了java开发人员的neon-eclipse。这些步骤对我起了作用:
1- I downloaded a VPN client on my PC to be totally blinded from the network. Shellfire I used. Use free account and connect to Shellserver.
1-我在电脑上下载了一个VPN客户端,完全被网络蒙住了双眼。我用炮火。使用免费帐户并连接到Shellserver。
2- Inside the windows firewall, I added incoming rule for Eclipse. Navigate to where eclipse exe is found.
2-在windows防火墙内,我为Eclipse添加了传入规则。导航到找到eclipse exe的位置。
3- Perform Maven Update project.
3-执行Maven更新项目。
Then the project was able to fetch from the maven repository.
然后,项目能够从maven存储库中获取。
hope it helps.
希望它可以帮助。
#8
0
Tried everything. I deleted m2e and installed m2e version 2.7.0. Then deleted the .m2 directory and force updated maven. It worked!
尝试一切。我删除了m2e并安装了m2e版本2.7.0。然后删除.m2目录并强制更新maven。它工作!
#9
0
This fixed the same issue for me: My eclipse is installed in /usr/local/bin/eclipse
这为我解决了同样的问题:我的eclipse安装在/usr/local/bin/eclipse中
1) Changed permission for eclipse from root to owner: sudo chown -R $USER eclipse
1)将eclipse的权限从根修改为所有者:sudo chown -R $USER eclipse
2) Right click on project/Maven
right click on Update Maven
select Force update maven project
2)右键单击项目/Maven,右键单击更新Maven选择Force Update Maven项目