Did you find out how to solve the problem of the application not looking for templates at the correct path?
Thanks, btw, for starting the discussion and thanks to Henrique for the work on the software. This is proving immensely useful and I swear, I’m going to complete my migration to Maven this time!
Cheers, - hugi
On 17. sep. 2015, at 18:38, Ramsey Gurley < email@hidden> wrote:
Hi Henrique,
Thanks for making these updates! It looked like the maven stuff needed some love, and I’m not quite a maven plugin development wizard just yet.
Some progress here. I added the remote archetypes, and created a new maven project with eclipse. I no longer get any red errors in the pom.xml. I tried to Run as WOApplication on Application.java and it crashed on launch. I had to enable the generate bundles to fix that. Now it launches, but I get this error in the console and a blank page where hello world should be:
Sep 17 11:24:16 helloworld[50191] DEBUG NSLog - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "file:/Users/rgurley/Workspaces/smarthealth/helloworld/".
It seems like it should be looking in
/Users/rgurley/Workspaces/smarthealth/helloworld/build/helloworld.woa/Contents/Resources/Main.wo/
I also get quite a lot of these properties warnings in the console:
Sep 17 11:24:16 helloworld[50191] WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: JavaFoundation - Properties Sep 17 11:24:16 helloworld[50191] WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: JavaFoundation - Properties.dev Sep 17 11:24:16 helloworld[50191] WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: JavaFoundation - Properties.rgurley
And so on for basically every framework.
On Sep 13, 2015, at 4:26 PM, Henrique Prange < email@hidden> wrote: Ramsey,
The last change to WebObjects Maven plugins were back in 2010. Lots of things changed since then in Maven tooling world. I took the time during the weekend to make the Maven plugin and the Maven archetypes compatible with the current features. I still have to make a release and update the docs. In the meantime, could you try the new archetypes and the new version of the maven-wolifecycle-plugin?
You can add a Remote Catalog using the URL below (Eclipse -> Preferences -> Maven -> Archetypes) to get the new archetypes:
After that, you can create a new Maven Project using the Eclipse wizard. Select the WOCommunity catalog and include snapshot archetypes. Follow the wizard steps and the new project should be created with no errors. The new archetypes will configure the maven-wolifecycle-plugin version to 2.3-SNAPSHOT.
Let me know if you have any problems.
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
|