Я пытаюсь выполнить mvn release:prepare
команду, но я получаю сообщение scm connection или connectionconnection.
У меня есть раздел <scm>
в pom.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
...
<scm>
<connection>scm:git:https://github.com/repository-name</connection>
<developerConnection>scm:git:https://github.com/repository-name</developerConnection>
<url>https://github.com/repository-name</url>
</scm>
</project>
Версия Maven - 3.2.3. Что не так?
Из О.П. Антон Головин комментарии, добавив .git
в конце <scm>
элементов было достаточно:
<scm>
<connection>scm:git:https://github.com/repository-name.git</connection>
<developerConnection>scm:git:https://github.com/repository-name.git</developerConnection>
<url>https://github.com/repository-name.git</url>
</scm>
.git
в конце каждого элемента<scm>
. Спасибо.