Sorry, I think I wasn't clear...
Let's try again..
I'm going to attach a project on this issue where you can see what I'm saying.
First, do a "mvn package" on the project.
Then, go to TestMaven/target/TestMaven/WEB-INF/lib
Among other files, there's a "mentawai-1.14.1.jar" there. What I want is force Maven to rename this jar.
To understand why do I whant this, look at the "TestMaven/src/main/webapp/index.jsp" file.
The first line on thie file is:
<%@ taglib uri="/WEB-INF/lib/mentawai-1.14.1.jar" prefix="mtw" %>
Now imagine I have this line on a lot of source files, and I decide to use a new version of the library. I would have to go on any source file and correct the references.
Now, imagine Maven had renamed this jar to, say, "mentawai.jar". What I'd have on my index.jsp would be:
<%@ taglib uri="/WEB-INF/lib/mentawai.jar" prefix="mtw" %>
And if I decide to move to a different version, I don't have to correct any references.
I think we could have an addicional tag on the dependency declaration, something like this:
<finalName>mentarai.jar<finalName> <- This is a new tag
And, in the case where this new tag isn't used, Maven would use the current pattern, so it would be 100% backward compatible.