Let's say I have a repository with two versions: 1.1 and 1.2:
com/mycomp/myproj/1.1/
com/mycomp/myproj/1.2/
com/mycomp/myproj/maven-metadata.xml
Latest file contents:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.mycomp</groupId>
<artifactId>myproj</artifactId>
<versioning>
<release>1.2</release>
<versions>
<version>1.1</version>
<version>1.2</version>
</versions>
<lastUpdated>20180606133322</lastUpdated>
</versioning>
</metadata>
Is there a tool or a way to remove version 1.2 and change maven-metadata.xml to not have it declared without need to manually edit the file? I researched around mvn command, but looks like it is only applicable for maven projects, while my maven repository is populated by gradle with maven plugin.