maven的pom文件出现Multiple annotations found at this line...,已解决
把编好的maven项目放在另一台电脑,pom.xml出现错误
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-testCompile, phase: test-compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile)
- 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 or one of its dependencies could not be
resolved: The repository system is offline but the artifact com.google.collections:google-collections:jar:1.0 is not available in the local repository.
- CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be
resolved: The repository system is offline but the artifact com.google.collections:google-collections:jar:1.0 is not available in the local repository.
解决方法:
将maven的repository此文件夹下的所有文件删除
repository文件路径在此处可以找到
重启Eclipse IDE,在maven项目上按下Alt+F5,勾选下面两项
等它自己慢慢下载完资源就行了
可能官网下载得很慢,这就要自己配置repository,手动下载别人下载好的repository,之后的每次进入配置pom.xml就不会再从官网下载依赖,而是在自己的本地repository里找了
maven的pom文件出现Multiple annotations found at this line...,已解决相关推荐
- 【Mybatis】maven配置pom.xml时找不到依赖项(已解决)
我在配置pom.xml依赖时,会冒红. 解决方法: (1)settings->maven目录: 把maven路径改为自己的.具体操作在 [Maven]Maven安装&入门教程笔记_暮色_ ...
- JavaFX maven工程pom文件完整内容
JavaFX maven工程pom文件完整内容:打包fxml.css等静态资源文件 <project xmlns="http://maven.apache.org/POM/4.0.0& ...
- eclipse中maven项目pom文件第一行报错解决方法
eclipse中maven项目pom文件第一行报错解决方法 参考文章: (1)eclipse中maven项目pom文件第一行报错解决方法 (2)https://www.cnblogs.com/wxym ...
- Maven中pom文件详解
在IDE中使用Maven IDE工具 MyEclipse 集成maven插件 Eclipse Eclipse For Java EE IDEA 集成Maven插件 在IDE中 配置Maven 指定 ...
- maven:pom文件详细信息
一.maven项目的目录结构 pom文件定于了一个maven项目的maven配置,一般pom文件的放在项目或者模块的根目录下. maven的遵循约定大于配置,约定了如下的目录结构: 目录 目的 ...
- idea使用Maven工具pom文件报红解决方案
#idea使用Maven工具pom文件报红解决方案 很多初次使用maven的小伙伴都会碰到pom文件报红的现象,你是不是对此很苦恼,试了很多方案都无法解决,此次为大家提供一个比较完整的解决步骤,让你更 ...
- maven本地pom文件安装到本地仓库中
将Jar安装到本地仓库中方法 https://www.cnblogs.com/sunjie-one/p/11718952.html maven本地pom文件安装到本地仓库中 1 mvn install ...
- Maven的POM文件parent节点不可以使用properties里面的变量
Maven的POM文件parent节点不可以使用properties里面的变量 但是如果在子项目上的parent节点是可以使用父项目里定义的properties变量 如果一开始为单项目,或者最顶层项目 ...
- MyBatis映射器出错,已解决(Multiple annotations found at this line:)
创建UserMapper.xml文件时提示错误:Multiple annotations found at this line: - The content of element type " ...
最新文章
- 做好职业规划:做自己的船长
- 《游戏引擎架构》笔记十四
- SSM中jsp向后台Controller传值中文乱码的奇葩解决!!!
- linux下根据进程查找文件启动文件
- BZOJ3040:最短路——题解
- linux下修改max_user_processes和open_file的最大值
- 阿里云发布迁移解决方案,“迁移上云”这件事有专业的人做
- ListView列表刷新方法的区别
- Android系统(76)---ART和Dalvik区别
- 时针与分针的夹角的易错点
- 苹果Mac强大的代码编辑器:Nova
- 【转】vista下SMB共享的解决办法
- EXCEL插件《二维码标签工具》
- 【现代卫星导航系统】之北斗卫星导航系统
- 哈工大车万翔教授:ACL 2010-2020研究趋势总结
- 数据库连接池原理之手写
- redis实现分布式锁的几种方式
- 城市公交线路查询系统mysql_公交车路线查询系统后台数据库设计
- Si523超低功耗带自动寻卡13.56MHz非接触式读写器 替代MFRC523
- 干货分享 | 最新机器学习视频教程与数据集下载(持续更新......)