从Oracle JDK迁移到OpenJDK [英] Migrating to OpenJDK from Oracle JDK

查看:1013
本文介绍了从Oracle JDK迁移到OpenJDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力将我的项目从Oracle JDK迁移到打开JDK。

I'm working on migrating my project from Oracle JDK to open JDK.

作为开发的一部分,我还想用我的所有Oracle许可罐替换等效的开源许可证罐。现在有相当多的。

As a part of the development I also want to replace all my Oracle licensed jars with equivalent open source license jars. Now there are quite a lot of it.

该项目是maven构建的,所有依赖项都在pom文件中。

The project is maven built and all the dependencies are in the pom file.

我想知道是否有办法使用我的pom.xml文件并使用等效的开源jar获取我的所有罐子?

I was wondering if there is a way to use my pom.xml file and get all my jars with equivalent open source jars?

截至目前我' m手动转到每个jar的发行说明并检查开源许可证。

As of now I'm manually going to each jar's release notes and checking for an Open source license.

这里当我说Oracle许可时,我的意思是它不是一个开源jar。

Here when I say Oracle licensed I mean it is not an Open source jar.

感谢帮助!!!!干杯!!!

Appreciate the help!!!! Cheers !!!

推荐答案

运行此Maven插件,获取项目依赖所需的所有不同许可证的报告: http://maven.apache.org/plugins/maven- project-info-reports-plugin / license-mojo.html

Run this Maven plugin to get a report of all the different licenses your project's dependencies need: http://maven.apache.org/plugins/maven-project-info-reports-plugin/license-mojo.html

您可能需要在命令按预期工作之前配置报告: http://maven.apache.org /plugins/maven-project-info-reports-plugin/examples/selective-project-info-reports.html

You might need to configure the report before the command works as expected: http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/selective-project-info-reports.html

下一步是识别您想要替换的依赖项并找到开源替代方案。

The next step is then to identify the dependencies that you want to replace and find open source alternatives.

注意:做所有开源代码都值得称赞(我自己尝试)但是OpenJDK 6和7没有得到相同数量的测试和爱比官方的Oracle JDK版本。我和他们两个都遇到了很多问题而且我远离他们 - 他们浪费了我太多的时间。 OpenJDK 8可能会更好,但我无法确定。

Note: Doing everything open source is commendable (I try it myself) but OpenJDK 6 and 7 didn't receive the same amount of testing and "love" than the official Oracle JDK releases. I had numerous problems with both of them and I stay away from them - they have wasted too much of my time. Things are probably better with OpenJDK 8 but I can't tell for sure.

这篇关于从Oracle JDK迁移到OpenJDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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