0

我克隆了最后一个官方存储库版本并尝试运行:./build publish

在我的 ubuntu 中。但是,我得到了以下错误。我有一个 maven 项目,我需要向 playORM 添加一个依赖项,但我不知道该怎么做。

checkstyle:
     [echo] MAX CHECKSTYLE ERRORS ALLOWED=0
[checkstyle] Running Checkstyle 4.1 on 276 files

all:

publish:
[ivy:publish] :: delivering :: alvazan#orm;working@mvalle-POS-EIH61CE :: 20121019172025 :: integration :: Fri Oct 19 17:20:25 BRT 2012
[ivy:publish]   delivering ivy file to /tmp/playorm/input/libinclude/ivy.xml
[ivy:publish] :: publishing :: alvazan#orm

BUILD FAILED
/tmp/playorm/bldfiles/build.xml:55: impossible to publish artifacts for alvazan#orm;working@mvalle-POS-EIH61CE: java.lang.IllegalArgumentException: unknown resolver local
    at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:168)
    at org.apache.ivy.Ivy.publish(Ivy.java:611)
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:811)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 1 minute 49 seconds
4

1 回答 1

1

您不应该运行发布目标。创建它是为了让我们可以发布到开源 nexus 存储库,这样每个人都可以依赖正式发布的版本。

也就是说,您是否还希望能够发布到本地存储库。我们可能会创建一个新的通用目标,您必须为主机、路径、用户名、密码、版本等提供参数,尽管我们的意图是用户只依赖于全局 maven 存储库中发布的版本。

于 2012-10-19T21:18:41.377 回答