2012-10-25 16 views
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] 

回答

1

是,buildr不会产生这种类型的Maven的文物。