如何在本地maven仓库中安装playORM?

时间:2012-10-19 20:24:21

标签: playorm

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

在我的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

1 个答案:

答案 0 :(得分:1)

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

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