Skip to content

URL mapping #3

Description

@cha55son

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions