Could not find artifact com.sun.kvem:kenv:jar:2.2 in central

半腔热情 提交于 2020-01-03 04:57:07

问题


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]

When I browse central (here), there is indeed no such jar in the central repository.

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?


回答1:


you need to do:

mvn install:install-file -DgroupId=com.sun.kvem -DartifactId=kenv -Dversion=kenv -Dfile=com.sun.kvem-2.2.jar -Dpackaging=jar  -Dgenerate-pom=true


来源:https://stackoverflow.com/questions/6221759/could-not-find-artifact-com-sun-kvemkenvjar2-2-in-central

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