buildr upload不会创建maven-metadata.xml

时间:2012-10-25 13:11:49

标签: maven maven-2 buildr maven-metadata

我在两个项目上尝试构建器 - 一个依赖于另一个项目。

buildr upload似乎在project1上运行正常,但是当project2尝试构建时,它会在我的仓库中查找project1/0.0.1-SNAPSHOT/maven-metadata.xml,但它不存在。

我应该手动创建maven-metadata.xml文件吗?它在构建器文档中没有提到。

这里是project2上构建器的输出:

...
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 个答案:

答案 0 :(得分:1)

是的,buildr不会创建这种类型的Maven工件。