我其实是大数据背景的,想在maven方面得到一些帮助。我试图从这里获得一个json jar,以便在我的json表中使用它https://github.com/rcongiu/hive-json-serde . 我可以看到一个pom文件出现在上面的链接主页,可能是它是父pom和有其他pom文件在其他文件夹中也存在。
我想从json serde文件夹中取出构建的jar文件。我遵循以下步骤无法验证serde:org.openx.data.jsonserde.jsonserde
所以首先我对需要放在/etc/maven中的pom文件的依赖关系感到困惑
<i>`vaibhav@vaibhav-Lenovo-G570:/etc/maven$ sudo mvn -Pcdh5 clean package
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.openx.data:json-serde:1.3.8-SNAPSHOT (/etc/maven/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.openx.data:json-serde-parent:pom:1.3.8-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException`</i>
1条答案
按热度按时间pcww981p1#
您正在尝试获取maven中央存储库中不存在依赖项的快照。
如果您只需要最新发布的jar文件,那么只需从http://repo1.maven.org/maven2/org/keedio/openx/data/json-serde/1.3.7.3/json-serde-1.3.7.3.jar
如果您自己正在使用maven构建软件,则需要将以下依赖项添加到pom文件中: