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 protected]> 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 protected] 
> <mailto:[email protected]>> 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
>>  
>> <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
>> 
>>> On 11/09/2015, at 18:19, Ramsey Gurley <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> So I really desperately want to migrate my projects to Maven. I tried back 
>>> in May when I had a chance, and failed. I’m trying again now. I can’t get a 
>>> hello world to compile. I’m starting here
>>> 
>>> https://wiki.wocommunity.org/display/WOL/Quick+Start 
>>> <https://wiki.wocommunity.org/display/WOL/Quick+Start>
>>> 
>>> But from step 5 on, nothing works. I installed the m2e plugin on mars, 
>>> imported my hello world, and I get 
>>> 
>>> Plugin execution not covered by lifecycle configuration: 
>>> org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:woapplication
>>>  (execution: default-woapplication, phase: generate-test-resources)  
>>> pom.xml /testing        line 26 Maven Project Build Lifecycle Mapping 
>>> Problem
>>> 
>>> and
>>> 
>>> Plugin execution not covered by lifecycle configuration: 
>>> org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:define-woapplication-resources
>>>  (execution: default-define-woapplication-resources, phase: validate)       
>>> pom.xml /testing        line 26 Maven Project Build Lifecycle Mapping 
>>> Problem
>>> 
>>> If I simply try to mvn clean package in the project directory, I get
>>> 
>>> [ERROR] Failed to execute goal on project testing: Could not resolve 
>>> dependencies for project test:testing:woapplication:1.0-SNAPSHOT: The 
>>> following artifacts could not be resolved: 
>>> wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT, 
>>> wonder.core:WOOgnl:jar:wo54:6.1.3-SNAPSHOT, 
>>> wonder.core:ERPrototypes:jar:6.1.3-SNAPSHOT: Failure to find 
>>> wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT in 
>>> http://maven.wocommunity.org/content/groups/public-snapshots 
>>> <http://maven.wocommunity.org/content/groups/public-snapshots> was cached 
>>> in the local repository, resolution will not be reattempted until the 
>>> update interval of wocommunity.snapshots has elapsed or updates are forced 
>>> -> [Help 1]
>>> 
>>> Can anyone explain why this isn’t working?
>>> 
>>> Thanks,
>>> 
>>> Ramsey
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected] 
>>> <mailto:[email protected]>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com>
>>> 
>>> This email sent to [email protected]
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to