2019独角兽企业重金招聘Python工程师标准>>>

maven中央仓库地址pom.xml配置

<!-- 设定主仓库,按设定顺序进行查找。 -->
<repositories>

<!-- 如有Nexus私服, 取消注释并指向正确的服务器地址.
<repository>
<id>nexus-repos</id>
<name>Team Nexus Repository</name>
<url>http://127.0.0.1:8888/nexus/content/groups/public</url>
</repository> -->

<repository>
            <id>oschina-repos</id>
            <name>Oschina Releases</name>
            <url>http://maven.oschina.net/content/groups/public</url>
        </repository>
        
        <repository>
            <id>java-repos</id>
            <name>Java Repository</name>
            <url>http://download.java.net/maven/2/</url>
        </repository>
        
        <repository>
            <id>springsource-repos</id>
            <name>SpringSource Repository</name>
            <url>http://repo.spring.io/release/</url>
        </repository>
        
<repository>
<id>central-repos</id>
<name>Central Repository</name>
<url>http://repo.maven.apache.org/maven2</url>
</repository>

<repository>
<id>central-repos2</id>
<name>Central Repository 2</name>
<url>http://repo1.maven.org/maven2/</url>
</repository>

<repository>
<id>activiti-repos</id>
<name>Activiti Repository</name>
<url>https://maven.alfresco.com/nexus/content/groups/public</url>
</repository>

<repository>
<id>activiti-repos2</id>
<name>Activiti Repository 2</name>
<url>https://app.camunda.com/nexus/content/groups/public</url>
</repository>

<repository> 
<id>thinkgem-repos</id> 
<name>ThinkGem Repository</name>
<url>http://git.oschina.net/thinkgem/repos/raw/master</url>
</repository>

<repository> 
<id>thinkgem-repos2</id> 
<name>ThinkGem Repository 2</name>
<url>https://raw.github.com/thinkgem/repository/master</url>
</repository>

</repositories>

解决Failed to execute goal org.apache.maven.plugins

1.Maven构建失败

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile ( default -compile) on project oecp: Compilation failure

2.解决方法:

3.至少我是这么干的:使用自己的jdk

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\springframework\spring-beans\4.0.9.RELEASE\spring-beans-4.0.9.RELEASE.jar时出错; invalid LOC header (bad signature)

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\springframework\spring-orm\4.0.9.RELEASE\spring-orm-4.0.9.RELEASE.jar时出错; invalid LOC header (bad signature)

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\springframework\spring-jdbc\4.0.9.RELEASE\spring-jdbc-4.0.9.RELEASE.jar时出错; invalid CEN header (bad signature)

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\aspectj\aspectjrt\1.7.4\aspectjrt-1.7.4.jar时出错; invalid LOC header (bad signature)

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\aspectj\aspectjweaver\1.7.4\aspectjweaver-1.7.4.jar时出错; invalid LOC header (bad signature)

[ERROR] 错误: 读取C:\Users\user\.m2\repository\org\mybatis\mybatis\3.2.2\mybatis-3.2.2.jar时出错; invalid LOC header (bad signature)

maven提示invalid LOC header (bad signature)的解决办法

今天执行mvn test的时候提示:

错误:读取 /home/subaochen/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar 时出错;invalid LOC header (bad signature)

解决的办法是把提示的文件删掉让maven重新下载就解决了,或者删除后,pom.xml指定版本为以前存在的版本来使用

The method of type must override a superclass method解决方式

he method intercept(Invocation) of type PaginationInterceptor must override a superclass method

今天做struts2上传文件的时候出现了这个问题:

The method execute() of type UploadAction must override or implement a supertype method

@Override 时出错误:

解决办法是:

一、                                                                     
因为你的Compiler 是jdk1.5,只要把它改为 1.6

方法:

1. window ->preferences... -> java -> Compiler

2. Compiler compliance level : 6.0

二、 把项目的JRE变成6.0的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为6.0

三。 并且检查类名上是否继承了ActionSupport

org.springframework.http.converter.json.MappingJacksonHttpMessageConverter (in EnvironmentClassLoader[web-app:production/webapp/default/auto])

maven项目如何生成war文件

配置 你的pom.xml文件,在你的overview视窗里 配置 packaging为 war 然后
然后点击 pom.xml右键,run  as 选择 install 或是 package
如果项目没问题,配置没问题
就会在项目的target 的目录里生成 war文件

mvn install时报错error;

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project ik-analyzer: Compilation failure

解决方法:将项目导入eclipse中设置jdk后,在项目中install,不要在目录中直接编译

error:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin

到.m2中删除对应目录c

转载于:https://my.oschina.net/iioschina/blog/778473

