It would be great if there was a method of mapping URLs to the filesystem. For instance if my app has a prefix (like /apps) this plugin won't work by default because the URLs in the HTML won't line up with the file system structure. Something like the following could be useful:
<img src="/apps/app1/logo.png">
and my directory structure looks like this:
src/main/webapp/app1/logo.png
then set the following map in the pom.xml:
<urlMappings>
<urlMapping>
<urlPrefix>/apps/</urlPrefix>
<fsPath>/</fsPath>
</urlMapping>
</urlMappings>
The outcome would be a straightforward find/replace with the mappings. So /apps/app1/logo.png would map to /app1/logo.png on the file system.
It would be great if there was a method of mapping URLs to the filesystem. For instance if my app has a prefix (like
/apps) this plugin won't work by default because the URLs in the HTML won't line up with the file system structure. Something like the following could be useful:and my directory structure looks like this:
then set the following map in the pom.xml:
The outcome would be a straightforward find/replace with the mappings. So
/apps/app1/logo.pngwould map to/app1/logo.pngon the file system.