How to remove version number from maven-publish WAR file


(shuck) #1

I’m generating a WAR file in gradle 2.3 that has no version number included as in
apply plugin: 'war’
war {
archiveName ‘myWar.war’
}

When I publish it to Artifactory (via maven publication using maven-publish plugin) it gets placed in the correct path in the repository (which includes group and version) but the name of the published war file now includes a version number as in myWar-1.0.war. I don’t want a version number placed on the actual war file. Is there a way to accomplish this?


(Jake Gage) #2

Did you ever get an answer to this question?