maven中遇到的问题,报错相关推荐

  1. maven中引入oracle驱动报错Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0

    maven中引入oracle驱动报错Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0 问题:引入依赖之后会报错.在maven中央库中查找ojdbc, ...

  2. maven中net.sf.json报错的解决方法

    为什么80%的码农都做不了架构师?>>>    今天在用maven添加net.sf.json的jar包的时候,代码如下: <dependency><groupId& ...

  3. IDEA导入Maven项目,pom.xml文件中 有inspects a maven model for resolution problems报错 !!!!!!!!!!有用

    IDEA导入Maven项目,pom.xml文件中 有inspects a maven model for resolution problems报错 2018年08月06日 22:13:09 东方不能 ...

  4. 解决导入maven项目之后pom.xml中的project标签报错:批量删除没有下载完全的pom依赖bat脚本

    报错现象: 导入maven项目之后pom.xml中的project标签报错. 问题原因: 这个项目我来来回回导入的很多次,有些依赖没有下完全,只下了一半.当我再一次导入该项目时,那些没有下载完全的依赖 ...

  5. DEA中创建父子工程与maven打包Springboot聚合工程报错程序包不存在

    DEA中创建父子工程与maven打包Springboot聚合工程报错程序包不存在 问题描述 springboot 项目打包(package)或安装到仓库(install)的时候报错:程序包com.fu ...

  6. 解决Maven项目中pom.xml文件报错(Failure to transfer....)的问题

    解决Maven项目中pom.xml文件报错(Failure to transfer....)的问题 参考文章: (1)解决Maven项目中pom.xml文件报错(Failure to transfer ...

  7. 【报错笔记】Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号。

    Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号. 错误原因: pom.xml中依赖的jar包在本地仓库中不存在,但是在maven/conf/settings.xml中定义了阿里 ...

  8. IDEA中启动项目一直报错,找不到符号或 程序包不存在常见处理方式

    新安装的idea,配置与maven都安装好了,运行其他项目都正常,但运行某个项目时报错,提示:"Error:(4, 25) java: 找不到符号符号:类 xxx位置:程序包 xxx.xxx ...

  9. springboot项目中pom文件parent报错的解决方法

    springboot项目中pom文件parent报错的解决方法 1:首先配置maven环境 2:修改maven的settings.xml文件 3:用编辑器修改settings文件 4:设置Eclips ...

  10. 【Qt】ubuntu14.04.5 qt5.6中使用opencv3.4报错:Using GTK+ 2.x and GTK+ 3 in the same process is not supported

    问题描述 ubuntu14.04.5 qt5.6中使用opencv3.4报错: Using GTK+ 2.x and GTK+ 3 in the same process is not support ...

最新文章

  1. 全国大学生智能汽车竞赛-讯飞赛道开始报名啦!
  2. linux oracle 创建表空间2016,Linux下Oracle表空间及用户创建
  3. 如何训练解决问题的能力?
  4. 谷粒商城--API三级分类--网关统一配置跨域
  5. 【es】INDEX_CREATED the shard cannot be allocated to the same node a copy of the shard already
  6. 最近要使用User Interface Process Application Block for .NET(微软net开发架构)
  7. find linux 指定后缀_Linux下备份目录下指定的某些后缀文件
  8. Altium Designer绘制stm32最小系统原理图
  9. python interactive 清空内存_Python 进程内存增长解决方案
  10. 人这一辈子,渡你的只有两个人
  11. Java POI 导入Excell
  12. 14期《未来,我来》1月刊
  13. 异构网络互联(计算机网络)
  14. cocos creator中FBX文件不可用显示asset invalid
  15. 嵌入式linux 忘了密码,如何在Linux下解除PDF文件的密码?
  16. 四旋翼无人机学习第19节--allgero的板框导入,网表导入
  17. python之__dict__方法使用
  18. 欧特克开发者训练营(Autodesk DevCamp 2013)的视频教程可以下载
  19. 台湾清华大学物联网--003 物联网传感器与传感网络设计
  20. 坚果云 android 操作历史,#坚果云每日小技巧分享# 你也该学会使用文件历史版本了...

热门文章

  1. Cannot resolve org.glassfish.jaxb:jaxb-runtime:2.3.5 Spring Cloud建立服务中心出错,使用JDK11出错
  2. 在linux服务器上安装git
  3. 实战玩客云刷armbian及共享打印机教程
  4. 【本人秃顶程序员】程序员不要去这样的公司
  5. Ubuntu16.04 安装 CUDA、CUDNN、OpenCV 并用 Anaconda 配置 Tensorflow 和 Caffe 详细过程(此种方案不好,好的方案是另一篇,基于pyhton2的)
  6. python箭头符号怎么打_python – 用箭头标记matplotlib直方图bin
  7. 【数学建模】2019A题 高压油管的压力控制器(附带优秀论文资源文档下载)
  8. 分布式架构、大数据、机器学习、搜索、推荐、广告
  9. 碳纳米管(CNT)的全球与中国市场2022-2028年:技术、参与者、趋势、市场规模及占有率研究报告
  10. shell小实验详解1——for循环语句实现求奇数和与偶数和+小技巧使用!!!