I am building a war file using the War plugin. During the assembly of the WAR file JARs will be added to the WEB-INF/lib directory. I would like to strip the version number from the file name while the WAR is being assembled. The reason I need to do this is so I can do an accurate compare with an existing WAR file.
Renaming files is pretty straight forward using the “rename” in the “war” closure…however, I have found that only the files from src/main/webapp are passed to the rename function and NOT the dependent JAR files.
I have a similar problem with the ear plugin. We need to have the wars in the ear without a version number, because otherwise the Weblogic portal framework will choke.