我尝试通过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/fileI 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.
更多推荐
发布评论