maven-release-plugin deploys snapshot to archiva

半世苍凉 提交于 2019-12-06 02:58:50
Tarator

I found the problem: The problem is, that I needed to update the maven-scm-provider-gitexe dependency, for the maven-release-plugin (version 2.4.2), when using Git as SCM:

<build>
    <plugins>
        ....
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.4.2</version>
            <dependencies>
                <dependency>
                    <groupId>org.apache.maven.scm</groupId>
                    <artifactId>maven-scm-provider-gitexe</artifactId>
                    <version>1.9</version>
                </dependency>
            </dependencies>
        </plugin>
    </plugins>
</build>

I found the solution here: mvn release:prepare not committing changes to pom.xml

You can find a working example here: https://github.com/tarator/releaseplugintest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!