• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO Maven getting started
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO Maven getting started


  • Subject: Re: WO Maven getting started
  • From: Hugi Thordarson <email@hidden>
  • Date: Fri, 18 Sep 2015 10:22:39 +0000

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:

http://maven.wocommunity.org/service/local/repositories/snapshots/content/archetype-catalog.xml

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.

Cheers,

Henrique
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
  • Follow-Ups:
    • Re: WO Maven getting started
      • From: Ramsey Gurley <email@hidden>
References: 
 >WO Maven getting started (From: Ramsey Gurley <email@hidden>)
 >Re: WO Maven getting started (From: Henrique Prange <email@hidden>)
 >Re: WO Maven getting started (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: WO Maven getting started
  • Next by Date: Re: WO Maven getting started
  • Previous by thread: Re: WO Maven getting started
  • Next by thread: Re: WO Maven getting started
  • Index(es):
    • Date
    • Thread