Maven项目中遇到的奇葩问题(续)
2017-07-10 08:51
363 查看
场景描写叙述
开发项目搞环境是一个很蛋疼的问题。总是会遇到各种奇葩的问题,上一篇文章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
相关文章推荐
- Maven项目中遇到的奇葩问题
- Maven项目中遇到的奇葩问题(续)
- 一个笨鸟在使用Eclipse导入Maven项目遇到的问题及解决方案
- reindex-maven 私服(nexus)架设以及项目管理中遇到的问题及解决方案(updating)
- java web 项目 转 maven java web 项目(旧项目 转maven)遇到的问题
- 搭建springMVC+Mybatis的Maven项目过程中遇到的问题汇总。
- maven 项目遇到的问题(不断更新中)
- maven构建项目自动部署到tomcat中遇到的各种sb问题总结
- 遇到的问题----新建maven项目ArtifactTransferException 和Execution default-testResources of goal
- 遇到问题-----maven项目右键运行或者run as运行main方法找不到类
- idea 中部署maven项目是遇到的问题
- maven项目在tomcat中运行遇到的问题
- 遇到的问题----新建maven项目ArtifactTransferException 和Execution default-testResources of goal
- 【Maven问题】应用Maven构建项目遇到的各种问题总结
- maven整合到eclipse中的android项目遇到的几个问题及解决方法
- maven构建项目自动部署到tomcat中遇到的各种sb问题总结
- maven 配置web项目时遇到的一些问题
- maven构建项目自动部署到tomcat中遇到的各种sb问题总结
- 使用Maven构建web项目遇到的一些问题
- 从svn中check out maven项目 所遇到的一系列问题: