1.ReasonPhrase: Forbidden:

|--- 1.注意用户的权限以及角色role的设置,一般是没有权限才会被禁止的。

2.Failed to collect dependencies:

|--- 1.需要把parent工程,也就是package是pom的那个工程先install一下,或者deploy

|--- 2.需要注意在设置的工厂里面是否可以访问,如果直接访问public分组,那么就要检查public分组是否添加了自己设置的工厂

3.child module ....pom.xml does not exist:

|---- 1.注意module的名称是否正确,有时候命名问题会导致找不到项目的

|---- 2.注意一开始项目命名的规则问题

4.Cannot detect Web Project version. Please specify version of Web Project through configuration property of war plugin. E.g.: maven-war-plugin 3.0

|---- 1.和第五条一样在pom.xml加入plugin多的定义即可

5.Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project marer-test-weixin: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

|---- 1.加入以下插件引用:主要是因为没有指定web.xml的位置,在pom.xml中加入

6.javax.servlet.jsp.PageContext cannot be resolved to a type

|---- 1.这是因为没有引入jsp-api引发的问题,在pom.xml引入:

7.Failed to clean project: Failed to delete F:\project\Stest......\target

|---- 1.重新使用命令clean一遍即可

8.The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

|---- 1.注意:jsp-api的依赖的scope一定要provide,即不打包进去,否则会和tomcat冲突     j

9.java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld

|---- 1.缺少Spring的aspects的jar包,在pom.xml中引入

|---- 2.注意Spring的ORM框架也要导入,读取配置文件失败,原因是因为不能给txManager和hibernate注入Bean

|---- 3.注意2:我在上面已经用全局变量指定了Spring的...

10.Spring注入失败,【在action中注入service的对象或在service中注入dao对象】发生空指针异常

|---- 1.首先需要确定你的配置文件是否起了作用:applicationContext.xml是否已经在使用了

|---- 2.确定所有的properties文件是正确无误的

|---- 3.确定是否使用了struts2-spring-plugin依赖:

11.-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

|---- 1.eclipse中使用maven插件的时候,运行run as maven build的时候报错,是因为JDK有问题

|---- 2.如果确定自己的Eclipse中的Window->Preference->Java->Installed JREs 设置好对应的JDK环境

|---- 3.在Default VM arguments中加入:-Dmaven.multiModuleProjectDirectory=$M2_HOME

12.Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jiabo-motor:Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepositor

|--- 1.deploy的设置没有设置好,这是因为在Maven中使用了Nexus中央仓库,但是在项目的pom.xml中没有设置

|--- 2.加入如下设置:【自己之前自定义的deploy的地址】

13. The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

|---缺少jstl的包,在pom.xml加入

14. SSH和SpringMVC框架在使用IDE自带的tomcat管理的情况下,需要加入Servlet.api以及设置他的声明周期为

15.overlay [ id com.6dianedu:liudian-web] is not a dependency of the project

|---将需要打包的项目依赖进来,加入war属性

16.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.shiro:shiro-core:jar:${shiro.version}: ArtifactResolutionException: Failure to transfer org.apache.shiro:shiro-core:pom:${shiro.version} from http://localhost:8081/nexus/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.shiro:shiro-core:pom:${shiro.version} from/to nexus

这是由于在pom.xml里面的依赖使用了定义的变量${shiro.version},但是却没有在...中进行定义,只要在pom.xml加上定义即可

转自-------------------https://blog.csdn.net/nthack5730/article/details/46633287

Maven 常见错误的更多相关文章

  1. Maven常见错误以及解决方案【转载】

    常见的Maven错误 当遇到401错误的时候,看看自己当前使用的Maven是集成的还是自己下载的,然后去配置setting.xml文件

  2. maven 常见错误解决方法

    1. 最重要的一点,使用国内镜像,比如 oschina.net 的镜像: 搜 jar 推荐:http://maven.outofmemory.cn/,速度极快. 2. 错误:Could not res ...

  3. maven常见错误

    摘要: 1.Java-maven异常-cannot be cast to javax.servlet.Filter 报错  tomcat 启动后先将tomcat/lib目录下的jar包全部读入内存,如 ...

  4. maven 常见错误解决

    1. maven打包编译时后台一直输出警告信息 [WARNING] File encoding has not been set, using platform encoding GBK, i.e. ...

  5. Hbase常见错误解决方法

    Hbase常见错误解决方法 原文转载至:https://www.jianshu.com/p/5fd74812c56c   我是通过maven管理的依赖,直接修改maven依赖中hbase的版本就可以了 ...

  6. dubbo 常见错误 通配符的匹配很全面, 但无法找到元素 'dubbo:application' java.lang.reflect.MalformedParameterizedTypeException 通配符的匹配很全面, 但无法找到元素 'dubbo:application' 的声明。 Unsupported major.minor version 52.0 (unable to l

    dubbo 常见错误 1. Caused by: java.lang.reflect.MalformedParameterizedTypeException 启动时报错,原因是dubbo 依赖 spr ...

  7. DevOps 之 Jenkins 安装、配置、美化、插件及常见错误处理

    继续上一篇的话题,既然已经搭建了 GitLab 的代码仓库,那么现在就可以开始进行下一步持续集成环境的搭建了.公司准备利用 Jenkins CI 进行持续集成,本文记录了 Jenkins 的安装.基础 ...

  8. 初识JAVA(二)(送给Java和安卓初学者)----常见错误

    博主接着上篇的来讲哦,以后的更新中,博主会出一些练习题,有兴趣的可以做做然后吧代码粘贴到下面,大家可以一起研究学习,一起进步,本篇文章主要讲的是: 一.常见错误 二.连接上篇一起的训练 无论是什么方向 ...

  9. ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock

    ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock 通过终端安装程序sudo apt-get install xxx时出错:E: Could not ...

随机推荐

  1. 科赫曲线和科赫雪花的绘制Python

    #KochDrawV1.pyimport turtledef koch(size,n): if n == 0: turtle.fd(size) else: for angle in [0,60,-12 ...

  2. kubernetes下安装mysql

    参考文档:https://blog.csdn.net/sealir/article/details/81177747 注:有mysql安装在k8s集群内,集群外且通过k8s service endpo ...

  3. 爬虫--requests模块高级(代理和cookie操作)

    代理和cookie操作 一.基于requests模块的cookie操作 引言:有些时候,我们在使用爬虫程序去爬取一些用户相关信息的数据(爬取张三“人人网”个人主页数据)时,如果使用之前requests ...

  4. git 和 github 学习总结

    https://mp.weixin.qq.com/s?src=11&timestamp=1543302553&ver=1269&signature=NAX65qusuVVDEl ...

  5. 130. Surrounded Regions 卧槽!我半梦半醒之间做出来的。

    打开这个题,做了一半躺下了. 结果,怎么都睡不着.一会一个想法,忍不住爬起来提交,要么错误,要么超时. 按照常规思路,依次对每个点检测是否是闭包,再替换,超时.计算量太大了. 还能怎么做呢?没思路,关 ...

  6. css- 范围选择

    1.子元素范围选择 举例 .iconList_wr li:nth-child(n + 1):nth-child(-n + 4) { margin-right: 0.6rem; } .iconList_ ...

  7. java 线程状态相关测试

    1. 启动netty server 等待接受客户端连接 package io.netty.example.myTest.nio; import java.io.IOException; import ...

  8. cxgrid合并值相同的某列

    设置 cxGrid 的某列的 CellMerging 属性可使这一列相同值的单元格合并. 1)cxGridDBTableViewColumn1.Options.CellMerging:=true  2 ...

  9. myeclipse提示错误。

    Syntax error, parameterized types are only available if source level is 1.5 解决方法:编译器问题.注意myeclipse10 ...

  10. linux 3.10的list_del

    最近看到一个page的数据比较奇怪: crash> page ffffea002c239c58 struct page { flags = , _count = { counter = 34-- ...