构建maven项目时。我收到以下错误。
[ERROR]Runtime Exception thrown during execution [ERROR]The scm url cannot be null.
请提示我如何解决它。
谢谢
最佳答案
不清楚您正在执行什么目标,但错误看起来不言自明:您需要添加 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>
关于java - maven构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2154766/