Maven build error

when creating the maven project. I get the following error.

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

Please tell me how to solve it.

thank

+3
source share
3 answers

It is not clear what purpose you are fulfilling, but the error looks self-learning: you need to add an 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>
+7
source

Take a look at: Disable Maven SCM

What is in your pom.xml file?

0
source

The problem may be due to the lack of a developer node in the SCM section of your POM. This can lead to an error message (misleading) message: http://jira.codehaus.org/browse/MOJO-1014

This will help if you can post a copy of your POM and the goal you are trying to accomplish.

0
source

Source: https://habr.com/ru/post/1730384/


All Articles