gpt4 book ai didi

scala - sbt,publishLocal,解决错误

转载 作者:行者123 更新时间:2023-12-05 00:18:48 26 4
gpt4 key购买 nike

我想将我的工件推送到本地 ivy 存储库,以便将它们用作其他项目中的依赖项。

我的工件的 build.scala:

name := "jsonApi"
organization := "com.github.kondaurovdev"
version := "0.1-SNAPSHOT"
scalaVersion := "2.11.7"

运行发布本地任务:
> publishLocal
[info] Packaging /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/jsonapi_2.11-0.1-SNAPSHOT-sources.jar ...
[info] Wrote /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/jsonapi_2.11-0.1-SNAPSHOT.pom
[info] :: delivering :: com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT :: 0.1-SNAPSHOT :: integration :: Mon May 16 12:07:08 MSK 2016
[info] Done packaging.
[info] delivering ivy file to /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/ivy-0.1-SNAPSHOT.xml
[info] Main Scala API documentation to /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/api...
[info] Compiling 51 Scala sources to /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/classes...
model contains 97 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/jsonapi_2.11-0.1-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging /home/user256/Projects/kondaurov/jsonApi/target/scala-2.11/jsonapi_2.11-0.1-SNAPSHOT.jar ...
[info] Done packaging.
[info] published jsonapi_2.11 to /home/user256/.ivy2/local/com.github.kondaurovdev/jsonapi_2.11/0.1-SNAPSHOT/poms/jsonapi_2.11.pom
[info] published jsonapi_2.11 to /home/user256/.ivy2/local/com.github.kondaurovdev/jsonapi_2.11/0.1-SNAPSHOT/jars/jsonapi_2.11.jar
[info] published jsonapi_2.11 to /home/user256/.ivy2/local/com.github.kondaurovdev/jsonapi_2.11/0.1-SNAPSHOT/srcs/jsonapi_2.11-sources.jar
[info] published jsonapi_2.11 to /home/user256/.ivy2/local/com.github.kondaurovdev/jsonapi_2.11/0.1-SNAPSHOT/docs/jsonapi_2.11-javadoc.jar
[info] published ivy to /home/user256/.ivy2/local/com.github.kondaurovdev/jsonapi_2.11/0.1-SNAPSHOT/ivys/ivy.xml

似乎一切正常,但是当我在依赖于该工件的项目中运行更新任务时,我收到了一些错误:
> update
[info] Updating {file:/home/user256/Projects/apiAdmin/back/}apiAdmin...
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT: java.text.ParseException: [unknown tag project in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag modelVersion in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag groupId in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag artifactId in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag packaging in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag description in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag version in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag organization in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag licenses in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag license in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag distribution in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag scm in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag connection in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag developers in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag developer in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag id in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[warn] ]
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.github.kondaurovdev:jsonapi_2.11:0.1-SNAPSHOT (/home/user256/Projects/apiAdmin/back/build.sbt#L7)
[warn] +- com.github.kondaurovdev:apiadmin_2.11:0.1-SNAPSHOT
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT: java.text.ParseException: [unknown tag project in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag modelVersion in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag groupId in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag artifactId in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag packaging in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag description in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag version in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag organization in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag licenses in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag license in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag distribution in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag scm in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag connection in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag developers in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag developer in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag id in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag name in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] , unknown tag url in file:/home/user256/.ivy2/cache/com.github.kondaurovdev/jsonapi_2.11/ivy-0.1-SNAPSHOT.xml.original
[error] ]
[error] Total time: 2 s, completed May 16, 2016 12:12:14 PM

怎么了?

最佳答案

我从 ~./.ivy2/cache 中删除了 com.github.kondaurovdev 并再次运行更新任务:

> update
[info] Updating {file:/home/user256/Projects/apiAdmin/back/}apiAdmin...
[info] Resolving com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT ...
[warn] Choosing local for com.github.kondaurovdev#jsonapi_2.11;0.1-SNAPSHOT
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.

好像没问题

关于scala - sbt,publishLocal,解决错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37250377/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com