场景描写叙述

开发项目搞环境是一个很蛋疼的问题。总是会遇到各种奇葩的问题,上一篇文章http://blog.csdn.net/gao36951/article/details/50955526中遇到的问题,本以为攻克了就OK了。可是结果却不尽人意。攻克了一个问题,又来了另外一个问题例如以下图



查看项目的Maven生命周期例如以下



错误内容粘贴例如以下

Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from http://120.52.145.47:443/content/groups/public/ was
cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-
plugin:pom:2.5.1 from/to nexus (http://120.52.145.47:443/content/groups/public/): Not authorized by proxy , ReasonPhrase:Proxy Authorization Required.

解决方式

在project中加入例如以下。然后再看错误没有了,项目的maven生命周期也正常了

<build>
<finalName>seckill</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<excludes>
<exclude>*.jsp</exclude>
</excludes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

參考:http://www.myexception.cn/open-source/1658207.html

最新文章

  1. HIbernate二级缓存
  2. HTML5利用link标签的rel=import引入html页面
  3. 提交form表单
  4. josn
  5. E: 软件包*需要重新安装,但是我无法找到相应的安装文件。(ubuntu14.04)
  6. 【渗透测试学习平台】 web for pentester -1.介绍与安装
  7. JavaScript 的字符串转换
  8. Centos6.5(final)安装gcc和g++,python以及导致问题的解决方法
  9. C# 求斐波那契数列的前10个数字 :1 1 2 3 5 8 13 21 34 55
  10. css3媒体查询判断移动设备横竖屏
  11. WebService返回DataTable问题
  12. android开发注意点
  13. [Swift]LeetCode76. 最小覆盖子串 | Minimum Window Substring
  14. composer常用的一些命令\参数\说明
  15. windows 10下安装linux系统
  16. staff
  17. vue-cli+webpack+router+vuex---之vuex使用
  18. JavaScript获取事件对象和目标对象
  19. SpringMVC由浅入深day01_12参数绑定(12.1参数绑定过程_12.2默认支持的类型_12.3简单类型)
  20. Unity3d-Particle System系统的学习(三)

热门文章

  1. Django 外键ForeignKey中的on_delete
  2. python练习2 购物车程序
  3. Linux Mint 教程
  4. anchor_target_layer层其他部分解读
  5. JavaSE-17 泛型
  6. Python学习-列表的修改,删除操作
  7. rbac组件之权限操作(四)
  8. selenium实战演练
  9. layer弹层content写错导致div复制了一次,导致id失效 $().val() 获取不到dispaly:none div里表单的值
  10. 【区间dp+组合数+数学期望】Expression