错误描述:
创建maven项目时报错:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
Could not write artifact lastUpdated status
/home/zheng/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp/1.0/m2e-lastUpdated.properties (没有那个文件或目录)
原因一:
maven中的maven/conf/setting.xml配置错误
将 <localRepository>/home/zheng/.m2/repository</localRepository>
修改成自己默认地址即可
原因二:
也许是你文件夹名称有问题,最好避免的关键字等名称
原因三:
你的eclipse版本太高或者太低更换一个https://www.eclipse.org/downloads/
原因四:
你的网络是公司网络,在eclipse中需要更换网络代理
window->preferences->general->network coonection

原因五:
你之前下载好的包有问题,到你<localRepository>/home/zheng/.m2/repository</localRepository>里面的地址中全部删除重新创建就可以了
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:2 个月前 )
e986496f
Bumps [actions/cache](https://github.com/actions/cache) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/a7833574556fa59680c1b7cb190c1735db73ebf0...9255dc7a253b0ccc959486e2bca901246202afeb)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: 5.0.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 5 小时前
2d50a3e4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/330a01c490aca151604b8cf639adc76d48f6c5d4...b7c566a772e6b6bfb58ed0dc250532a479d7789f)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: 6.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 5 小时前
所有评论(0)