如何通过maven下载JDK安装程序?(How to download JDK installer by maven?)

编程入门 行业动态 更新时间:2024-10-27 20:28:27
如何通过maven下载JDK安装程序?(How to download JDK installer by maven?)

我尝试通过maven下载Oracle(Sun)Java JDK,但未成功:

<dependency> <groupId>com.sun</groupId> <artifactId>jdk</artifactId> <version>6u45</version> <classifier>dlj-linux-i586</classifier> <type>bin</type> </dependency>

我应该用什么Maven仓库来下载Oracle(Sun)Java JDK?

添加

我想通过maven找到一种下载jdk-6u45-linux-i586.bin JDK安装程序的DLJ版本的方法,无需手动下载。

现在,当依赖关系配置不当或缺少Maven存储库时,我有标准的maven错误:

Missing: ---------- com.sun:jdk:bin:dlj-linux-amd64:6u45 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun -DartifactId=jdk -Dversion=6u45 -Dclassifier=dlj-linux-amd64 -Dpackaging=bin -Dfile=/path/to/file

I try to download Oracle (Sun) Java JDK via maven without success:

<dependency> <groupId>com.sun</groupId> <artifactId>jdk</artifactId> <version>6u45</version> <classifier>dlj-linux-i586</classifier> <type>bin</type> </dependency>

What maven repository should I use to download Oracle (Sun) Java JDK?

Added

I want to find a way to download DLJ version of jdk-6u45-linux-i586.bin JDK installer by maven, without manually download.

Now i have standard maven error when dependency is not configured well or a maven repository is missed:

Missing: ---------- com.sun:jdk:bin:dlj-linux-amd64:6u45 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun -DartifactId=jdk -Dversion=6u45 -Dclassifier=dlj-linux-amd64 -Dpackaging=bin -Dfile=/path/to/file

最满意答案

如何通过maven下载JDK安装程序?

你不能。 JDK安装程序不在任何公共Maven存储库中。 如果是这样,Oracle律师会发送“停止和停止”信件。

我知道你可以使用Maven exec插件(或类似的)来“解决”Oracle的点击通过许可协议。 然而,根据美国法律,这可能是非法的。 考虑一下当检察官决定以他为榜样时,“weev”发生了什么事。

How to download JDK installer by maven?

You can't. The JDK installer is not in any public Maven repository. If it was, the Oracle lawyers would be sending "cease and desist" letters.

I am aware that you could use the Maven exec plugin (or similar) to "work around" Oracle's click through license agreement. However, this is arguably illegal under US law. Consider what happened to "weev" when prosecutors decided to make an example of him.

更多推荐

本文发布于:2023-07-24 01:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1240061.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   JDK   maven   download   installer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!