我是第一次在竹子上设置jgitflow发布任务。我们在父pom和下面的jgitflow配置中定义了nexus,用于从它继承的项目,如下所示。
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>1.0-m5.1</version>
<configuration>
<scmCommentPrefix>[RELEASE] </scmCommentPrefix>
<pushReleases>true</pushReleases>
<pushFeatures>true</pushFeatures>
<pushHotfixes>true</pushHotfixes>
<noFeatureBuild>true</noFeatureBuild>
<noReleaseBuild>true</noReleaseBuild>
<noHotfixBuild>true</noHotfixBuild>
<keepBranch>false</keepBranch>
<autoVersionSubmodules>true</autoVersionSubmodules>
<allowUntracked>true</allowUntracked>
<pullDevelop>true</pullDevelop>
<pullMaster>true</pullMaster>
<allowSnapshots>true</allowSnapshots>
</configuration>
</plugin>当我运行jgitflow:release-finish时,开发和主版本/标签被创建和更新,但是构建的工件并没有被推送到已配置的nexus服务器中。有没有人能告诉我有没有遗漏什么东西或者jgitflow配置有什么问题?
发布于 2019-02-26 09:07:44
我找到了问题并解决了它。我在jgitflow配置(在pom.xml中)中默认为noReleaseBuild为true,以避免在本地构建,但对于竹子上的release-finish,我通过传递-DnoReleaseBuild=true来覆盖该值。不幸的是,从日志中(通过-X启用后),我看到finish任务没有覆盖pom.xml上默认的noReleaseBuild,由于这一点,发布版本从未部署过。我删除了我在pom.xml中添加的默认配置,这会导致将工件推送到父pom上的nexus配置url。
https://stackoverflow.com/questions/54876478
复制相似问题