2012-10-19 109 views
0

我克隆了最新的官方存儲庫版本,並試圖運行: ./build發佈我該如何在本地maven倉庫中安裝playORM?

在我的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;[email protected] :: 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;[email protected]: 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

你不應該運行的發佈目標。這是創建的,所以我們可以發佈到開源的nexus存儲庫,以便每個人都可以依賴正式發佈的版本。

這就是說,你是否也希望能夠發佈到本地存儲庫。我們可能會創建一個新的通用目標,您將不得不提供參數,如主機,路徑,用戶名,密碼,版本等等,儘管我們的意圖是用戶只依賴於在全球maven存儲庫中發佈的新版本。

+0

好吧,我已經能夠按照以下說明將其安裝在本地存儲庫中:http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository /我創建了一個eclipse啓動,以使用m2e eclipse插件將playorm作爲版本0.0.1的本地回購庫中的依賴項安裝。發佈非常簡單,請訪問https://github.com/mvallebr/playorm/blob/master/bldfiles/playorm.launch – mvallebr

相關問題