java中int不兼容_mvn install命令时,一直报错:不兼容的类型 [ERROR] 找到: java.lang.Object [ERROR] 需要: int...
purplerattle 发布于 2016/04/21 17:51
阅读 2K+
收藏 0
运行环境是64位的win7,maven是3.0.5,jdk是1.6.0_43.
mvn clean命令时,是能够清理的,但执行mvn install命令时,一直报这个错,求大神指引!!!非常感谢!!!
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for cn.eshore.btsp:mobileApp:war:1.0.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 529, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mobileApp 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mobileApp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\mobileAssist\mobileApp\src\conf
[INFO] Copying 4 resources
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mobileApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1450 source files to E:\workspace\mobileAssist\mobileApp\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /E:/workspace/mobileAssist/mobileApp/src/main/java/cn/eshore/btsp/mobile/service/oaSys/SecurityTool.java:[17,16] E:\workspace\mobileAssist\mobileApp\src\main\java\cn\eshore\btsp\mobile\service\oaSys\SecurityTool.java:17: 警告:sun.misc.BASE64Encoder 是 Sun 的专用 API,可能会在未来版本中删除
.....................
此处省略了113行同样的报错
........................
[WARNING] /E:/workspace/mobileAssist/mobileApp/src/main/java/cn/eshore/btsp/mobile/security/impl/RSAImpl.java:[152,37] E:\workspace\mobileAssist\mobileApp\src\main\java\cn\eshore\btsp\mobile\security\impl\RSAImpl.java:152: 警告:sun.misc.BASE64Decoder 是 Sun 的专用 API,可能会在未来版本中删除
[WARNING] 注意:某些输入文件使用或覆盖了已过时的 API。
[WARNING] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
[WARNING] 注意:某些输入文件使用了未经检查或不安全的操作。
[WARNING] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
[INFO] 63 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/workspace/mobileAssist/mobileApp/src/main/java/cn/eshore/btsp/mobile/dao/impl/GenericHibernateDao.java:[622,59] E:\workspace\mobileAssist\mobileApp\src\main\java\cn\eshore\btsp\mobile\dao\impl\GenericHibernateDao.java:622: 不兼容的类型
找到: java.lang.Object
需要: int
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.909s
[INFO] Finished at: Thu Apr 21 16:08:10 CST 2016
[INFO] Final Memory: 24M/379M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mobileApp: Compilation failure
[ERROR] /E:/workspace/mobileAssist/mobileApp/src/main/java/cn/eshore/btsp/mobile/dao/impl/GenericHibernateDao.java:[622,59] E:\workspace\mobileAssist\mobileApp\src\main\java\cn\eshore\btsp\mobile\dao\impl\GenericHibernateDao.java:622: 不兼容的类型
[ERROR] 找到: java.lang.Object
[ERROR] 需要: int
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
java中int不兼容_mvn install命令时,一直报错:不兼容的类型 [ERROR] 找到: java.lang.Object [ERROR] 需要: int...相关推荐
- CentOS 执行 source /etc/profile命令时,报错:-bash: #: 未找到命令
问题描述: CentOS 执行 source /etc/profile命令时,报错:-bash: #: 未找到命令 如下所示: [root@localhost ~]# source /etc/prof ...
- centos6.4使用man查找命令时,报错No manual entry for xxxx
前提:安装man的命令 yum -y install man 使用man报错 [root@localhost objs]# man fcntl No manual entry for fcntl [r ...
- 执行`sudo apt-get install xx`命令时,报错问题解决
我在执行sudo apt-get install xx命令时,总是报错下面错误: 错误信息:E: Unable to acquire the dpkg frontend lock (/var/lib/ ...
- [Robot Framework] Jenkins上调用Rebot命令时执行报错不往下执行其他命令
在配置jenkins job时,添加构建步骤Execute Windows batch command,输入执行rebot命令 报错信息: Call C:\Python27\Scripts\rebot ...
- 解决Git执行pull命令时,报错:Please enter a commit message to explain why this merge is necessary...
如图所示,在pull项目代码时,出现如下报错: 1.当出现上述情况,可按Ese退出: 2.输入:wq,注意是英文输入状态下的冒号,然后按下Enter即可.(:wq是Linux操作系统的命令:强制性写入 ...
- python执行pip install 命令的时候报错 Filexxxx,line 1 pip install 的问题
解决方法: 打开cmd,直接执行要安装的模块的命令即可.不需要进入python环境.
- xampp 执行php命令,处理XAMPP环境下执行ZF命令时的报错
[错误提示]: An Error Has Occurred A project profile was not found. [错误原因]:xampp里的phpunit版本不匹配,重新安装即可 [解决 ...
- Eclipse创建web工程时,报错Dynamic Web Module 3.0 requires Java 1.6 or newer.
报错: 解决方案: 1.打开eclipse工具栏window->preferences 2.打开java->compiler 3.选择compiler compliance level在1 ...
- java 返回值判断_在Java中判断方法重载的条件除了参数外,还可以通过返回值类型判断。_学小易找答案...
[单选题]若int x;且有下面的程序片断,则输出结果是() . for (x=3; x<6; x++) { printf((x%2) ? "##%d" : "** ...
- java中任何变量都可以被赋值为null,java中当给一个对象赋值为null时发生了什么...
比如下面的代码 String[] arr = new String[10]; arr=null; 将arr这个引用置空,不指向任何对象. 上面new的那个数组对象,则没有任何引用指向它,垃圾回收器可以 ...
最新文章
- .Net Core快速创建Windows服务
- 三种云存储加密的方法
- Centos6.5下安装java1.7+apache-tomcat7.5
- C语言文件读写(5)-文件位置相关
- h3c s7506e 配置手册_H3C交换机s5500Web登录配置
- [html] 写出不定宽度的子级div,在相对于固定宽度的父级元素水平居中的布局
- CI框架开发的问答系统v3.7源码ask2在线问答解惑系统+手机版
- ibm java英语面试_IBMJava英文面试题(附参考答案)
- 先出报表还是先计提所得税_合并报表投资时点的评估增值和内部交易到底该如何理解????...
- CSS之设置p段落中的文字与页面左侧缩进两个字符!...
- Android ImageView,使用Kotlin的ImageButton
- openlayer右键菜单_OpenLayers添加右键菜单
- 输出halloword
- 计算机系统操作工中级工试卷,计算机系统操作工中级理论试题及答案.doc
- DSP大数据精准广告的介绍
- 关闭Xshell系统提示音 Tab键 Backspace键
- C# WinForm 文件夹选择控件 folderBrowserDialog 的应用实例
- 思科5505/5506防火墙配置與範例
- 北美CS求学找工指南
- 零信任实践之单包认证(SPA)