把编好的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...,已解决相关推荐

  1. 【Mybatis】maven配置pom.xml时找不到依赖项(已解决)

    我在配置pom.xml依赖时,会冒红. 解决方法: (1)settings->maven目录: 把maven路径改为自己的.具体操作在 [Maven]Maven安装&入门教程笔记_暮色_ ...

  2. JavaFX maven工程pom文件完整内容

    JavaFX maven工程pom文件完整内容:打包fxml.css等静态资源文件 <project xmlns="http://maven.apache.org/POM/4.0.0& ...

  3. eclipse中maven项目pom文件第一行报错解决方法

    eclipse中maven项目pom文件第一行报错解决方法 参考文章: (1)eclipse中maven项目pom文件第一行报错解决方法 (2)https://www.cnblogs.com/wxym ...

  4. Maven中pom文件详解

    在IDE中使用Maven IDE工具 MyEclipse 集成maven插件 Eclipse ​ Eclipse For Java EE IDEA 集成Maven插件 在IDE中 配置Maven 指定 ...

  5. maven:pom文件详细信息

    一.maven项目的目录结构 ​ pom文件定于了一个maven项目的maven配置,一般pom文件的放在项目或者模块的根目录下. ​ maven的遵循约定大于配置,约定了如下的目录结构: 目录 目的 ...

  6. idea使用Maven工具pom文件报红解决方案

    #idea使用Maven工具pom文件报红解决方案 很多初次使用maven的小伙伴都会碰到pom文件报红的现象,你是不是对此很苦恼,试了很多方案都无法解决,此次为大家提供一个比较完整的解决步骤,让你更 ...

  7. maven本地pom文件安装到本地仓库中

    将Jar安装到本地仓库中方法 https://www.cnblogs.com/sunjie-one/p/11718952.html maven本地pom文件安装到本地仓库中 1 mvn install ...

  8. Maven的POM文件parent节点不可以使用properties里面的变量

    Maven的POM文件parent节点不可以使用properties里面的变量 但是如果在子项目上的parent节点是可以使用父项目里定义的properties变量 如果一开始为单项目,或者最顶层项目 ...

  9. MyBatis映射器出错,已解决(Multiple annotations found at this line:)

    创建UserMapper.xml文件时提示错误:Multiple annotations found at this line: - The content of element type " ...

最新文章

  1. 做好职业规划:做自己的船长
  2. 《游戏引擎架构》笔记十四
  3. SSM中jsp向后台Controller传值中文乱码的奇葩解决!!!
  4. linux下根据进程查找文件启动文件
  5. BZOJ3040:最短路——题解
  6. linux下修改max_user_processes和open_file的最大值
  7. 阿里云发布迁移解决方案,“迁移上云”这件事有专业的人做
  8. ListView列表刷新方法的区别
  9. Android系统(76)---ART和Dalvik区别
  10. 时针与分针的夹角的易错点
  11. 苹果Mac强大的代码编辑器:Nova
  12. 【转】vista下SMB共享的解决办法
  13. EXCEL插件《二维码标签工具》
  14. 【现代卫星导航系统】之北斗卫星导航系统
  15. 哈工大车万翔教授:ACL 2010-2020研究趋势总结
  16. 数据库连接池原理之手写
  17. redis实现分布式锁的几种方式
  18. 城市公交线路查询系统mysql_公交车路线查询系统后台数据库设计
  19. Si523超低功耗带自动寻卡13.56MHz非接触式读写器 替代MFRC523
  20. 干货分享 | 最新机器学习视频教程与数据集下载(持续更新......)

热门文章

  1. 如何一站式打造 AIoT 人才?
  2. 即使到了 2020 年,编程语言之争仍未休!
  3. 斗鱼上岸:草根突围,直播逆袭!
  4. 不写一行代码就能玩转 Kaggle 竞赛?
  5. 微软推出新逆天开源语言,告别 for 循环,提高开发效率!
  6. 意大利不禁止华为;13 款 5G 手机时间表公布;亚马逊 CEO 遭威胁 | 极客头条
  7. Android 要收费?周鸿祎:这是迟早的事!
  8. 苹果高通“情变”祸及所有中国 iPhone 用户!
  9. Google 是如何成为巨头的?
  10. 北上广等一线城市 IT 岗位已接近饱和?