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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值