Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven build error

when building a maven project. i am getting the following error.

[ERROR]Runtime Exception thrown during execution
[ERROR]The scm url cannot be null.

Please hint me on how to resolve it.

Thanks

like image 335
TrustyCoder Avatar asked Feb 28 '23 17:02

TrustyCoder


1 Answers

It is not clear what goal you are executing but the error looks self explaining: you need to add a SCM element:

<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>
like image 140
Pascal Thivent Avatar answered Mar 05 '23 16:03

Pascal Thivent