我使用Jenkins来构建我的项目。我使用“maven-release-plugin”和“release plugin”,这两个插件都已安装在Jenkins中。我们在构建我的项目时收到以下错误消息,请任何人帮助我解决这个问题。我们想在JFrog中上传工件,而不是Git。我们想自动增加工件的版本。
错误:
无法在项目上执行goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare(default-cli)测试:scm url无效。
命令:mvn -B clean release:prepare release:perform
pom.xml:
<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">
<modelVersion>4.0.0</modelVersion>
<groupId></groupId>
<artifactId></artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name></name>
<url></url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jackson.version>2.9.8</jackson.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath />
</parent>
<scm>
<connection>scm:cvs:https://na.artifactory.swg-devops.com/artifactory/gbs-copra-team-ipat-dev-maven-local/</connection>
<url>https://na.artifactory.swg-devops.com/artifactory</url>
<developerConnection>scm:cvs:https://na.artifactory.swg-devops.com/artifactory/gbs-copra-team-ipat-dev-maven-local/</developerConnection>
</scm>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
1条答案
按热度按时间uqzxnwby1#
这些都不起作用。你可以看到here cvs支持的内容:
CVS SCM URL的一般格式为
支持以下方法:
我不知道你想做什么,但是https上的cvs不起作用。你确定你真的在用cvs吗?