I wasn't online yesterday, so maybe I'm too late to help here, but...

I have a maven archetype (project template) for a webobjects application posted 
here,

https://github.com/nullterminated/woarchetypes

(I actually planned to make one for d2w and frameworks too, but I haven't 
gotten around to it)

Anyway, the generated project does not require a WO installation at all. It 
just finds all the jars needed in your maven repo. It doesn't require you edit 
maven settings.xml at all. It lists the wocommunity things in the pom.xml so it 
can find those.

You just create a project with it, and it works. It even has a profile where 
you can build a woapp in a docker container and push the image to AWS ECR if 
you're into that sort of thing.

The only fiddly bits with that are 1) you need docker set up so you can use it 
without sudo, and 2) you have aws-cli installed and set up so you can push the 
image to ecr when given the commented properties in the pom.xml file.

https://github.com/nullterminated/woarchetypes/blob/master/webobjects-app/src/main/resources/archetype-resources/pom.xml

I should probably update it to Java 21 too, it's still on 17. It's based on 
that wodocker thing I was telling you about a while ago. It has ECR now and I 
fixed the ENTRYPOINT in the dockerfile so the woapp can run shutdown hooks 
properly when the container is killed. I think the healthcheck is new since 
then too, but that doesn't really do anything but hit /.
________________________________
From: Aaron Rosenzweig via Webobjects-dev <webobjects-dev@lists.apple.com>
Sent: Tuesday, July 30, 2024 10:41 AM
To: WebObjects-Dev List <webobjects-dev@lists.apple.com>
Subject: Advisory: Eclipse bundless builds + maven = no está bien

Do you know there is a concept of “bundless builds” ? It works with ANT but not 
with Maven.

If you try to use bundless builds with Maven you’ll get runtime errors when 
launching via Eclipse related to “null” for "NSProperties._mainBundleName()”

I've been using Eclipse bundless builds for a very long time. It's an option in 
Eclipse WOLips (I'll tell you where in a moment). I think once upon a time, in 
Ant/Eclipse, it used to build .woa bundles and launch from that. It was ok but 
sometimes it would get sort of stuck and you'd have to manually delete the .woa 
to get a true build and it was a little slow to package up the .woa before 
launch. Other than those niggling issues, it was fine. But those issues were 
enough to bother some people in the WO community to question why we even needed 
a .woa bundle and if we could launch without it. I don't even know how that 
works but it was an option to go with a bundless build and that seemed to be 
more reliable, faster to launch, etc.

Turns out, now with Maven, you cannot use bundless builds! If you do, you won't 
see any errors/problems (no red) in Eclipse but you'll get runtime errors when 
you launch. Most notable is a null mainBundleName.

It now seems so obvious, I don't have a bundle name because I don't have a 
bundle (you can add "dumb ass" if you want). But I didn't need one for ANT and 
this was not at all obvious to me. It's one of those settings you make in your 
Eclipse workspace and forget about it.

In Eclipse, if you go to "Preferences" in the top menu bar (I think it is OS 
specific, maybe under "Help" or "Eclipse") you get preferences for he entire 
workspace:
  1. There you can open the triangle for "WOLips"
  2. Now choose "Build" and you'll see many checkboxes.
  3. Maven requires you to have this box checked "Generate bundles"
  4. Restart Eclipse then clean the workspace, etc.

When you do this, now inside the "target" folder where Maven puts compiled java 
class files, it now makes a .woa bundle and obviously uses that during launch 
from inside Eclipse.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.apple.com%2Fmailman%2Foptions%2Fwebobjects-dev%2Framsey.gurley%2540practicemojo.com&data=05%7C02%7Cramsey.gurley%40practicemojo.com%7C63a66abd468845b3ebeb08dcb0ae2e1b%7Cde0a512999d34d35a92809047a134775%7C0%7C0%7C638579509383822640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=t4wkwNlhDcu0Hjv2%2F8vV3cf%2BILtGR2ttq9pDstLgwvE%3D&reserved=0<https://lists.apple.com/mailman/options/webobjects-dev/ramsey.gurley%40practicemojo.com>

This email sent to ramsey.gur...@practicemojo.com
________________________________
Confidentiality Notice: This email, including all attachments and replies 
thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. 
Sections 2510-2521 and are legally privileged. This information is 
confidential, and intended only for the use of the individuals or entities 
named above. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or the taking of any action in 
reliance on the contents of this transmitted information is strictly 
prohibited. Please notify us if you have received this transmission in error. 
Thank you.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to