Maven项目中遇到的奇葩问题(续)
2024-10-16 00:45:26
场景描写叙述
开发项目搞环境是一个很蛋疼的问题。总是会遇到各种奇葩的问题,上一篇文章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>
最新文章
- HIbernate二级缓存
- HTML5利用link标签的rel=import引入html页面
- 提交form表单
- josn
- E: 软件包*需要重新安装,但是我无法找到相应的安装文件。(ubuntu14.04)
- 【渗透测试学习平台】 web for pentester -1.介绍与安装
- JavaScript 的字符串转换
- Centos6.5(final)安装gcc和g++,python以及导致问题的解决方法
- C# 求斐波那契数列的前10个数字 :1 1 2 3 5 8 13 21 34 55
- css3媒体查询判断移动设备横竖屏
- WebService返回DataTable问题
- android开发注意点
- [Swift]LeetCode76. 最小覆盖子串 | Minimum Window Substring
- composer常用的一些命令\参数\说明
- windows 10下安装linux系统
- staff
- vue-cli+webpack+router+vuex---之vuex使用
- JavaScript获取事件对象和目标对象
- SpringMVC由浅入深day01_12参数绑定(12.1参数绑定过程_12.2默认支持的类型_12.3简单类型)
- Unity3d-Particle System系统的学习(三)
热门文章
- Django 外键ForeignKey中的on_delete
- python练习2 购物车程序
- Linux Mint 教程
- anchor_target_layer层其他部分解读
- JavaSE-17 泛型
- Python学习-列表的修改,删除操作
- rbac组件之权限操作(四)
- selenium实战演练
- layer弹层content写错导致div复制了一次,导致id失效 $().val() 获取不到dispaly:none div里表单的值
- 【区间dp+组合数+数学期望】Expression