I searched the mail archives because of the following problem:
Hi,
Does anybody know if you can have Maven deploy the jars that end up in
webapp/WEB-INF/lib without the *version* *information* in the filename?
Thanks,
Jpl
Ok, i found a solution which works for me with maven 1.
In your maven.xml file define a pregoal for the war plugin:
<postGoal name="war:webapp">
<!-- # copy jars to client directory and removeing version info from
filenames -->
<ant:copy todir="${maven.war.webapp.dir}/client">
<fileset dir="${maven.home.local
}/repository/quipus-dispofleet/jars">
<ant:include name="XXX-1.0-SNAPSHOT.jar"/>
<ant:include name="YYY-0.1-SNAPSHOT.jar"/>
<ant:include name="Z-Z-Z-1.0.7.jar"/>
</fileset>
<!-- # here comes the ant mapper which removes the version info from all
files as log as they fit the naming pattern used by maven -->
<mapper type="regexp" from="(.*)(-[0-9].*\.jar)"
to="\1.jar"/>
</ant:copy>
this removes the version part when copying the files.
Hope this will help, or give you a new idea how to find a solution
Uli