有没有办法避免在maven发布期间标记现有的repo。以下是我们的流程
一旦提供了所有这些信息,我的构建就无法尝试执行以下命令
git push git@mygitaddress.git tagName
始终返回网络断开连接错误 收到与xx.xxx.x.xx端口22:2的断开连接:git
的身份验证失败太多以下是我的maven脚本的构建配置
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>deploy</phase>
<configuration>
<packaging>pom</packaging>
<generatePom>true</generatePom>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
<tagNameFormat>v@{project.version}</tagNameFormat>
<url>${project.distributionManagement.repository.url}</url>
<artifactId>${project.artifactId}</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
<file>${project.build.directory}/${project.build.finalName}.pom</file>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<branchName>development</branchName>
<pushChanges>true</pushChanges>
<localCheckout>true</localCheckout>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
我知道如何跳过标记部分并释放maven工件吗?对于标记,无论如何我都有不同的过程。