Snapshot version is not published on snapshot repository but release version is published instead.
Release is successful. No errors.
Only change is upgrade of release plugin from 2.3.2 to 2.5.2
Also tried 2.5.1 and 2.5.3 but none worked.
Using apache maven 3.5.0
Steps:
- mvn clean install
- mvn release:prepare
- mvn release:perform
Output: Build Success in all three
Not sure if I can attach actual logs
snippet pom.xml
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<artifactId>maven-overview-plugin</artifactId>
<version>1.6</version>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5</version>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<scmCommentPrefix>: Release by maven </scmCommentPrefix>
<tagNameFormat>bcd-@{project.version}</tagNameFormat>
<arguments>-Denvironment=target</arguments>
</configuration>
<repository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<distributionManagement>
<repository>
<id>arm</id>
<name>Internal release Repository</name>
<url>url1</url>
</repository>
<snapshotRepository>
<id>arm</id>
<name>Internal Repository</name>
<url>url2</url>
</snapshotRepository>