As it happens, I have also been working on making site redirects for pages
that have moved.

I found placing a plain html file in src/site/resources/ works fine as one
would expect. They are not soft links though, just basic HTML with meta
refresh redirects and javascript redirects as a fallback.

I should try soft links, but I'm not sure my host (GitHub Pages) would
honor them.

My next thought was that making a redirect file for every page that needs
redirecting is a lot of noise and duplication in the repo, and perhaps
there's a better way to generate them, e.g. a single template that could be
reused for multiple redirect pages. It may be getting close to needing a
custom plugin.

On Tue, Nov 28, 2023 at 11:36 AM sebb <seb...@gmail.com> wrote:

> Is it possible to generate soft-links as part of a site build?
>
> I tried adding them to the resources/ folder, but they were ignored.
>
> Sebb
> P.S. No, I cannot use redirects; there needs to be a physical file at
> that site location
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to