Maven 1.0.2与Java 5兼容吗? [英] Is Maven 1.0.2 compatible with Java 5?

查看:71
本文介绍了Maven 1.0.2与Java 5兼容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个升级项目,并且在Maven 1.0.2中完成了构建管理. Java版本将更改为J2SE 5.

I'm working on an upgrade project and build management is done in Maven 1.0.2. Java version will change to J2SE 5.

如果您对特定组合(Maven 1.0.2和J2SE 5)具有第一手经验,请在答案中包括

Please include in your answer if you have first hand experience on that particular combination (Maven 1.0.2 and J2SE 5)

谢谢 hdk

推荐答案

配置1.5的编译器设置(project.properties将是适当的位置):

Configure the compiler settings for 1.5 (the project.properties would be the appropriate location):

#compiler settings
maven.compile.source=1.5
maven.compile.target=1.5

我过去曾经这样做过,它确实有效.

I've done this in the past, it just works.

这篇关于Maven 1.0.2与Java 5兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