Maven build - webserver resources in frameworks
Maven build - webserver resources in frameworks
- Subject: Maven build - webserver resources in frameworks
- From: Steven Meyer via Webobjects-dev <email@hidden>
- Date: Thu, 5 Mar 2020 10:44:57 -0500
Greetings,
I’m in the middle of converting a group of fairly ancient applications from Ant
builds to Maven. The process has been remarkably smooth, but I’m caught on the
issue referenced in the subject.
Our existing ant builds result in the following structure in the web server
resources portion of the split artifiact
MyApp.woa
Contents
WebserverResources
<application WS resources>
Frameworks
MyFramework.framework
WebserverResources
<framework WS resources>
which is expected because the “split” target in build.xml deliberately lifts
Frameworks from under Contents and makes it a sibling. As far as I can tell,
that’s still standard behavior.
The wolifecycle-maven-plugin doesn’t seem to do that, so the web server
resources portion of the split artifact looks like this
MyApp.woa
Contents
WebserverResources
<application WS resources>
Frameworks
MyFramework.framework
WebserverResources
<framework WS resources>
The app is still generating resource URLs like
"/WebObjects/MyApp.woa/Frameworks/MyFramework.framework/WebServerResources/images/myImage.png”
which are unsurprisingly failing.
I don’t see any way of configuring wolifecycle-maven-plugin, so I’m looking at
how to change how those generated URLs look. Was hoping our old friend
frameworksBaseURL() might help, but it doesn’t seem to.
Looking for ideas,
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden