1
我在兩個項目上嘗試構建 - 一個對另一個有依賴關係。buildr upload不會創建maven-metadata.xml
buildr upload
似乎在project1上正常工作,但是當project2試圖構建它時,在我的repo中查找project1/0.0.1-SNAPSHOT/maven-metadata.xml
,這不存在。
我應該手動創建maven-metadata.xml文件嗎?它在buildr文檔中沒有提及。
這裏有從項目2建設者輸出:
...
Requesting http://repo1.maven.org/maven2/com/mydomain/project1/0.0.1-SNAPSHOT/maven-metadata.xml
Connecting to my-repo-server
connected
Downloading from /usr/share/repo/com/mydomain/project1/0.0.1-SNAPSHOT/maven-metadata.xml
Exception while invoking prerequisites of task <Buildr::CompileTask project2:compile => [(classpath deleted)]>
Exception while invoking prerequisites of task <Rake::FileTask ~/Documents/workspace/project2/bin => [project2:compile]>
Exception while invoking prerequisites of task <Rake::Task project2:build => [~/Documents/workspace/project2/bin, project2:test]>
Exception while invoking prerequisites of task <Rake::Task default => [build]>
Buildr aborted!
Net::SFTP::StatusException : Net::SFTP::StatusException (2, "no such file")
[Stacktrace deleted]