在中央找不到工件com.sun.kvem:kenv:jar:2.2 [英] Could not find artifact com.sun.kvem:kenv:jar:2.2 in central
本文介绍了在中央找不到工件com.sun.kvem:kenv:jar:2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在maven项目中编译Proguard 4.6的源代码.该代码依赖于:
I am trying to compile the source code of Proguard 4.6 in a maven project. The code has a dependency on:
<dependency>
<groupId>com.sun.kvem</groupId>
<artifactId>kenv</artifactId>
<version>2.2</version>
<optional>true</optional>
<type>jar</type>
</dependency>
当我尝试编译它时,我得到:
When I try compile it, I get:
Failed to execute goal on project proguard:
Could not resolve dependencies for project net.sf.proguard:proguard:jar:4.6:
Could not find artifact com.sun.kvem:kenv:jar:2.2 in central
(http://repo1.maven.org/maven2) -> [Help 1]
当我浏览中央窗口时(此处),实际上没有这样的jar中央存储库.
When I browse central (here), there is indeed no such jar in the central repository.
我不知道kvem是什么.为什么在pom.xml中将其声明为type=jar
,为什么不在中央存储库中将其声明为?我该如何解决这个问题?
I don't know what kvem is. Why is it declared as type=jar
in the pom.xml and why isn't it in central repository? How do I solve this issue?
推荐答案
您需要这样做:
mvn install:install-file -DgroupId=com.sun.kvem -DartifactId=kenv -Dversion=kenv -Dfile=com.sun.kvem-2.2.jar -Dpackaging=jar -Dgenerate-pom=true
这篇关于在中央找不到工件com.sun.kvem:kenv:jar:2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文