Reputation: 9198
In a java project, I have a ZIP overlay that I'd like to set the targetPath
for. The docs say only WAR is supported, not ZIP. How do you set the targetPath of jar overlay in a war? indicates that JAR is also supported. Regardless, I've tested the ZIP and targetPath in the POM seems to be ignored.
Is there a way to set the targetPath for a ZIP overlay?
To clarify:
/abc/X...
targetPath
I'm including a WAR as an overlay. It works fine. It serves "http://myapp.com/x/y/z.js"
beautifully.
But, I'd like it to serve that same content at "http://myapp.com/MYPREFIX/x/y/z.js"
.
Upvotes: 1
Views: 85
Reputation: 116
If it’s just the one prefix path, you should be able to use the web context for that. Almost all war deployment environments I’ve worked with support it - even spring boot. What web server is it being deployed under?
Upvotes: 0