Is Maven 1.0.2 compatible with Java 5?

依然范特西╮ 提交于 2020-01-05 05:56:05

问题


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

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

Thanks hdk


回答1:


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.




回答2:


I am not sure if Maven 1.0.2 works with j2se 5 or not, but I would be surprised if it didn't. However, Maven 1.0.2 is an old version of Maven (Maven 1.1-RC1 is the last stable release of the 1.X branch I think) and I would strongly consider moving to Maven 2.

Initial migration from Maven 1 to Maven 2 might be painful depending on how complicated the project is, but I've found Maven 2 to be worth the the trouble overall.



来源:https://stackoverflow.com/questions/2465145/is-maven-1-0-2-compatible-with-java-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!