构建maven项目时。我收到以下错误。maven构建错误
[ERROR]Runtime Exception thrown during execution [ERROR]The scm url cannot be null.
请教我如何解决它。
感谢
构建maven项目时。我收到以下错误。maven构建错误
[ERROR]Runtime Exception thrown during execution [ERROR]The scm url cannot be null.
请教我如何解决它。
感谢
是什么在你pom.xml文件?
目前尚不清楚您要执行什么目标,但错误是自我解释:你需要添加一个SCM元素:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
...
<scm>
<connection>scm:svn:http://127.0.0.1/svn/my-project</connection>
<developerConnection>scm:svn:https://127.0.0.1/svn/my-project</developerConnection>
<tag>HEAD</tag>
<url>http://127.0.0.1/websvn/my-project</url>
</scm>
...
</project>
的问题可能是由于在单片机部分缺失developerConnection您POM。这可能会导致您正在报告的(误导性)错误消息:http://jira.codehaus.org/browse/MOJO-1014
如果您可以发布您的POM副本以及您尝试执行的目标,这将有所帮助。
+1,正确答案 – dfa 2010-01-28 13:38:47