Re: Maven follow up

2024-04-01 Thread Paul Hoadley via Webobjects-dev
Hi Samuel,

On 2 Apr 2024, at 08:23, Samuel Pelletier via Webobjects-dev 
 wrote:

> Why Eclipse always complain about missing nature, the maven stuff is already 
> there and working, I always click cancel but the prompt comes back from time 
> to time. Is there a way to get rid of this alert ?

As Tim mentioned, you need to have both of these in your .project file:

  org.maven.ide.eclipse.maven2Nature
  org.eclipse.m2e.core.maven2Nature

The latter is the correct name for the Eclipse "nature". The former is a 
historical name for the same thing, but unfortunately it's hard-coded in the 
depths of ERFoundation.jar to determine the bundle format to use at runtime, so 
you need to include it. Recent versions of Eclipse have started complaining 
about it, as you noted, but I see you found a way to turn it off.

> In the maven pom editor, the search function does not works, even for maven 
> central libraries... This search seems a time saver tool I would like to use 
> instead of copy paste from maven central...

I've never tried this—can't help.

> I ported a frameworks but when I want to use it's component (TimeField here), 
> I have this error: "Cannot find class or component named 'TimeField" in 
> runtime or in a loadable bundle"
> 
> BTW, I did "mvn install" to have the framework in my local maven repository 
> and it's sources are in my current workspace.

Hmm... not sure. Make sure the version you've nominated in the application's 
POM matches the version in the framework POM—otherwise, Eclipse will go looking 
for a JAR in ~/.m2/repository, though that usually only affects loading 
WebServerResources in my experience, and you say you've installed the framework 
JAR anyway. Oh, and I see you've fixed it anyway:

On 2 Apr 2024, at 12:40, Samuel Pelletier via Webobjects-dev 
 wrote:

> Follow up on my component problem, I just found the solution for with my 
> framework component, it was related to the order of dependencies declaration, 
> like ant, original WebObjects packages need to be after wonder ERExtensions...

> Is there a way inside Eclipse to do mvn install ?

I don't know.

> I still have not figured out how to build and deploy the app (replace the ant 
> install and manual rsync to server I actually do)

You have some options:

1. Run 'mvn package' locally, then you'll find the usual build products 
App.woapplication.tar.gz and App.wowebserverresources.tar.gz in the target 
directory. If your previous process was manual, this gets you to basically the 
same place as local usage of Ant would.

2. Better, but more complicated: set up your own repository using an app like 
Artifactory. It takes some one-off work, but you then 'mvn deploy' to that 
repository, and over on your appserver you can use Artifactory's API to pull 
down the build products and install them.

3. Even better, but even more complicated: set up CI/buildserver between your 
Git repo and Artifactory. You push to the Git repo, then your buildserver runs 
Maven to build, test and deploy to Artifactory.

All of this involves quite a bit of work, but on the upside you only need to 
invest the time once.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Re: Maven follow up

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

I suspect it takes a while for eclipse to download the index before 
searching will work. I have heard it can be about 6GB.


To build and deploy the app I link my maven to an ant build script. Then 
I can install with a command like "mvn clean package -Dinstall_optiplex"




MMddHHmm 





${project.artifactId}${maven.build.timestamp}



maven-antrun-plugin

3.1.0





install-actions

package























run









My build.xml looks like





xmlns:if="ant:if" xmlns:unless="ant:unless">




















value="/var/lib/webobjects/htdocs/WebObjects" />




















value="${remote.host}:Documents/${build.app.name}.woapplication.tar.gz" />








value="${remote.host}:Documents/${build.app.name}.wowebserverresources.tar.gz" 
/>




















































value="${remote.local.root}/${remote.dest.dir}/${build.app.name}.woa" />









On 2/4/24 12:10, Samuel Pelletier wrote:

Tim,

Thank for the reply. I tried the download index on startup but still 
no search.


I do not understand the nature thing but found a preference in Eclipse 
that disable the annoying dialog : "Automatically detect missing 
natures and propose IDE extensions from Marketplace".


Follow up on my component problem, I just found the solution for with 
my framework component, it was related to the order of dependencies 
declaration, like ant, original WebObjects packages need to be after 
wonder ERExtensions...


Is there a way inside Eclipse to do mvn install ?

I still have not figured out how to build and deploy the app (replace 
the ant install and manual rsync to server I actually do)


Regards,

Samuel



Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
 a écrit :


Hi Samuel

Apparently we need to have the nature 
org.maven.ide.eclipse.maven2Nature in our .project file because it is 
hard-coded in the original WebObjects. I think we should add into 
WOLips that it also needs this nature and then eclipse would stop 
complaining that no plugins are referencing this nature. 
Unfortunately I don't know enough about eclipse plugin development to 
program this.


I don't use search in maven pom editor myself but does this option 
help "Download repository index updates on startup"?





I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

Why Eclipse always complain about missing nature, the maven stuff is already 
there and working, I always click cancel but the prompt comes back from time to 
time. Is there a way to get rid of this alert ?

In the maven pom editor, the search function does not works, even for maven 
central libraries... This search seems a time saver tool I would like to use 
instead of copy paste from maven central...

I ported a frameworks but when I want to use it's component (TimeField here), I have this 
error: "Cannot find class or component named 'TimeField" in runtime or in a loadable 
bundle"

BTW, I did "mvn install" to have the framework in my local maven repository and 
it's sources are in my current workspace.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au

___
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/samuel%40samkar.com

This email sent to sam...@samkar.com
 ___
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


Re: Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Tim,

Thank for the reply. I tried the download index on startup but still no search.

I do not understand the nature thing but found a preference in Eclipse that 
disable the annoying dialog : "Automatically detect missing natures and propose 
IDE extensions from Marketplace".

Follow up on my component problem, I just found the solution for with my 
framework component, it was related to the order of dependencies declaration, 
like ant, original WebObjects packages need to be after wonder ERExtensions...

Is there a way inside Eclipse to do mvn install ?

I still have not figured out how to build and deploy the app (replace the ant 
install and manual rsync to server I actually do)

Regards,

Samuel



> Le 1 avr. 2024 à 20:32, D Tim Cummings via Webobjects-dev 
>  a écrit :
> 
> Hi Samuel
> 
> Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature in 
> our .project file because it is hard-coded in the original WebObjects. I 
> think we should add into WOLips that it also needs this nature and then 
> eclipse would stop complaining that no plugins are referencing this nature. 
> Unfortunately I don't know enough about eclipse plugin development to program 
> this.
> 
> I don't use search in maven pom editor myself but does this option help 
> "Download repository index updates on startup"?
> 
> 
> 
> 
> 
> I haven't used maven with my own frameworks so can't help you there.
> 
> Tim
> 
> 
> 
> On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:
>> Hi all,
>> 
>> Sorry for long time since last message, my maven switch had to be postponed.
>> 
>> I manages to set up the basic and create a frameworks and an app. 
>> 
>> I have few questions with my current setup. 
>> 
>> Why Eclipse always complain about missing nature, the maven stuff is already 
>> there and working, I always click cancel but the prompt comes back from time 
>> to time. Is there a way to get rid of this alert ?
>> 
>> In the maven pom editor, the search function does not works, even for maven 
>> central libraries... This search seems a time saver tool I would like to use 
>> instead of copy paste from maven central...
>> 
>> I ported a frameworks but when I want to use it's component (TimeField 
>> here), I have this error: "Cannot find class or component named 'TimeField" 
>> in runtime or in a loadable bundle"
>> 
>> BTW, I did "mvn install" to have the framework in my local maven repository 
>> and it's sources are in my current workspace.
>> 
>> Thank in advance for help!
>> 
>> Samuel
>> 
>> 
>> 
>>  ___
>> 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/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au 
> ___
> 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/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com

 ___
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


Re: Maven follow up

2024-04-01 Thread D Tim Cummings via Webobjects-dev

Hi Samuel

Apparently we need to have the nature org.maven.ide.eclipse.maven2Nature 
in our .project file because it is hard-coded in the original 
WebObjects. I think we should add into WOLips that it also needs this 
nature and then eclipse would stop complaining that no plugins are 
referencing this nature. Unfortunately I don't know enough about eclipse 
plugin development to program this.


I don't use search in maven pom editor myself but does this option help 
"Download repository index updates on startup"?



I haven't used maven with my own frameworks so can't help you there.

Tim


On 2/4/24 07:53, Samuel Pelletier via Webobjects-dev wrote:

Hi all,

Sorry for long time since last message, my maven switch had to be postponed.

I manages to set up the basic and create a frameworks and an app.

I have few questions with my current setup.

Why Eclipse always complain about missing nature, the maven stuff is already 
there and working, I always click cancel but the prompt comes back from time to 
time. Is there a way to get rid of this alert ?

In the maven pom editor, the search function does not works, even for maven 
central libraries... This search seems a time saver tool I would like to use 
instead of copy paste from maven central...

I ported a frameworks but when I want to use it's component (TimeField here), I have this 
error: "Cannot find class or component named 'TimeField" in runtime or in a loadable 
bundle"

BTW, I did "mvn install" to have the framework in my local maven repository and 
it's sources are in my current workspace.

Thank in advance for help!

Samuel



  ___
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/tim%40triptera.com.au

This email sent to...@triptera.com.au ___
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


Re: Maven "Quick Start" [was: Re: Meetup maybe? Or call me maybe?]

2023-12-25 Thread Theodore Petrosky via Webobjects-dev
Is the xWiki down?

https://wiki.wocommunity.org/

I can’t get on!

Ted

> On Dec 25, 2023, at 03:30, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> On 25 Dec 2023, at 08:38, Paul Hoadley via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
>> Hugi and I will fix the documentation on the Wiki. Going from zero to Hello 
>> World should take anyone about 10 minutes (modulo some artefact download 
>> time). Converting an existing project might take 20 minutes.
> 
> I've just updated the Maven "Quick Start" page here:
> 
> https://wiki.wocommunity.org/xwiki/bin/view/WOL/Home/WOProject-Maven/Quick%20Start/
> 
> It's a re-write from scratch: some of the existing information was helpful 10 
> years ago, but a lot of it was stale and fragmented. I've tested it myself, 
> and it should work. My claim is that even a non-Mavenite should be able to go 
> from zero to Maven-Hello-World in about 10 minutes. Please try it out, 
> especially the New-Mavenites and Maven-Curious:
> 
> * Does it work from start to finish? If not, let me know where it failed and 
> I'll fix it.
> * How long did it take?
> 
> 
> -- 
> Paul Hoadley
> https://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
> 
> ___
> 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/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com

 ___
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


Re: Maven and Wonder

2020-09-16 Thread Hugi Thordarson via Webobjects-dev
Nice!


> On 16 Sep 2020, at 05:03, Paul Hoadley  wrote:
> 
> Just for the archives...
> 
> On 6 Feb 2019, at 04:53, Hugi Thordarson  > wrote:
> 
>> Regarding (1), you probably need to include JarResourceRequestHandler 
>> ((https://gist.github.com/hprange/1068523 
>> ) in your project and activate it 
>> in your Application constructor:
>> 
>>  if (isDirectConnectEnabled()) {
>>  registerRequestHandler(new JarResourceRequestHandler(), "wr");
>>  }
>> 
>> And as you mention, this should probably have been included in Wonder some 
>> way a while back…
> 
> It only took me 19 months to realise it, but Markus's #901 here:
> 
> https://github.com/wocommunity/wonder/pull/901/ 
> 
> 
> fixes ERXStaticResourceRequestHandler so that JarResourceRequestHandler is no 
> longer required. Nice work Markus!
> 
> 
> -- 
> Paul Hoadley
> https://logicsquad.net/ 
> https://www.linkedin.com/company/logic-squad/
> 

 ___
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


Re: Maven and Wonder

2020-09-15 Thread Paul Hoadley via Webobjects-dev
Just for the archives...

On 6 Feb 2019, at 04:53, Hugi Thordarson  wrote:

> Regarding (1), you probably need to include JarResourceRequestHandler 
> ((https://gist.github.com/hprange/1068523 
> ) in your project and activate it in 
> your Application constructor:
> 
>   if (isDirectConnectEnabled()) {
>   registerRequestHandler(new JarResourceRequestHandler(), "wr");
>   }
> 
> And as you mention, this should probably have been included in Wonder some 
> way a while back…

It only took me 19 months to realise it, but Markus's #901 here:

https://github.com/wocommunity/wonder/pull/901/

fixes ERXStaticResourceRequestHandler so that JarResourceRequestHandler is no 
longer required. Nice work Markus!


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Re: Maven build - webserver resources in frameworks

2020-03-05 Thread Paul Hoadley via Webobjects-dev
Hi Steven,

On 6 Mar 2020, at 02:14, Steven Meyer via Webobjects-dev 
 wrote:

> 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
>
>   Frameworks
>MyFramework.framework
> WebserverResources
>  
> 
> 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.

What have you tried with respect to frameworksBaseURL() that doesn't work? It 
should be sufficient to set the WOFrameworksBaseURL property:

WOFrameworksBaseURL=/WebObjects/YourApp.woa/Contents/Frameworks

I agree that this is annoying, though. I don't know the history behind those 
subtle differences in bundle layout from the two build processes. It would be 
nice if they did the same thing, or if the difference could be detected and 
worked around.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Re: Maven build - webserver resources in frameworks

2020-03-05 Thread Dennis Scheffer via Webobjects-dev
Hi,

I have to admit that I do not fully understand why you would need to do this 
but you can just inject a Maven plugin into your build process.
A suitable lifecycle phase that runs before packaging would be process-classes. 
Add this below your wolifecycle plugin declaration:


maven-antrun-plugin
1.8


move-frameworks-directory
process-classes






run





You can also choose to 'lift' specific frameworks by adding more 'move' 
commands.

With regards
-- 
Dennis Scheffer


> On 5. Mar 2020, at 16:44, Steven Meyer via Webobjects-dev 
>  wrote:
> 
> 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
>
>  Frameworks
>   MyFramework.framework
>WebserverResources
> 
> 
> 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
>
>   Frameworks
>MyFramework.framework
> WebserverResources
>  
> 
> 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  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/dennis%40selbstdenker.ag
> 
> This email sent to den...@selbstdenker.ag



smime.p7s
Description: S/MIME cryptographic signature
 ___
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


Re: Maven Unit tests with EOF

2020-02-12 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

On 13 Feb 2020, at 14:14, Aaron Rosenzweig  wrote:

> If I understand you right you are using the surefire plugin but setting the 
> nature for Maven to find the files? That’s a neat way to do it.

They're basically unrelated, they just happen to intersect here. When unit 
tests are run, if something (e.g. WOUnit) asks for the main NSBundle (I haven't 
dug around in the WOUnit source, but presumably this is part of getting the 
default EOModelGroup to find your models), then eventually 
NSStandardProjectBundle.Factory is going to try and work out whether the 
project is Maven or Fluffy Bunny. It does this by examining .project in the 
root of the project, looking for that hard-coded magic string. It's not 
Surefire or Maven that's doing this, it's ERFoundation's low-level machinery.

> I think that nature was there for people who wanted to build with Maven 
> inside of eclipse, but you can use it the way you have done as well.

From Eclipse's point of view, it's an obsolete specifier, replaced by 
'org.eclipse.m2e.core.maven2Nature'. If you never need NSBundle to load you an 
NSMavenProjectBundle, you don't need it in .project—it no longer does anything. 
But, as demonstrated here, if you do want an NSMavenProjectBundle then it needs 
to be in .project. That's its single remaining purpose, to match a hard-coded 
magic string in NSStandardProjectBundle.Factory.

Anyway, it may not be the solution to your original problem, but if you're 
expecting an NSMavenProjectBundle but getting an NSFluffyBunnyProjectBundle, 
then it could well be.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Re: Maven Unit tests with EOF

2020-02-12 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Paul,

That’s an insightful reply!

If I understand you right you are using the surefire plugin but setting the 
nature for Maven to find the files? That’s a neat way to do it. 

I think that nature was there for people who wanted to build with Maven inside 
of eclipse, but you can use it the way you have done as well.

I had to stop trying but I should revisit soon. I think it is probably better 
to use the “failsafe / verify” instead of “surefire / test” because it will 
have the bundled .woa or .framework by then and should be a standard bundle. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Feb 12, 2020, at 10:37 PM, Paul Hoadley  wrote:
> 
> Hi Aaron,
> 
> I don't know whether you went on to solve your problem here, but I've just 
> spent a few hours of my life that I'll never get back debugging something 
> similar. I had just built a new framework from scratch, and WOUnit testing 
> under maven-surefire-plugin failed, with WOUnit complaining that it couldn't 
> find my models. I started by logging out NSBundle.mainBundle(), and recalled 
> your recent post:
> 
> On 23 Jan 2020, at 15:01, Aaron Rosenzweig  > wrote:
> 
>> There are three types of concrete (not abstract) NSBundles:
>> 1) NSLegacyBundle
>> 2) NSFluffyBunnyProjectBundle
>> 3) NSMavenProjectBundle
> 
> During unit test initialisation it was reporting that the main bundle was an 
> NSFluffyBunnyProjectBundle, but the project type is Maven.
> 
>> When I run this from Eclipse I can hit breakpoints and I confirmed that it 
>> is making an NSFluffyBunnyProjectBundle. 
> 
> The model-finding issue described above was apparent only when running "mvn 
> verify" from the command line, and Eclipse does have a habit of doing 
> additional classpath setup, so if you're just talking about "Run As > JUnit 
> Test" from within Eclipse, then all bets are off, but if you're seeing this 
> from the command line and your project is a Maven project, then this is 
> wrong. If you dig down into ERFoundation.jar and decompile 
> NSStandardProjectBundle.Factory, you'll find this:
> 
>   if ("org.maven.ide.eclipse.maven2Nature".equals(nature)) {
>   mavenProject = true;
>   }
> 
> It's scanning the project's .project file and checking for:
> 
>   org.maven.ide.eclipse.maven2Nature
> 
> If it finds that, it creates an NSMavenProjectBundle. If it doesn't, then 
> it's NSFluffyBunnyProjectBundle, which will be deficient because everything 
> is in the wrong places. (For example, it can't find models because they're in 
> src/main/resources, not Resources.)
> 
> Adding that nature element to .project immediately fixed my issue. Why wasn't 
> it there in the first place? Because the Wonder archetype (and our custom 
> archetype that's based on it) no longer adds it because it's obsolete.
> 
>   
>   org.eclipse.m2e.core.maven2Nature
>   org.eclipse.jdt.core.javanature
>   
> org.objectstyle.wolips.incrementalframeworknature
>   
> 
> So, does your framework's .project file contain that nature element, and if 
> not does adding it in fix your issue?
> 
> 
> -- 
> Paul Hoadley
> https://logicsquad.net/ 
> https://www.linkedin.com/company/logic-squad/
> 
> 
> 

 ___
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


Re: Maven Unit tests with EOF

2020-02-12 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

I don't know whether you went on to solve your problem here, but I've just 
spent a few hours of my life that I'll never get back debugging something 
similar. I had just built a new framework from scratch, and WOUnit testing 
under maven-surefire-plugin failed, with WOUnit complaining that it couldn't 
find my models. I started by logging out NSBundle.mainBundle(), and recalled 
your recent post:

On 23 Jan 2020, at 15:01, Aaron Rosenzweig  wrote:

> There are three types of concrete (not abstract) NSBundles:
> 1) NSLegacyBundle
> 2) NSFluffyBunnyProjectBundle
> 3) NSMavenProjectBundle

During unit test initialisation it was reporting that the main bundle was an 
NSFluffyBunnyProjectBundle, but the project type is Maven.

> When I run this from Eclipse I can hit breakpoints and I confirmed that it is 
> making an NSFluffyBunnyProjectBundle. 

The model-finding issue described above was apparent only when running "mvn 
verify" from the command line, and Eclipse does have a habit of doing 
additional classpath setup, so if you're just talking about "Run As > JUnit 
Test" from within Eclipse, then all bets are off, but if you're seeing this 
from the command line and your project is a Maven project, then this is wrong. 
If you dig down into ERFoundation.jar and decompile 
NSStandardProjectBundle.Factory, you'll find this:

if ("org.maven.ide.eclipse.maven2Nature".equals(nature)) {
mavenProject = true;
}

It's scanning the project's .project file and checking for:

org.maven.ide.eclipse.maven2Nature

If it finds that, it creates an NSMavenProjectBundle. If it doesn't, then it's 
NSFluffyBunnyProjectBundle, which will be deficient because everything is in 
the wrong places. (For example, it can't find models because they're in 
src/main/resources, not Resources.)

Adding that nature element to .project immediately fixed my issue. Why wasn't 
it there in the first place? Because the Wonder archetype (and our custom 
archetype that's based on it) no longer adds it because it's obsolete.


org.eclipse.m2e.core.maven2Nature
org.eclipse.jdt.core.javanature

org.objectstyle.wolips.incrementalframeworknature


So, does your framework's .project file contain that nature element, and if not 
does adding it in fix your issue?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Chuck,

Maven likes to swallow things but I put the flags to not trim stack traces and 
to divert standard out but I haven’t gotten anything additional. I still might 
have missed a flag. 

I thought maybe I could add some logger statements into the WOnder version of 
NSBundle that replaces the Apple version… that lives in ERFoundation.jar inside 
of ERJars.framework but… haha! no source, it’s a secret lib I suppose. 

I’m guessing that Maven may not have built enough to have the Contents and the 
Properties file available or otherwise something was “wrong” and that caused 
the static initializer to fail. When I reverse engineer the Wonder NSBundle 
(did I say that aloud?) I see that the static initializer does a lot! It’s not 
just setting a few variables, it’s rather meaty. 

The next step is to make my own com.webojects.blah.blah.NSBundle that takes 
precedence but looks a lot like the Wonder one but with more logging in it so I 
can see where it is failing when invoked by Maven. I had to cut bait for the 
moment though, spent too much time chasing my own tail. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 10:52 PM, Chuck Hill  wrote:
> 
> That error is definitely a static initializer or block throwing.  Nothing 
> else is output?
> 
> 
>> On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I tried this call:
>> 
>> NSBundle MYBUNDLE = NSBundle.mainBundle();
>> 
>> It fails immediately with:
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>> 
>> I’m suspecting it has to do with the static initializer of NSBundle.
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig >> > wrote:
>>> 
>>> Riddle me this… how can you get a class not defined error from the class 
>>> itself?
>>> 
>>> java.lang.NoClassDefFoundError: Could not initialize class 
>>> com.webobjects.foundation.NSBundle
>>> at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>>> 
>>> You are already in NSBundle.mainBundle() and then out pops a 
>>> NoClassDefFoundError… that must be a red herring but I cannot figure it 
>>> out. 
>>> AARON ROSENZWEIG / Chat 'n Bike 
>>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>> 
>>> 
>>> 
 On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >>> > wrote:
 
 Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
 then a slow one run at different times. Thanks! good idea. 
 AARON ROSENZWEIG / Chat 'n Bike 
 e:  aa...@chatnbike.com   t:  (301) 956-2319   
 

 
> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer  > wrote:
> 
> 
>> Cloning a “company” EO and testing unique constraints in SQL - is 
>> heavier than testing an “isCamelCase()” function but lighter than 
>> selenium. Maybe we have to do it in failsafe but it feels closer to 
>> regular unit tests that should fire every time there is a checkin to the 
>> repo. In other words if your tests take 5 minutes to run, why not let 
>> Agnes tell you immediately that the build is broken rather than waiting 
>> till midnight for selenium to do so?
> 
> If there are multiple ways in which you would like to use the failsafe 
> plugin, you can always add multiple executions and put them in their own 
> build profiles 
> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>  
> ).
>  Then you can fire failsafe every time you check in new code without 
> selenium and you can do something like this if your want selenium tests 
> to be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways 
> to configure profiles to do something like that.
> 
> -- 
> Dennis
> 
>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig > > wrote:
>> 
>> Dennis that is a good point,
>> 
>> At the moment I have not cleaned and the product is there but it’s not 
>> working but your point is still well taken. In Jenkins, in the cloud, it 
>> will do a clean and I really should be doing a clean every time so the 
>> product won’t be there to test with… there won’t be a bundle. 
>> 
>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>> test too but it’s very heavy and flexes 

Re: Maven Unit tests with EOF

2020-01-23 Thread Chuck Hill via Webobjects-dev
That error is definitely a static initializer or block throwing.  Nothing else 
is output?


> On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> I tried this call:
> 
> NSBundle MYBUNDLE = NSBundle.mainBundle();
> 
> It fails immediately with:
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
> 
> I’m suspecting it has to do with the static initializer of NSBundle.
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig > > wrote:
>> 
>> Riddle me this… how can you get a class not defined error from the class 
>> itself?
>> 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>>  at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>> 
>> You are already in NSBundle.mainBundle() and then out pops a 
>> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >> > wrote:
>>> 
>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>> then a slow one run at different times. Thanks! good idea. 
>>> AARON ROSENZWEIG / Chat 'n Bike 
>>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>> 
>>> 
>>> 
 On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>> > wrote:
 
 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
> we have to do it in failsafe but it feels closer to regular unit tests 
> that should fire every time there is a checkin to the repo. In other 
> words if your tests take 5 minutes to run, why not let Agnes tell you 
> immediately that the build is broken rather than waiting till midnight 
> for selenium to do so?
 
 If there are multiple ways in which you would like to use the failsafe 
 plugin, you can always add multiple executions and put them in their own 
 build profiles 
 (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
  
 ).
  Then you can fire failsafe every time you check in new code without 
 selenium and you can do something like this if your want selenium tests to 
 be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
 configure profiles to do something like that.
 
 -- 
 Dennis
 
> On 23. Jan 2020, at 15:39, Aaron Rosenzweig  > wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it 
> will do a clean and I really should be doing a clean every time so the 
> product won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
> test too but it’s very heavy and flexes the UI of a bundled and launched 
> app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
> we have to do it in failsafe but it feels closer to regular unit tests 
> that should fire every time there is a checkin to the repo. In other 
> words if your tests take 5 minutes to run, why not let Agnes tell you 
> immediately that the build is broken rather than waiting till midnight 
> for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>  
> 
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Jesse you are correct. If you are compiling for one java version but running on 
another… you can get java.lang.NoClassDefFoundError - that’s because the object 
you used at compile time might not be available in that other runtime. 

While the error is the same, this feels different but your point is a good one 
and I’ll consider it some more. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 4:24 PM, Jesse Tayler  wrote:
> 
> Isn’t that what you get with some java version mismatch ??
> 
>> On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> I tried this call:
>> 
>> NSBundle MYBUNDLE = NSBundle.mainBundle();
>> 
>> It fails immediately with:
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>> 
>> I’m suspecting it has to do with the static initializer of NSBundle.
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig >> > wrote:
>>> 
>>> Riddle me this… how can you get a class not defined error from the class 
>>> itself?
>>> 
>>> java.lang.NoClassDefFoundError: Could not initialize class 
>>> com.webobjects.foundation.NSBundle
>>> at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>>> 
>>> You are already in NSBundle.mainBundle() and then out pops a 
>>> NoClassDefFoundError… that must be a red herring but I cannot figure it 
>>> out. 
>>> AARON ROSENZWEIG / Chat 'n Bike 
>>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>> 
>>> 
>>> 
 On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >>> > wrote:
 
 Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
 then a slow one run at different times. Thanks! good idea. 
 AARON ROSENZWEIG / Chat 'n Bike 
 e:  aa...@chatnbike.com   t:  (301) 956-2319   
 

 
> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer  > wrote:
> 
> 
>> Cloning a “company” EO and testing unique constraints in SQL - is 
>> heavier than testing an “isCamelCase()” function but lighter than 
>> selenium. Maybe we have to do it in failsafe but it feels closer to 
>> regular unit tests that should fire every time there is a checkin to the 
>> repo. In other words if your tests take 5 minutes to run, why not let 
>> Agnes tell you immediately that the build is broken rather than waiting 
>> till midnight for selenium to do so?
> 
> If there are multiple ways in which you would like to use the failsafe 
> plugin, you can always add multiple executions and put them in their own 
> build profiles 
> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
>  
> ).
>  Then you can fire failsafe every time you check in new code without 
> selenium and you can do something like this if your want selenium tests 
> to be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways 
> to configure profiles to do something like that.
> 
> -- 
> Dennis
> 
>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig > > wrote:
>> 
>> Dennis that is a good point,
>> 
>> At the moment I have not cleaned and the product is there but it’s not 
>> working but your point is still well taken. In Jenkins, in the cloud, it 
>> will do a clean and I really should be doing a clean every time so the 
>> product won’t be there to test with… there won’t be a bundle. 
>> 
>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>> app. 
>> 
>> Cloning a “company” EO and testing unique constraints in SQL - is 
>> heavier than testing an “isCamelCase()” function but lighter than 
>> selenium. Maybe we have to do it in failsafe but it feels closer to 
>> regular unit tests that should fire every time there is a checkin to the 
>> repo. In other words if your tests take 5 minutes to run, why not let 
>> Agnes tell you immediately that the build is broken rather than waiting 
>> till midnight for selenium to do so?
>> 
>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>  
>> 
>> 
>> When we 

Re: Maven Unit tests with EOF

2020-01-23 Thread Jesse Tayler via Webobjects-dev
Isn’t that what you get with some java version mismatch ??

> On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> I tried this call:
> 
> NSBundle MYBUNDLE = NSBundle.mainBundle();
> 
> It fails immediately with:
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
> 
> I’m suspecting it has to do with the static initializer of NSBundle.
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig > > wrote:
>> 
>> Riddle me this… how can you get a class not defined error from the class 
>> itself?
>> 
>> java.lang.NoClassDefFoundError: Could not initialize class 
>> com.webobjects.foundation.NSBundle
>>  at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
>> 
>> You are already in NSBundle.mainBundle() and then out pops a 
>> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig >> > wrote:
>>> 
>>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>>> then a slow one run at different times. Thanks! good idea. 
>>> AARON ROSENZWEIG / Chat 'n Bike 
>>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>> 
>>> 
>>> 
 On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >>> > wrote:
 
 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
> we have to do it in failsafe but it feels closer to regular unit tests 
> that should fire every time there is a checkin to the repo. In other 
> words if your tests take 5 minutes to run, why not let Agnes tell you 
> immediately that the build is broken rather than waiting till midnight 
> for selenium to do so?
 
 If there are multiple ways in which you would like to use the failsafe 
 plugin, you can always add multiple executions and put them in their own 
 build profiles 
 (https://maven.apache.org/guides/introduction/introduction-to-profiles.html
  
 ).
  Then you can fire failsafe every time you check in new code without 
 selenium and you can do something like this if your want selenium tests to 
 be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
 configure profiles to do something like that.
 
 -- 
 Dennis
 
> On 23. Jan 2020, at 15:39, Aaron Rosenzweig  > wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it 
> will do a clean and I really should be doing a clean every time so the 
> product won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
> test too but it’s very heavy and flexes the UI of a bundled and launched 
> app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
> we have to do it in failsafe but it feels closer to regular unit tests 
> that should fire every time there is a checkin to the repo. In other 
> words if your tests take 5 minutes to run, why not let Agnes tell you 
> immediately that the build is broken rather than waiting till midnight 
> for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>  
> 
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
I tried this call:

NSBundle MYBUNDLE = NSBundle.mainBundle();

It fails immediately with:
java.lang.NoClassDefFoundError: Could not initialize class 
com.webobjects.foundation.NSBundle

I’m suspecting it has to do with the static initializer of NSBundle.
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 11:23 AM, Aaron Rosenzweig  wrote:
> 
> Riddle me this… how can you get a class not defined error from the class 
> itself?
> 
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.webobjects.foundation.NSBundle
>   at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)
> 
> You are already in NSBundle.mainBundle() and then out pops a 
> NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig > > wrote:
>> 
>> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and 
>> then a slow one run at different times. Thanks! good idea. 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer >> > wrote:
>>> 
>>> 
 Cloning a “company” EO and testing unique constraints in SQL - is heavier 
 than testing an “isCamelCase()” function but lighter than selenium. Maybe 
 we have to do it in failsafe but it feels closer to regular unit tests 
 that should fire every time there is a checkin to the repo. In other words 
 if your tests take 5 minutes to run, why not let Agnes tell you 
 immediately that the build is broken rather than waiting till midnight for 
 selenium to do so?
>>> 
>>> If there are multiple ways in which you would like to use the failsafe 
>>> plugin, you can always add multiple executions and put them in their own 
>>> build profiles 
>>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
>>> ).
>>>  Then you can fire failsafe every time you check in new code without 
>>> selenium and you can do something like this if your want selenium tests to 
>>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>>> configure profiles to do something like that.
>>> 
>>> -- 
>>> Dennis
>>> 
 On 23. Jan 2020, at 15:39, Aaron Rosenzweig >>> > wrote:
 
 Dennis that is a good point,
 
 At the moment I have not cleaned and the product is there but it’s not 
 working but your point is still well taken. In Jenkins, in the cloud, it 
 will do a clean and I really should be doing a clean every time so the 
 product won’t be there to test with… there won’t be a bundle. 
 
 Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
 test too but it’s very heavy and flexes the UI of a bundled and launched 
 app. 
 
 Cloning a “company” EO and testing unique constraints in SQL - is heavier 
 than testing an “isCamelCase()” function but lighter than selenium. Maybe 
 we have to do it in failsafe but it feels closer to regular unit tests 
 that should fire every time there is a checkin to the repo. In other words 
 if your tests take 5 minutes to run, why not let Agnes tell you 
 immediately that the build is broken rather than waiting till midnight for 
 selenium to do so?
 
 http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
  
 
 
 When we run from within Eclipse we have a “bundless build” that uses the 
 Fluffy Bunny NSBundle variant and works great… without a product… and the 
 destructive EOF unit tests work there. I think what Markus did was patch 
 NSBundle to treat the maven target with the intermediate classes and 
 resources as a “maven bundless build” or a “maven black-ops bunny” 
 if-you-will. 
 
 I’m still confused but clarity is setting in. Thank you everyone for this 
 hearty discussion. 
 AARON ROSENZWEIG / Chat 'n Bike 
 e:  aa...@chatnbike.com   t:  (301) 956-2319   
 

 
> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer  > wrote:
> 
> Hi everyone,
> 
> 
>> // That's the main bundle when running tests from Eclipse
>> Path mainBundlePath = Paths.get("build/your-project.woa");
>> 
>> if 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Riddle me this… how can you get a class not defined error from the class itself?

java.lang.NoClassDefFoundError: Could not initialize class 
com.webobjects.foundation.NSBundle
at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526)

You are already in NSBundle.mainBundle() and then out pops a 
NoClassDefFoundError… that must be a red herring but I cannot figure it out. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 10:03 AM, Aaron Rosenzweig  wrote:
> 
> Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and then 
> a slow one run at different times. Thanks! good idea. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer > > wrote:
>> 
>> 
>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>> we have to do it in failsafe but it feels closer to regular unit tests that 
>>> should fire every time there is a checkin to the repo. In other words if 
>>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>>> that the build is broken rather than waiting till midnight for selenium to 
>>> do so?
>> 
>> If there are multiple ways in which you would like to use the failsafe 
>> plugin, you can always add multiple executions and put them in their own 
>> build profiles 
>> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
>> ).
>>  Then you can fire failsafe every time you check in new code without 
>> selenium and you can do something like this if your want selenium tests to 
>> be run: 'mvn clean verify -P with-selenium'. There are a bunch of ways to 
>> configure profiles to do something like that.
>> 
>> -- 
>> Dennis
>> 
>>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig >> > wrote:
>>> 
>>> Dennis that is a good point,
>>> 
>>> At the moment I have not cleaned and the product is there but it’s not 
>>> working but your point is still well taken. In Jenkins, in the cloud, it 
>>> will do a clean and I really should be doing a clean every time so the 
>>> product won’t be there to test with… there won’t be a bundle. 
>>> 
>>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit 
>>> test too but it’s very heavy and flexes the UI of a bundled and launched 
>>> app. 
>>> 
>>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>>> than testing an “isCamelCase()” function but lighter than selenium. Maybe 
>>> we have to do it in failsafe but it feels closer to regular unit tests that 
>>> should fire every time there is a checkin to the repo. In other words if 
>>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>>> that the build is broken rather than waiting till midnight for selenium to 
>>> do so?
>>> 
>>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>>  
>>> 
>>> 
>>> When we run from within Eclipse we have a “bundless build” that uses the 
>>> Fluffy Bunny NSBundle variant and works great… without a product… and the 
>>> destructive EOF unit tests work there. I think what Markus did was patch 
>>> NSBundle to treat the maven target with the intermediate classes and 
>>> resources as a “maven bundless build” or a “maven black-ops bunny” 
>>> if-you-will. 
>>> 
>>> I’m still confused but clarity is setting in. Thank you everyone for this 
>>> hearty discussion. 
>>> AARON ROSENZWEIG / Chat 'n Bike 
>>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>> 
>>> 
>>> 
 On Jan 23, 2020, at 2:54 AM, Dennis Scheffer >>> > wrote:
 
 Hi everyone,
 
 
> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);
 
 This may not work under certain circumstances because the surefire plugin 
 usually runs in the Maven 'test' phase which is before the 'package' 
 phase. Therefore, there may not be a bundle at 'target/your-project.woa' – 
 especially if you do a 'mvn clean 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and then a 
slow one run at different times. Thanks! good idea. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 9:58 AM, Dennis Scheffer  wrote:
> 
> 
>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
>> have to do it in failsafe but it feels closer to regular unit tests that 
>> should fire every time there is a checkin to the repo. In other words if 
>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>> that the build is broken rather than waiting till midnight for selenium to 
>> do so?
> 
> If there are multiple ways in which you would like to use the failsafe 
> plugin, you can always add multiple executions and put them in their own 
> build profiles 
> (https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
> ).
>  Then you can fire failsafe every time you check in new code without selenium 
> and you can do something like this if your want selenium tests to be run: 
> 'mvn clean verify -P with-selenium'. There are a bunch of ways to configure 
> profiles to do something like that.
> 
> -- 
> Dennis
> 
>> On 23. Jan 2020, at 15:39, Aaron Rosenzweig > > wrote:
>> 
>> Dennis that is a good point,
>> 
>> At the moment I have not cleaned and the product is there but it’s not 
>> working but your point is still well taken. In Jenkins, in the cloud, it 
>> will do a clean and I really should be doing a clean every time so the 
>> product won’t be there to test with… there won’t be a bundle. 
>> 
>> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
>> too but it’s very heavy and flexes the UI of a bundled and launched app. 
>> 
>> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
>> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
>> have to do it in failsafe but it feels closer to regular unit tests that 
>> should fire every time there is a checkin to the repo. In other words if 
>> your tests take 5 minutes to run, why not let Agnes tell you immediately 
>> that the build is broken rather than waiting till midnight for selenium to 
>> do so?
>> 
>> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg
>>  
>> 
>> 
>> When we run from within Eclipse we have a “bundless build” that uses the 
>> Fluffy Bunny NSBundle variant and works great… without a product… and the 
>> destructive EOF unit tests work there. I think what Markus did was patch 
>> NSBundle to treat the maven target with the intermediate classes and 
>> resources as a “maven bundless build” or a “maven black-ops bunny” 
>> if-you-will. 
>> 
>> I’m still confused but clarity is setting in. Thank you everyone for this 
>> hearty discussion. 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer >> > wrote:
>>> 
>>> Hi everyone,
>>> 
>>> 
 // That's the main bundle when running tests from Eclipse
 Path mainBundlePath = Paths.get("build/your-project.woa");
 
 if (Files.notExists(mainBundlePath)) {
  // Maven doesn't create a build directory. The WOA bundle goes into the 
 target folder instead.
  mainBundlePath = Paths.get("target/your-project.woa");
 }
 
 ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
 ACUnitTestingApplication.class, args);
>>> 
>>> This may not work under certain circumstances because the surefire plugin 
>>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>>> especially if you do a 'mvn clean test'.
>>> 
>>> The solution is very simple: I would consider tests that depend on a 
>>> pre-build bundle integration tests (which makes sense because most of the 
>>> time all the application's 'units' are integrated in a bundle). And just 
>>> use the Maven failsafe pugin 
>>> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
>>> ). It works 
>>> exactly the same as the surefire plugin but runs in the 'verify' phase 
>>> which is after the 'package' phase. So 'mvn clean verify' will clean your 
>>> target directory, create a fresh new bundle and run your tests on your 
>>> fresh bundle with the solution mentioned above.
>>> 
>>> With regards,
>>> -- 
>>> Dennis
>>> 
>>> 

Re: Maven Unit tests with EOF

2020-01-23 Thread Dennis Scheffer via Webobjects-dev

> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?

If there are multiple ways in which you would like to use the failsafe plugin, 
you can always add multiple executions and put them in their own build profiles 
(https://maven.apache.org/guides/introduction/introduction-to-profiles.html 
). 
Then you can fire failsafe every time you check in new code without selenium 
and you can do something like this if your want selenium tests to be run: 'mvn 
clean verify -P with-selenium'. There are a bunch of ways to configure profiles 
to do something like that.

-- 
Dennis

> On 23. Jan 2020, at 15:39, Aaron Rosenzweig  wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it will 
> do a clean and I really should be doing a clean every time so the product 
> won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
> too but it’s very heavy and flexes the UI of a bundled and launched app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 
> 
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319
>   
> 
>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer > > wrote:
>> 
>> Hi everyone,
>> 
>> 
>>> // That's the main bundle when running tests from Eclipse
>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>> 
>>> if (Files.notExists(mainBundlePath)) {
>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>>> target folder instead.
>>>  mainBundlePath = Paths.get("target/your-project.woa");
>>> }
>>> 
>>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>>> ACUnitTestingApplication.class, args);
>> 
>> This may not work under certain circumstances because the surefire plugin 
>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>> especially if you do a 'mvn clean test'.
>> 
>> The solution is very simple: I would consider tests that depend on a 
>> pre-build bundle integration tests (which makes sense because most of the 
>> time all the application's 'units' are integrated in a bundle). And just use 
>> the Maven failsafe pugin 
>> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
>> ). It works 
>> exactly the same as the surefire plugin but runs in the 'verify' phase which 
>> is after the 'package' phase. So 'mvn clean verify' will clean your target 
>> directory, create a fresh new bundle and run your tests on your fresh bundle 
>> with the solution mentioned above.
>> 
>> With regards,
>> -- 
>> Dennis
>> 
>> 
>>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hey Aaron,
>>> 
>>> This error rings a bell. I don't recall all the details. It looks like the 
>>> collectMainProps method is trying to find the Properties file of your 
>>> project in the wrong place.
>>> 
>>> When you build your project in Eclipse with WOLips, it generates a build 
>>> folder containing your project's WOA bundle. Maven, however, puts the 
>>> generated WOA bundle in 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hey everybody,

I noticed that “NSBundle.java” is defined in ERFoundation and also 
JavaFoundation… 

It appears we aren’t using ERXPatcher to replace it and that might not even be 
an option… so you have to have ERFoundation loaded first for it to override. I 
do have it that way and Maven is doing it that way but I hadn’t noticed before 
that NSBundle is already patched. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 9:39 AM, Aaron Rosenzweig  wrote:
> 
> Dennis that is a good point,
> 
> At the moment I have not cleaned and the product is there but it’s not 
> working but your point is still well taken. In Jenkins, in the cloud, it will 
> do a clean and I really should be doing a clean every time so the product 
> won’t be there to test with… there won’t be a bundle. 
> 
> Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
> too but it’s very heavy and flexes the UI of a bundled and launched app. 
> 
> Cloning a “company” EO and testing unique constraints in SQL - is heavier 
> than testing an “isCamelCase()” function but lighter than selenium. Maybe we 
> have to do it in failsafe but it feels closer to regular unit tests that 
> should fire every time there is a checkin to the repo. In other words if your 
> tests take 5 minutes to run, why not let Agnes tell you immediately that the 
> build is broken rather than waiting till midnight for selenium to do so?
> 
> http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 
> 
> 
> When we run from within Eclipse we have a “bundless build” that uses the 
> Fluffy Bunny NSBundle variant and works great… without a product… and the 
> destructive EOF unit tests work there. I think what Markus did was patch 
> NSBundle to treat the maven target with the intermediate classes and 
> resources as a “maven bundless build” or a “maven black-ops bunny” 
> if-you-will. 
> 
> I’m still confused but clarity is setting in. Thank you everyone for this 
> hearty discussion. 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
>> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer > > wrote:
>> 
>> Hi everyone,
>> 
>> 
>>> // That's the main bundle when running tests from Eclipse
>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>> 
>>> if (Files.notExists(mainBundlePath)) {
>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>>> target folder instead.
>>>  mainBundlePath = Paths.get("target/your-project.woa");
>>> }
>>> 
>>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>>> ACUnitTestingApplication.class, args);
>> 
>> This may not work under certain circumstances because the surefire plugin 
>> usually runs in the Maven 'test' phase which is before the 'package' phase. 
>> Therefore, there may not be a bundle at 'target/your-project.woa' – 
>> especially if you do a 'mvn clean test'.
>> 
>> The solution is very simple: I would consider tests that depend on a 
>> pre-build bundle integration tests (which makes sense because most of the 
>> time all the application's 'units' are integrated in a bundle). And just use 
>> the Maven failsafe pugin 
>> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
>> ). It works 
>> exactly the same as the surefire plugin but runs in the 'verify' phase which 
>> is after the 'package' phase. So 'mvn clean verify' will clean your target 
>> directory, create a fresh new bundle and run your tests on your fresh bundle 
>> with the solution mentioned above.
>> 
>> With regards,
>> -- 
>> Dennis
>> 
>> 
>>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hey Aaron,
>>> 
>>> This error rings a bell. I don't recall all the details. It looks like the 
>>> collectMainProps method is trying to find the Properties file of your 
>>> project in the wrong place.
>>> 
>>> When you build your project in Eclipse with WOLips, it generates a build 
>>> folder containing your project's WOA bundle. Maven, however, puts the 
>>> generated WOA bundle in the target folder. I'm afraid the application 
>>> initialization code keeps looking for the build folder when you run your 
>>> tests with Maven.
>>> 
>>> I'm not sure if there's a better way to solve this problem. Anyway, the 
>>> code below may fix it.
>>> 
>>> // That's the main bundle when running tests from Eclipse
>>> Path mainBundlePath = Paths.get("build/your-project.woa");
>>> 
>>> if (Files.notExists(mainBundlePath)) {
>>>  // Maven doesn't create a build directory. The WOA bundle goes into the 

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Dennis that is a good point,

At the moment I have not cleaned and the product is there but it’s not working 
but your point is still well taken. In Jenkins, in the cloud, it will do a 
clean and I really should be doing a clean every time so the product won’t be 
there to test with… there won’t be a bundle. 

Maven “Failsafe” makes sense for selenium… which is technically a JUnit test 
too but it’s very heavy and flexes the UI of a bundled and launched app. 

Cloning a “company” EO and testing unique constraints in SQL - is heavier than 
testing an “isCamelCase()” function but lighter than selenium. Maybe we have to 
do it in failsafe but it feels closer to regular unit tests that should fire 
every time there is a checkin to the repo. In other words if your tests take 5 
minutes to run, why not let Agnes tell you immediately that the build is broken 
rather than waiting till midnight for selenium to do so?

http://www.globalnerdy.com/wp-content/uploads/2008/08/you_broke_the_build.jpg 


When we run from within Eclipse we have a “bundless build” that uses the Fluffy 
Bunny NSBundle variant and works great… without a product… and the destructive 
EOF unit tests work there. I think what Markus did was patch NSBundle to treat 
the maven target with the intermediate classes and resources as a “maven 
bundless build” or a “maven black-ops bunny” if-you-will. 

I’m still confused but clarity is setting in. Thank you everyone for this 
hearty discussion. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 23, 2020, at 2:54 AM, Dennis Scheffer  wrote:
> 
> Hi everyone,
> 
> 
>> // That's the main bundle when running tests from Eclipse
>> Path mainBundlePath = Paths.get("build/your-project.woa");
>> 
>> if (Files.notExists(mainBundlePath)) {
>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>> target folder instead.
>>  mainBundlePath = Paths.get("target/your-project.woa");
>> }
>> 
>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>> ACUnitTestingApplication.class, args);
> 
> This may not work under certain circumstances because the surefire plugin 
> usually runs in the Maven 'test' phase which is before the 'package' phase. 
> Therefore, there may not be a bundle at 'target/your-project.woa' – 
> especially if you do a 'mvn clean test'.
> 
> The solution is very simple: I would consider tests that depend on a 
> pre-build bundle integration tests (which makes sense because most of the 
> time all the application's 'units' are integrated in a bundle). And just use 
> the Maven failsafe pugin 
> (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
> ). It works exactly 
> the same as the surefire plugin but runs in the 'verify' phase which is after 
> the 'package' phase. So 'mvn clean verify' will clean your target directory, 
> create a fresh new bundle and run your tests on your fresh bundle with the 
> solution mentioned above.
> 
> With regards,
> -- 
> Dennis
> 
> 
>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hey Aaron,
>> 
>> This error rings a bell. I don't recall all the details. It looks like the 
>> collectMainProps method is trying to find the Properties file of your 
>> project in the wrong place.
>> 
>> When you build your project in Eclipse with WOLips, it generates a build 
>> folder containing your project's WOA bundle. Maven, however, puts the 
>> generated WOA bundle in the target folder. I'm afraid the application 
>> initialization code keeps looking for the build folder when you run your 
>> tests with Maven.
>> 
>> I'm not sure if there's a better way to solve this problem. Anyway, the code 
>> below may fix it.
>> 
>> // That's the main bundle when running tests from Eclipse
>> Path mainBundlePath = Paths.get("build/your-project.woa");
>> 
>> if (Files.notExists(mainBundlePath)) {
>>  // Maven doesn't create a build directory. The WOA bundle goes into the 
>> target folder instead.
>>  mainBundlePath = Paths.get("target/your-project.woa");
>> }
>> 
>> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
>> ACUnitTestingApplication.class, args);
>> 
>> Cheers,
>> 
>> HP
>> 
>>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hi,
>>> 
>>> I’m trying to run maven unit tests with the surefire plugin that make use 
>>> of EOF but it’s not working out. 
>>> 
>>> I can run them in Eclipse with a direct launch as a bundless build and it 
>>> works. I make a call in the static initializer of the test case to:
>>> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
>>> 
>>> And it thinks it’s a WO 

Re: Maven Unit tests with EOF

2020-01-22 Thread Dennis Scheffer via Webobjects-dev
Hi everyone,


> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);

This may not work under certain circumstances because the surefire plugin 
usually runs in the Maven 'test' phase which is before the 'package' phase. 
Therefore, there may not be a bundle at 'target/your-project.woa' – especially 
if you do a 'mvn clean test'.

The solution is very simple: I would consider tests that depend on a pre-build 
bundle integration tests (which makes sense because most of the time all the 
application's 'units' are integrated in a bundle). And just use the Maven 
failsafe pugin (https://maven.apache.org/surefire/maven-failsafe-plugin/ 
). It works exactly 
the same as the surefire plugin but runs in the 'verify' phase which is after 
the 'package' phase. So 'mvn clean verify' will clean your target directory, 
create a fresh new bundle and run your tests on your fresh bundle with the 
solution mentioned above.

With regards,
-- 
Dennis


> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev 
>  wrote:
> 
> Hey Aaron,
> 
> This error rings a bell. I don't recall all the details. It looks like the 
> collectMainProps method is trying to find the Properties file of your project 
> in the wrong place.
> 
> When you build your project in Eclipse with WOLips, it generates a build 
> folder containing your project's WOA bundle. Maven, however, puts the 
> generated WOA bundle in the target folder. I'm afraid the application 
> initialization code keeps looking for the build folder when you run your 
> tests with Maven.
> 
> I'm not sure if there's a better way to solve this problem. Anyway, the code 
> below may fix it.
> 
> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);
> 
> Cheers,
> 
> HP
> 
>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi,
>> 
>> I’m trying to run maven unit tests with the surefire plugin that make use of 
>> EOF but it’s not working out. 
>> 
>> I can run them in Eclipse with a direct launch as a bundless build and it 
>> works. I make a call in the static initializer of the test case to:
>> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
>> 
>> And it thinks it’s a WO app and has access to the model group and all of EOF 
>> and I can do destructive stuff like creating and saving Eos to the DB all 
>> inside a launch from Eclipse.
>> 
>> Where I’m running into trouble is trying to do it with Maven. At the moment 
>> I’m getting a null pointer from maven launch at the following place.
>> 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>> 
>> I think because it is wanting to treat it as a bundle but it isn’t and so… 
>> I’m not sure where to go from here. Any advice?
>> 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319
>>  
>> 
>> ___
>> 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/hprange%40gmail.com 
>> 
>> 
>> This email sent to hpra...@gmail.com 
> 
> ___
> 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/dennis%40selbstdenker.ag
>  
> 
> 
> This email sent to den...@selbstdenker.ag 


smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing 

Re: Maven Unit tests with EOF

2020-01-22 Thread Aaron Rosenzweig via Webobjects-dev
Markus, moin moin! Yes it’s been a long time :-) Thanks for the tip - I located 
the thread you mentioned where Hugi recommended "JarResourceRequestHandler()” - 
I think he might be onto something with respect to Jars but that particular 
thing is for serving static resources not for NSBundle. I’d be interested to 
know how you patched things, that might shed some additional light. I hear you, 
you’d rather not patch but sometimes you gotta do what you gotta do. 

Hey Paul - Yeah the MockEC is neat and doesn’t even need to go to the DB so 
it’s easier in many ways but I have a mandate to be destructive with the DB so 
I cannot use the MockEC for this unit test. 

Henrique - you are so close I think! I tried your suggestion, it didn’t work 
but your hot. 

There are three types of concrete (not abstract) NSBundles:
1) NSLegacyBundle
2) NSFluffyBunnyProjectBundle
3) NSMavenProjectBundle

When I run this from Eclipse I can hit breakpoints and I confirmed that it is 
making an NSFluffyBunnyProjectBundle. 

I don’t know how to debug a maven run or if it is even possible… But it is 
actually giving me a "java.lang.NoClassDefFoundError: Could not initialize 
class com.webobjects.foundation.NSBundle” that later morphs into a null pointer 
in ERXApplication$Loader.collectMainProps()

NSBundle itself is abstract… and I’m trying to run a test on a framework - 
maybe that’s just a bad idea and I should move the test to a WOApplication 
project that uses the framework… Not sure. 

The “NSMavenProjectBundle” seems to be for running from within Eclipse too but 
I don’t know much about it. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jan 22, 2020, at 8:28 PM, Henrique Prange  wrote:
> 
> Hey Aaron,
> 
> This error rings a bell. I don't recall all the details. It looks like the 
> collectMainProps method is trying to find the Properties file of your project 
> in the wrong place.
> 
> When you build your project in Eclipse with WOLips, it generates a build 
> folder containing your project's WOA bundle. Maven, however, puts the 
> generated WOA bundle in the target folder. I'm afraid the application 
> initialization code keeps looking for the build folder when you run your 
> tests with Maven.
> 
> I'm not sure if there's a better way to solve this problem. Anyway, the code 
> below may fix it.
> 
> // That's the main bundle when running tests from Eclipse
> Path mainBundlePath = Paths.get("build/your-project.woa");
> 
> if (Files.notExists(mainBundlePath)) {
>  // Maven doesn't create a build directory. The WOA bundle goes into the 
> target folder instead.
>  mainBundlePath = Paths.get("target/your-project.woa");
> }
> 
> ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
> ACUnitTestingApplication.class, args);
> 
> Cheers,
> 
> HP
> 
>> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi,
>> 
>> I’m trying to run maven unit tests with the surefire plugin that make use of 
>> EOF but it’s not working out. 
>> 
>> I can run them in Eclipse with a direct launch as a bundless build and it 
>> works. I make a call in the static initializer of the test case to:
>> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
>> 
>> And it thinks it’s a WO app and has access to the model group and all of EOF 
>> and I can do destructive stuff like creating and saving Eos to the DB all 
>> inside a launch from Eclipse.
>> 
>> Where I’m running into trouble is trying to do it with Maven. At the moment 
>> I’m getting a null pointer from maven launch at the following place.
>> 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>> 
>> I think because it is wanting to treat it as a bundle but it isn’t and so… 
>> I’m not sure where to go from here. Any advice?
>> 
>> AARON ROSENZWEIG / Chat 'n Bike 
>> e:  aa...@chatnbike.com   t:  (301) 956-2319 
>> 
>>  
>> 
>> ___
>> 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/hprange%40gmail.com 
>> 
>> 
>> This email sent to hpra...@gmail.com
> 

 ___
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


Re: Maven Unit tests with EOF

2020-01-22 Thread Henrique Prange via Webobjects-dev
Hey Aaron,

This error rings a bell. I don't recall all the details. It looks like the 
collectMainProps method is trying to find the Properties file of your project 
in the wrong place.

When you build your project in Eclipse with WOLips, it generates a build folder 
containing your project's WOA bundle. Maven, however, puts the generated WOA 
bundle in the target folder. I'm afraid the application initialization code 
keeps looking for the build folder when you run your tests with Maven.

I'm not sure if there's a better way to solve this problem. Anyway, the code 
below may fix it.

// That's the main bundle when running tests from Eclipse
Path mainBundlePath = Paths.get("build/your-project.woa");

if (Files.notExists(mainBundlePath)) {
 // Maven doesn't create a build directory. The WOA bundle goes into the target 
folder instead.
 mainBundlePath = Paths.get("target/your-project.woa");
}

ERXExtensions.initApp("your-project", mainBundlePath.toUri().toURL(), 
ACUnitTestingApplication.class, args);

Cheers,

HP

> On Jan 22, 2020, at 2:09 PM, Aaron Rosenzweig via Webobjects-dev 
>  wrote:
> 
> Hi,
> 
> I’m trying to run maven unit tests with the surefire plugin that make use of 
> EOF but it’s not working out. 
> 
> I can run them in Eclipse with a direct launch as a bundless build and it 
> works. I make a call in the static initializer of the test case to:
> ERXExtensions.initApp(ACUnitTestingApplication.class, arguments);
> 
> And it thinks it’s a WO app and has access to the model group and all of EOF 
> and I can do destructive stuff like creating and saving Eos to the DB all 
> inside a launch from Eclipse.
> 
> Where I’m running into trouble is trying to do it with Maven. At the moment 
> I’m getting a null pointer from maven launch at the following place.
> 
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
> 
> I think because it is wanting to treat it as a bundle but it isn’t and so… 
> I’m not sure where to go from here. Any advice?
> 
> AARON ROSENZWEIG / Chat 'n Bike 
> e:  aa...@chatnbike.com   t:  (301) 956-2319  
> 
>   
> 
> ___
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.com

 ___
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


Re: Maven Unit tests with EOF

2020-01-22 Thread Paul Hoadley via Webobjects-dev
Hi Aaron,

On 23 Jan 2020, at 03:39, Aaron Rosenzweig via Webobjects-dev 
 wrote:

> I think because it is wanting to treat it as a bundle but it isn’t and so… 
> I’m not sure where to go from here. Any advice?

I have no advice for your specific problem, but on the off chance you haven't 
heard of it, Henrique's WOUnit project is purpose-built for unit testing EOs, 
requires no database or application booting, and runs just fine as part of a 
Maven build:

https://github.com/hprange/wounit 

It's not going to help you if you have a large suite of existing tests using a 
different approach, just throwing it out there in case you're not familiar with 
it.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


RE: EXTERNAL-Re: Maven builds and fetchSpecs

2019-05-21 Thread Kantala, Dmytro R.
I finally found the issue.  Seems like you will only have this issue if you are 
running a Maven build (ie, model in jar file) on windows.

I tracked the problem to this method in NSPathUtilities:  public static String 
stringByAppendingPathComponent(String path, String component)

The method was not recognizing the end path character as a file separator when 
the file path is a jar path.  Therefor it appended the windows file separator 
creating a path such as this:

jar:file:C:/temp/WebObjects_Testing/MRQuartz-1.0.0.woa/Contents/Resources/Java/com/motleyrice/QuartzBusinessLogic/1.0.0/QuartzBusinessLogic-1.0.0.jar!/Resources/Quartz.eomodeld/\MRJobDetail

Notice the "/\" after the .eomodeld where it concatenated the path and 
component.

Here is the modified code that now resolves a proper jar file path on windows.  
For the pathEndsWithFileSeparator variable, it double checks if this a jar path 
and looks for the jar file separator.  Does the same type check when performing 
the concatenate.

public static String stringByAppendingPathComponent(String path, String 
component) {
if (path == null)
return component == null ? "" : component;
if (component == null) {
return path;
}
int pathLength = path.length();
int componentLength = component.length();
if (pathLength == 0)
return component;
if (componentLength == 0) {
return path;
}

boolean pathEndsWithFileSeparator = 
path.endsWith(File.separator) || (path.startsWith("jar:") && 
path.endsWith("/"));
boolean componentStartsWithFileSeparator = 
component.startsWith(File.separator);
if ((pathEndsWithFileSeparator) && 
(componentStartsWithFileSeparator)) {
StringBuffer buffer = new 
StringBuffer(pathLength + componentLength - 1);
buffer.append(path.substring(0, pathLength - 
1));
buffer.append(component);
return new String(buffer);
}
if ((pathEndsWithFileSeparator) || 
(componentStartsWithFileSeparator)) {
StringBuffer buffer = new 
StringBuffer(pathLength + componentLength);
buffer.append(path);
buffer.append(component);
return new String(buffer);
}

StringBuffer buffer = new StringBuffer(pathLength + 
componentLength + 1);
buffer.append(path);
buffer.append(path.startsWith("jar:") ? "/" : File.separator);
buffer.append(component);
return new String(buffer);
}

Thanks,

Dmytro

From: Kantala, Dmytro R.
Sent: Thursday, May 2, 2019 9:40 AM
To: webobjects-dev@lists.apple.com
Subject: RE: EXTERNAL-Re: Maven builds and fetchSpecs

I am getting a null.  Below is the code I used to see what specs are even 
found.  It’s coming up with nothing found.


   EOEntity eoEntity = 
eoModelCMP.entityNamed(_AbEntry.ENTITY_NAME);
   if(null == eoEntity) {
  log.info("Entity NOT found: 
"+_AbEntry.ENTITY_NAME);
   } else {
  log.info("Entity found: 
"+_AbEntry.ENTITY_NAME);
  NSArray fsNames = 
eoEntity.fetchSpecificationNames();
  if((null == fsNames) || fsNames.isEmpty()) {
 log.info("fsNames NOT found, count: 
0");
  } else {
 log.info("fsNames found, count: 
"+fsNames.count());
 for(String name : fsNames) {
log.info("Name found: " + name);
 }
  }
   }

Here is an excerpt from my parent pom to say version of the wolifecycle plugin 
I am using.

   
  ${project.artifactId}
  
 
   
  
org.objectstyle.woproject.maven2
  
maven-wolifecycle-plugin
  2.3-SNAPSHOT
   
   
  org.apache.maven.plugins
  maven-compiler-plugin
  3.7.0
   
   

RE: EXTERNAL-Re: Maven builds and fetchSpecs

2019-05-02 Thread Kantala, Dmytro R.
I am getting a null.  Below is the code I used to see what specs are even 
found.  It’s coming up with nothing found.


   EOEntity eoEntity = 
eoModelCMP.entityNamed(_AbEntry.ENTITY_NAME);
   if(null == eoEntity) {
  log.info("Entity NOT found: 
"+_AbEntry.ENTITY_NAME);
   } else {
  log.info("Entity found: 
"+_AbEntry.ENTITY_NAME);
  NSArray fsNames = 
eoEntity.fetchSpecificationNames();
  if((null == fsNames) || fsNames.isEmpty()) {
 log.info("fsNames NOT found, count: 
0");
  } else {
 log.info("fsNames found, count: 
"+fsNames.count());
 for(String name : fsNames) {
log.info("Name found: " + name);
 }
  }
   }

Here is an excerpt from my parent pom to say version of the wolifecycle plugin 
I am using.

   
  ${project.artifactId}
  
 
   
  
org.objectstyle.woproject.maven2
  
maven-wolifecycle-plugin
  2.3-SNAPSHOT
   
   
  org.apache.maven.plugins
  maven-compiler-plugin
  3.7.0
   
 
  
  
 
   org.objectstyle.woproject.maven2
   maven-wolifecycle-plugin
   true
   
  
false
   
 
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
  1.8
  1.8
   
 
  
   


Dmytro Kantala | Manager Applications Engineering | Motley Rice LLC
28 Bridgeside Blvd. | Mt. Pleasant, SC 29464
o. 843.216.9514 | f. 843.216.9450 | dkant...@motleyrice.com

From: Hugi Thordarson 
Sent: Thursday, May 2, 2019 6:41 AM
To: Kantala, Dmytro R. 
Cc: webobjects-dev@lists.apple.com
Subject: EXTERNAL-Re: Maven builds and fetchSpecs

Hi Dmytro,
someone who uses EOF might probably be better able to help you. But just for 
testing I tried this out: Opened an old project that uses EOF, created a 
FetchSpec in a model in a framework it referenced and was successfully able to 
get to it using EOFetchSpecification.fetchSpecificationNamed( "FetchSpecName", 
"EntityName" ).

So not much help here—I just wanted to confirm that it *should* work. Does the 
framework throw a stack trace at you or do you just get null when attempting to 
resolve the fetchSpec?

Cheers,
- hugi



On 29 Apr 2019, at 17:38, Kantala, Dmytro R. 
mailto:dkant...@motleyrice.com>> wrote:



I finally gotten around to make the switch from Ant to Maven, really had to.  I 
am able to successfully build the project, so far everything runs in eclipse, 
and attempting to run from command line.

The first thing this app does is use a fetch spec to pull in some entities.  
This is failing because it can’t find the fetch spec by name.  I then wrote 
some code that looked over the entities to see if any fetch specs were loaded 
and none were.

It appears to find the plist from the jar, just not the fetch specs.

How did everyone get around this issue?

Environment:
-  Wonder 7.1-SNAPSHOT
-  WebObjects 5.4.3
-  The model is in a framework used by the application.
-  I can open the Maven packaged framework jar and see the .fspec files.
-  Windows 10
-  JDK 1.12 (had same issue with 1.9)

Thanks,

Dmytro

Confidential & Privileged
Unless otherwise indicated or obvious from its nature, the information 
contained in this communication is attorney-client privileged and confidential 
information/work product. This communication is intended for the use of the 
individual or entity named above. If the reader of this communication is not 
the intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited. If you 
have received this communication in error or are not sure whether it is 
privileged, please immediately notify us by return e-mail and destroy any 
copies--electronic, paper or otherwise--which you may have of this 
co

Re: Maven builds and fetchSpecs

2019-05-02 Thread Hugi Thordarson
Hi Dmytro,
someone who uses EOF might probably be better able to help you. But just for 
testing I tried this out: Opened an old project that uses EOF, created a 
FetchSpec in a model in a framework it referenced and was successfully able to 
get to it using EOFetchSpecification.fetchSpecificationNamed( "FetchSpecName", 
"EntityName" ).

So not much help here—I just wanted to confirm that it *should* work. Does the 
framework throw a stack trace at you or do you just get null when attempting to 
resolve the fetchSpec?

Cheers,
- hugi


> On 29 Apr 2019, at 17:38, Kantala, Dmytro R.  wrote:
> 
> 
> 
> I finally gotten around to make the switch from Ant to Maven, really had to.  
> I am able to successfully build the project, so far everything runs in 
> eclipse, and attempting to run from command line.
>  
> The first thing this app does is use a fetch spec to pull in some entities.  
> This is failing because it can’t find the fetch spec by name.  I then wrote 
> some code that looked over the entities to see if any fetch specs were loaded 
> and none were.
>  
> It appears to find the plist from the jar, just not the fetch specs.
>  
> How did everyone get around this issue?
>  
> Environment:
> -  Wonder 7.1-SNAPSHOT
> -  WebObjects 5.4.3
> -  The model is in a framework used by the application.
> -  I can open the Maven packaged framework jar and see the .fspec 
> files.
> -  Windows 10
> -  JDK 1.12 (had same issue with 1.9)
>  
> Thanks,
>  
> Dmytro
> 
>  
> Confidential & Privileged
> 
> Unless otherwise indicated or obvious from its nature, the information 
> contained in this communication is attorney-client privileged and 
> confidential information/work product. This communication is intended for the 
> use of the individual or entity named above. If the reader of this 
> communication is not the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this communication is strictly 
> prohibited. If you have received this communication in error or are not sure 
> whether it is privileged, please immediately notify us by return e-mail and 
> destroy any copies--electronic, paper or otherwise--which you may have of 
> this communication.
> 
> 
> 
> ___
> 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/hugi%40karlmenn.is 
> 
> 
> This email sent to h...@karlmenn.is 
 ___
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


Re: Maven builds and Generate Bundles

2019-03-06 Thread Michael Sharp
Thanks Hugi. I can live with workspace wide "generate bundles".

Sharpy.

> On 6 Mar 2019, at 6:55 pm, Hugi Thordarson  wrote:
> 
> I'm not aware of a way to have Maven builds function without generating 
> bundles :-/.
> 
> I thought this would be a drag on performance (since I remembered bundle-less 
> being a huge performance boost) but it hasn't been, really (although my 
> projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent 
> of SSDs has made bundle generation less of a drag?
> 
> - hugi
> 
> 
>> On 6 Mar 2019, at 04:59, Michael Sharp > > wrote:
>> 
>> Hi All,
>> 
>> As I continue my Maven journey I now find myself with a workspace consisting 
>> of both Maven and Ant WO projects. All my legacy builds are bundle-less 
>> while my Maven projects require the Generate Bundles WOLips preference 
>> checked. I see the same behaviour in both new and migrated Maven projects.
>> 
>> Is it possible to run Maven WO apps without Generate Bundles checked? 
>> Ideally I’d like to leave my debug/run launch configs for my legacy 
>> applications unchanged.
>> 
>> Thanks
>> 
>> Sharpy.
>> ___
>> 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/hugi%40karlmenn.is 
>> 
>> 
>> This email sent to h...@karlmenn.is
> 

 ___
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


Re: Maven builds and Generate Bundles

2019-03-06 Thread Hugi Thordarson
I'm not aware of a way to have Maven builds function without generating bundles 
:-/.

I thought this would be a drag on performance (since I remembered bundle-less 
being a huge performance boost) but it hasn't been, really (although my 
projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent of 
SSDs has made bundle generation less of a drag?

- hugi


> On 6 Mar 2019, at 04:59, Michael Sharp  wrote:
> 
> Hi All,
> 
> As I continue my Maven journey I now find myself with a workspace consisting 
> of both Maven and Ant WO projects. All my legacy builds are bundle-less while 
> my Maven projects require the Generate Bundles WOLips preference checked. I 
> see the same behaviour in both new and migrated Maven projects.
> 
> Is it possible to run Maven WO apps without Generate Bundles checked? Ideally 
> I’d like to leave my debug/run launch configs for my legacy applications 
> unchanged.
> 
> Thanks
> 
> Sharpy.
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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


Re: Maven and Wonder

2019-02-05 Thread Paul Hoadley
Hi Markus,

On 6 Feb 2019, at 02:23, Markus Stoll, junidas GmbH  
wrote:

> 2. wounit tests executed from surefireplugin in maven.
> 
> The default way the test is setup (to execute the tests from test-classes), 
> NSBundle won't find its resources, so MockEditingContext wont find the 
> EOModels. I created a patch to enable NSBundle to handle this setup. But I 
> guess, I am missing something here, too.
> But I could't find anything about how to setup surefire / junit / wounit 
> tests from Maven for Wonder / WebObjects.

This you shouldn't need to do. Are you using the latest WOUnit (1.2.4)?


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
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


Re: Maven and Wonder

2019-02-05 Thread Hugi Thordarson
Hi Markus.

Regarding (1), you probably need to include JarResourceRequestHandler 
((https://gist.github.com/hprange/1068523) in your project and activate it in 
your Application constructor:

if (isDirectConnectEnabled()) {
registerRequestHandler(new JarResourceRequestHandler(), "wr");
}

And as you mention, this should probably have been included in Wonder some way 
a while back…

2) I don't use EOF anymore (using Cayenne) so this is not my area of expertise, 
but I'm guessing you need to check out  some of the methods in ERXExtensions 
for bootstraping the environment for testing. Probably initEOF or initApp, 
depending on your requirements.

- hugi


> On 5 Feb 2019, at 15:53, Markus Stoll, junidas GmbH  
> wrote:
> 
> Hi,
> 
> finally I started mavenizing my Wonder projects (and I am very grateful for 
> all the work done here).
> I observed few things that required patching Wonder and I wonder whether I 
> missed something.
> 
> 1. When I start one of the example application (from maven build) directly, 
> it creates URLs for the ERXStaticResourceRequestHandler that have a file 
> reference like this:
> 
> jar:file:///!/path/to/resource/in/jar
> 
> and ERXStaticResourceRequestHandler was not handling this correctly. I 
> created a patch for this, but I am puzzled why this might be needed as I 
> expected to be one of the last ones to go Maven.
> 
> 
> 2. wounit tests executed from surefireplugin in maven.
> 
> The default way the test is setup (to execute the tests from test-classes), 
> NSBundle won't find its resources, so MockEditingContext wont find the 
> EOModels. I created a patch to enable NSBundle to handle this setup. But I 
> guess, I am missing something here, too.
> But I could't find anything about how to setup surefire / junit / wounit 
> tests from Maven for Wonder / WebObjects.
> 
> Maybe someone can give me some hints. If I did not miss anything, I will be 
> glad to supply my patches to Wonder, but still I fear they might not be 
> needed at all...
> 
> Regards, Markus
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
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


Re: Maven: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Paul Hoadley
On 25 Jun 2017, at 2:41 pm, Paul Hoadley  wrote:

> 
>   
> Resources
> ${basedir}/src/main/resources
> true
>   
> 

Removing Resources gets me what I want: resources in 
src/main/resources filtered with substitutions, and whatever Eclipse is after 
under target/classes for a development-mode launch. The built bundle (from ‘mvn 
package’) seems unaffected either way.

Can someone help me understand this? In other projects I’ve used the exact 
syntax above, albeit with Hugi’s hack discussed elsewhere for 
components-in-folders, like this:


  
Resources
${basedir}/src/main/resources
true
  
  
Resources
${basedir}/src/main/components/Admin
  
  
Resources
${basedir}/src/main/components/Analytics
  
  ...

But you can see there I’m adding Resources, and I can 
tell you it works for development and deployment. Hugi? Henrique? Bueller?


-- 
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/


 ___
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


Re: Maven: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Chuck Hill
No, it is not meant to be.

From: Paul Hoadley <pa...@logicsquad.net>
Date: Saturday, June 24, 2017 at 11:43 PM
To: Chuck Hill <ch...@gevityinc.com>
Cc: WebObjects Development <webobjects-dev@lists.apple.com>
Subject: Re: Maven: trying to filter Properties breaks Eclipse launch

On 25 Jun 2017, at 2:59 pm, Chuck Hill 
<ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote:

Is the pom.xml getting copied into target/?

No, though I don’t think it’s meant to be.


--
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven: trying to filter Properties breaks Eclipse launch

2017-06-25 Thread Paul Hoadley
On 25 Jun 2017, at 2:59 pm, Chuck Hill  wrote:

> Is the pom.xml getting copied into target/? 

No, though I don’t think it’s meant to be.


-- 
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven: trying to filter Properties breaks Eclipse launch

2017-06-24 Thread Chuck Hill
Is the pom.xml getting copied into target/?

From: Webobjects-dev 
 on behalf of Paul 
Hoadley 
Date: Saturday, June 24, 2017 at 10:11 PM
To: WebObjects Development 
Subject: Maven: trying to filter Properties breaks Eclipse launch

Hi Maveners,

I seem to have hit yet another Maven resource-related issue. I’ve got a project 
that doesn’t do anything non-standard with src/main/resources. (It’s the same 
project I was talking about a couple of days ago, but I haven’t, for example, 
used Hugi’s 'copy-resources’ hack yet to get logging.properties into the right 
place—I will sort that out later.) All I want to do is filter Properties on 
build so that some Maven-related properties are substituted with their 
build-time values. I’ve just added this to the POM:


  
Resources
${basedir}/src/main/resources
true
  


At which point Eclipse loses its mind on application launch:

2017-06-25 05:00:28 Rescue[63636] DEBUG NSLog  - : Warning - 
Unable to find project at path 
/Users/paulh/Projects/WebObjects/GitRepos/Rescue/target/classes - Ignoring 
project.
[2017-6-25 5:0:28 UTC]  com.webobjects.foundation.NSForwardException 
[java.lang.StringIndexOutOfBoundsException] String index out of range: 
-1:java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectFromEclipseProject(_IDEProjectWOLips.java:78)
at 
com.webobjects._ideservices._IDEProjectWOLips.wolipsProjectAtPath(_IDEProjectWOLips.java:87)
at com.webobjects._ideservices._WOProject.ideProjectAtPath(_WOProject.java:110)
at 
com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(WOProjectBundle.java:226)

This happens a few times, and the application fails to launch because it can’t 
find any of the components. Indeed, the layout under target/classes does look 
very different based on whether that resource block is present in the POM, but 
I’ve done this in other projects and it works fine. To be clear, the built 
bundle looks fine if I manually run ‘mvn package’, it’s just Eclipse that can’t 
seem to launch the app.

Hugi—you seen this before? Any guesses?


--
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven + WOnder 7

2017-01-06 Thread Mark Gowdy
Hi, 

Nearly there.

I have my frameworks converted to use Maven (dependencies are nice btw), and 
have got my first app to run in Development.
I deploy it (for now), using [Run As : Maven Install], and copy the resulting 
tar.gz file to the server.

When I run it on the server, the app tries to start up, goes 100% CPU for about 
4 minutes, then finally starts.
To be fair, it is on a Raspberry Pi, but the old (pre-maven) ant build didn’t 
have this problem.

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

Application log:
..etc..
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaWebServicesSupport/5.4.3/JavaWebServicesSupport-5.4.3.jar
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaXML/5.4.3/JavaXML-5.4.3.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
WILL ADD SHUTDOWNHOOK
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
<<== LONG WAIT HERE ==>>
Jan 06 14:00:10 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
/home/pi/WebObjects.properties at path: /home/pi
Jan 06 14:00:10 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
..etc..

Any thoughts on what is causing it to go mental?

Mark

> On 5 Jan 2017, at 09:20, Mark Gowdy  wrote:
> 
> Paul, 
> 
> I was going to show you the error.
> (which was something like ‘wonder.ajax : Ajax.jar not found’)
> 
> but when I tried to reproduce it, it only went and worked !! (rather 
> suspiciously)
> 
> Although I am not complaining.
> 
> Thanks for you help,
> 
> Mark
> 
>> On 4 Jan 2017, at 22:50, Paul Hoadley > > wrote:
>> 
>> Hi Mark,
>> 
>> On 5 Jan 2017, at 3:34 am, Mark Gowdy > > wrote:
>> 
>>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the 
>>> mix.
>>> 
>>> I have tried various entries in the pom file (such as)
>>> --
>>> 
>>> wonder.ajax
>>> Ajax
>>> ${wonder.version}
>>> 
>>> --
>>> But no success yet.
>>> 
>>> Any ideas?
>> 
>> That should certainly do it, as long as you’re declaring wonder.version 
>> somewhere, either in that project’s POM or some parent of it. What’s the 
>> error you’re seeing?
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/ 
>> https://www.linkedin.com/company/logic-squad/ 
>> 
>> 
>> 
>> 
> 
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


Re: Maven + WOnder 7

2017-01-05 Thread Mark Gowdy
Paul, 

I was going to show you the error.
(which was something like ‘wonder.ajax : Ajax.jar not found’)

but when I tried to reproduce it, it only went and worked !! (rather 
suspiciously)

Although I am not complaining.

Thanks for you help,

Mark

> On 4 Jan 2017, at 22:50, Paul Hoadley  wrote:
> 
> Hi Mark,
> 
> On 5 Jan 2017, at 3:34 am, Mark Gowdy  > wrote:
> 
>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.
>> 
>> I have tried various entries in the pom file (such as)
>> --
>> 
>>  wonder.ajax
>>  Ajax
>>  ${wonder.version}
>> 
>> --
>> But no success yet.
>> 
>> Any ideas?
> 
> That should certainly do it, as long as you’re declaring wonder.version 
> somewhere, either in that project’s POM or some parent of it. What’s the 
> error you’re seeing?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ 
> https://www.linkedin.com/company/logic-squad/
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


Re: Maven + WOnder 7

2017-01-04 Thread Paul Hoadley
Hi Mark,

On 5 Jan 2017, at 3:34 am, Mark Gowdy  wrote:

> My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.
> 
> I have tried various entries in the pom file (such as)
> --
> 
>   wonder.ajax
>   Ajax
>   ${wonder.version}
> 
> --
> But no success yet.
> 
> Any ideas?

That should certainly do it, as long as you’re declaring wonder.version 
somewhere, either in that project’s POM or some parent of it. What’s the error 
you’re seeing?


-- 
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven + WOnder 7

2017-01-04 Thread Paul Hoadley
Hi Mark,

On 4 Jan 2017, at 11:04 pm, Mark Gowdy  wrote:

> Can anyone confirm the Wonder Version that I should specify in the 
> dependencies?
> Is it always: 7.0.0-SNAPSHOT

Short answer is yes, but the longer answer is that it’s up to you. 
7.0.0-SNAPSHOT is where the tip of the master branch is at, so it’s like 
tracking HEAD—you’ll always have the latest changes. Ideally there would be 
more frequent stable releases, and you could do something like specify a 
release version. But if you want to stay current, 7.0.0-SNAPSHOT will do it.

> Or are there updated versions.  If so, how do I find the latest version 
> number?

You can browse all the releases here:

http://maven.wocommunity.org/content/groups/public/wonder/ 



-- 
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



 ___
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


Re: Maven + WOnder 7

2017-01-04 Thread Mark Gowdy

> On 4 Jan 2017, at 13:49, G Brown  wrote:
> 
> Mark,
> 
> I see on github many tags for different versions, but I think the 
> 7.00-SNAPSHOT is the ever changing shifting current wonder version.

Yea, I think so too.

My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.

I have tried various entries in the pom file (such as)
--

wonder.ajax
Ajax
${wonder.version}

--
But no success yet.

Any ideas?

Mark

> 
> You may also want to  create a wonder parent
>   
>wonder
>generic-woparent
>7.00-SNAPSHOT
> ./generic-woparent
>  
> As that will save you much typing, and you will have the exact jar versions, 
> plugins and their versions, etc. that was used to create wonder 7, or any 
> version you like.
> 
> https://github.com/gitgb/splitpom 
> 
> I will put in a pull request so the wonder pom.xml is split into a reusable 
> parent, and the non-reusable ….soon….

I am only starting to play with Maven, I am not anywhere near ‘Ninja’ status 
yet.
This looks like sorcery to me !

> 
> G Brown
> gsbr...@umich.edu 
> 
> 
> 
> 
> On Jan 4, 2017, at 7:34 AM, Mark Gowdy  > wrote:
> 
>> Hi, 
>> 
>> Finally moving everything over to Maven and Wonder 7
>> 
>> Can anyone confirm the Wonder Version that I should specify in the 
>> dependencies?
>> Is it always: 7.0.0-SNAPSHOT
>> 
>> Or are there updated versions.  If so, how do I find the latest version 
>> number?
>> 
>> Thanks,
>> 
>> Mark
>> _
>> Mark Gowdy
>> Gowdy Associates Ltd
>> M: +44 7808 400 941
>> Skype: markgowdy
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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/gsbrown%40umich.edu 
>> 
>> 
>> This email sent to gsbr...@umich.edu
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


Re: Maven + WOnder 7

2017-01-04 Thread G Brown
Mark,

I see on github many tags for different versions, but I think the 7.00-SNAPSHOT 
is the ever changing shifting current wonder version.

You may also want to  create a wonder parent

   wonder
   generic-woparent
   7.00-SNAPSHOT
./generic-woparent
 
As that will save you much typing, and you will have the exact jar versions, 
plugins and their versions, etc. that was used to create wonder 7, or any 
version you like.

https://github.com/gitgb/splitpom

I will put in a pull request so the wonder pom.xml is split into a reusable 
parent, and the non-reusable ….soon….

G Brown
gsbr...@umich.edu




On Jan 4, 2017, at 7:34 AM, Mark Gowdy  wrote:

> Hi, 
> 
> Finally moving everything over to Maven and Wonder 7
> 
> Can anyone confirm the Wonder Version that I should specify in the 
> dependencies?
> Is it always: 7.0.0-SNAPSHOT
> 
> Or are there updated versions.  If so, how do I find the latest version 
> number?
> 
> Thanks,
> 
> Mark
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 
> 
> ___
> 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/gsbrown%40umich.edu
> 
> This email sent to gsbr...@umich.edu

 ___
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


Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-10-16 Thread Paul Hoadley
On 17 Oct 2016, at 7:16 AM, Mark Wardle  wrote:

> Paul, you’re a better man than me! I really will do this now you’ve proven it 
> is possible….  probably next week… maybe!

Getting me through the migration process was 95% Hugi, though I will take 
credit for this particular find. Assuming it works for you. Otherwise I will 
disown it.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-10-16 Thread Mark Wardle
Paul, you’re a better man than me! I really will do this now you’ve proven it 
is possible….  probably next week… maybe!

Mark

> On 16 Oct 2016, at 01:05, Paul Hoadley  wrote:
> 
> Hi Mark,
> 
> On 6 Sep 2016, at 10:04 PM, Mark Wardle  > wrote:
> 
>> It isn’t quite right from eclipse. I can run a newly created application 
>> from within eclipse, but when I try to run a migrated application, I get 
>> this error:
>> 
>>  java.lang.ExceptionInInitializerError
>>  at 
>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>>  at 
>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>>  at 
>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>>  at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>>  at 
>> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>>  at 
>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>>  at com.eldrix.news.app.Application.(Application.java:66)
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  at java.lang.Class.newInstance(Class.java:438)
>>  at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>>  at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>>  at com.eldrix.news.app.Application.main(Application.java:63)
>> Caused by: java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>>  at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:483)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>>  at 
>> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>>  at 
>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>>  at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>>  ... 15 more
>> 
>> java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> 
> I just hit this exact issue. You know what it turned out to be? Stale 
> patternsets under woproject—I was migrating a Fluffy Bunny project, and 
> forgot that step. Fixed the patternsets, fixed the NPE.
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ 
> 
> 
> 

 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-10-15 Thread Paul Hoadley
Hi Mark,

On 6 Sep 2016, at 10:04 PM, Mark Wardle  wrote:

> It isn’t quite right from eclipse. I can run a newly created application from 
> within eclipse, but when I try to run a migrated application, I get this 
> error:
> 
>  java.lang.ExceptionInInitializerError
>   at 
> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>   at 
> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>   at 
> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>   at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>   at 
> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>   at 
> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>   at com.eldrix.news.app.Application.(Application.java:66)
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>   at java.lang.Class.newInstance(Class.java:438)
>   at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>   at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>   at com.eldrix.news.app.Application.main(Application.java:63)
> Caused by: java.lang.NullPointerException
>   at 
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>   at 
> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:483)
>   at 
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>   at 
> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>   at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>   at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>   at 
> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>   at 
> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>   at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>   ... 15 more
> 
> java.lang.NullPointerException
>   at 
> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)

I just hit this exact issue. You know what it turned out to be? Stale 
patternsets under woproject—I was migrating a Fluffy Bunny project, and forgot 
that step. Fixed the patternsets, fixed the NPE.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven migration: last two hurdles

2016-10-11 Thread Paul Hoadley
On 12 Oct 2016, at 8:55 AM, Faizel Dakri  wrote:

> Regarding your second issue, I also keep my components grouped in subfolders 
> and I was never able to find an automated way to flatten just the components 
> subfolders. I ended up having to explicitly exclude all subfolders under 
> src/main/components and then add each subfolder as a resource directory 
> individually so that each component in that subdirectory was installed in the 
> Resources folder. It’s not pretty and may not be the cleanest way to do 
> things, but it works for me. You just have to remember to update your POM if 
> you add/remove component subfolders. In my case, my subfolder structure is 
> pretty static and mainly kept in a framework, so I don’t have to make changes 
> often.

Thanks Faizel. Very helpful.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven migration: last two hurdles

2016-10-11 Thread Faizel Dakri
Regarding your second issue, I also keep my components grouped in subfolders 
and I was never able to find an automated way to flatten just the components 
subfolders. I ended up having to explicitly exclude all subfolders under 
src/main/components and then add each subfolder as a resource directory 
individually so that each component in that subdirectory was installed in the 
Resources folder. It’s not pretty and may not be the cleanest way to do things, 
but it works for me. You just have to remember to update your POM if you 
add/remove component subfolders. In my case, my subfolder structure is pretty 
static and mainly kept in a framework, so I don’t have to make changes often.

Here’s an excerpt from one of my framework POMs. In my project, I have a few 
subfolders under the main component folder to group related components, e.g.:

src/main/components/
…/admin/
…/common/
…/dashboards/
…

Then my POM looks something like this (I’ve removed some non-relevant stuff):



4.0.0

 ... 

abacus-views
woframework
Abacus Views


${project.artifactId}



Resources

${basedir}/src/main/components

admin/**/*
common/**/*
dashboard/**/*
...



Resources

${basedir}/src/main/components/admin


Resources

${basedir}/src/main/components/common


Resources

${basedir}/src/main/components/dashboard


...



 ... 



 ... 




Hope that helps.


F

-- 
Faizel Dakri
list...@dakri.com 


 
> On 2016-Oct-09, at 06:29 AM, Paul Hoadley  > wrote:
> 
> Hello,
> 
> Well, I say the _last_ two hurdles. They’re at least the _current_ two 
> hurdles. I’ve got this a long way, but I’m still not there. I’ve been 
> migrating an app and its 10 or so framework dependencies. Everything builds 
> (both locally on OS X and on a Jenkins CI server running Amazon Linux), but 
> I’m stuck on launch.
> 
> 1. Launching in Eclipse I get this:
> 
> WARN  NSLog  - A fatal exception occurred: There is no model named 
> 'LSNotification' in this model group.
> [2016-10-9 11:11:26 UTC]  java.lang.IllegalArgumentException: There is 
> no model named 'LSNotification' in this model group.
>   at 
> er.extensions.migration.ERXMigrator._buildDependenciesForModelsNamed(ERXMigrator.java:274)
> 
> That model is in LSNotification.framework, which appears to be built 
> correctly, and its JAR (which contains that model) is in the built 
> application bundle under target. (Is this even what Eclipse is running when I 
> hit launch?) If I go into that bundle on the command line and launch by hand, 
> I _don’t_ get this error, which is encouraging—the application finds that 
> model, runs the migrations (and then fails elsewhere—see below). What am I 
> overlooking when I launch from Eclipse? I’ve unchecked 
> NSProjectBundleEnabled—anything else?
> 
> 2. Launching from the command line, I get bitten by an issue Mark Wardle 
> brought up last month: we have sub-directories to group components under 
> src/main/components. We have sub-directories to group resources under 
> src/main/webserver-resources. We can set flattenResources to true for the 
> maven-wolifecycle-plugin, but that flattens _both_. We want to flatten 
> components, but not webserver-resources. So depending whether that’s true or 
> false, the app breaks because it either can’t find components or webserver 
> resources. Is there a workaround for this (that doesn’t involve pulling the 
> sub-directory structure our of src/main/resources)?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ 
> 
> 
> 
> ___
> 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/listfez%40dakri.com 
> 
> 
> This email sent to list...@dakri.com

 

Re: Maven with subdirectories within the src/main/components/ path

2016-10-10 Thread Hugi Thordarson
>> You can add each subfolder in your “components”-folder as a resource folder. 
>> It’s a pretty horrifying workaround, though and I think we should change the 
>> wolifecycle-plugin and align the behaviour with ant's (i.e. subfolders in 
>> the components directory should always be flattened by default).
> 
> Great idea. Do we press on in wocommunity/wolips?

I think the best way to start out is to invoke Henrique and check if he has 
input—he’s probably the one who has the most experience working on wolifecycle 
and probably has an educated opinion.

But I think the way forward is to move the maven plugins into a separate 
repository from WOLips (work that  Henrique has already started).

Henrique… you there?


>> But for the workaround; add the  element to your pom's build 
>> element. Each subfolder gets its own  tag.
> 
> Nice one.

:)

- hugi
 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-10 Thread Paul Hoadley
On 11 Oct 2016, at 2:15 AM, Hugi Thordarson  wrote:

> You can add each subfolder in your “components”-folder as a resource folder. 
> It’s a pretty horrifying workaround, though and I think we should change the 
> wolifecycle-plugin and align the behaviour with ant's (i.e. subfolders in the 
> components directory should always be flattened by default).

Great idea. Do we press on in wocommunity/wolips?

> But for the workaround; add the  element to your pom's build 
> element. Each subfolder gets its own  tag.

Nice one.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-10 Thread Mark Wardle
Thanks Hugi , that's great - as I have only a handful of directories so 
certainly a reasonable workaround. I'm definitely going to try this soon!

Mark

-- 
Dr. Mark Wardle
Consultant Neurologist, Cardiff, UK
(Sent from my mobile)


> On 10 Oct 2016, at 16:45, Hugi Thordarson  wrote:
> 
> You can add each subfolder in your “components”-folder as a resource folder. 
> It’s a pretty horrifying workaround, though and I think we should change the 
> wolifecycle-plugin and align the behaviour with ant's (i.e. subfolders in the 
> components directory should always be flattened by default).
> 
> But for the workaround; add the  element to your pom's build 
> element. Each subfolder gets its own  tag.
> 
> 
>…
>
>
>Resources
>
>${basedir}/src/main/components/Folder1
>
>
>
>Resources
>
>${basedir}/src/main/components/Folder2
>
>
>
>...
> 
> 
> - hugi
> 
> 
>> On 10. okt. 2016, at 07:02, Paul Hoadley  wrote:
>> 
>> On 9 Oct 2016, at 8:14 PM, Paul Hoadley  wrote:
>> 
 On 6 Sep 2016, at 10:00 PM, Mark Wardle  wrote:
 
 I am getting the following error:
 
  No template 
 found for component 
 
 for components held within subdirectories of src/main/components/  There 
 isn’t a problem for .wo directories stored directly in src/main/components.
 
 Is there any way of supporting such an organisation?
>>> 
>>> Did you find a work-around for this?
>> 
>> Anyone else? Are people using Maven[1] just using a flat structure under 
>> src/main/components, or is there some work-around we’re missing here?
>> 
>> [1] I’m assuming the intersection of that group with this list is non-empty. 
>> Are there actually any WO-Maven people still here?
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/
>> 
>> 
>> 
>> 
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 
> 
> ___
> 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/mark%40wardle.org
> 
> This email sent to m...@wardle.org

 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-10 Thread Hugi Thordarson
You can add each subfolder in your “components”-folder as a resource folder. 
It’s a pretty horrifying workaround, though and I think we should change the 
wolifecycle-plugin and align the behaviour with ant's (i.e. subfolders in the 
components directory should always be flattened by default).

But for the workaround; add the  element to your pom's build 
element. Each subfolder gets its own  tag.


…


Resources

${basedir}/src/main/components/Folder1



Resources

${basedir}/src/main/components/Folder2



...


- hugi


> On 10. okt. 2016, at 07:02, Paul Hoadley  wrote:
> 
> On 9 Oct 2016, at 8:14 PM, Paul Hoadley  wrote:
> 
>> On 6 Sep 2016, at 10:00 PM, Mark Wardle  wrote:
>> 
>>> I am getting the following error:
>>> 
>>>  No template found 
>>> for component 
>>> 
>>> for components held within subdirectories of src/main/components/  There 
>>> isn’t a problem for .wo directories stored directly in src/main/components.
>>> 
>>> Is there any way of supporting such an organisation?
>> 
>> Did you find a work-around for this?
> 
> Anyone else? Are people using Maven[1] just using a flat structure under 
> src/main/components, or is there some work-around we’re missing here?
> 
> [1] I’m assuming the intersection of that group with this list is non-empty. 
> Are there actually any WO-Maven people still here?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-10 Thread Paul Hoadley
On 9 Oct 2016, at 8:14 PM, Paul Hoadley  wrote:

> On 6 Sep 2016, at 10:00 PM, Mark Wardle  wrote:
> 
>> I am getting the following error:
>> 
>>  No template found 
>> for component 
>> 
>> for components held within subdirectories of src/main/components/  There 
>> isn’t a problem for .wo directories stored directly in src/main/components.
>> 
>> Is there any way of supporting such an organisation?
> 
> Did you find a work-around for this?

Anyone else? Are people using Maven[1] just using a flat structure under 
src/main/components, or is there some work-around we’re missing here?

[1] I’m assuming the intersection of that group with this list is non-empty. 
Are there actually any WO-Maven people still here?


-- 
Paul Hoadley
http://logicsquad.net/




 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-09 Thread Paul Hoadley
On 10 Oct 2016, at 7:50 AM, Mark Wardle  wrote:

> I was probably just shy of getting it all to work but I had spent too long by 
> that point and put it to one side as a challenge for another day…

I’m getting some T-shirts made up with that on them. We can all wear them 
together.


-- 
Paul Hoadley
http://logicsquad.net/




 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-09 Thread Mark Wardle
Sorry Paul. I was probably just shy of getting it all to work but I had spent 
too long by that point and put it to one side as a challenge for another day…

That said, I have adopted maven for another project (non-WO) and am finding it 
very powerful so I will probably try again [once you’ve someone has fixed this 
subdirectory issue!!!  ;)  ]  Not keen on flattening by component 
subdirectories…

Mark

> On 9 Oct 2016, at 10:44, Paul Hoadley  wrote:
> 
> Hi Mark,
> 
> On 6 Sep 2016, at 10:00 PM, Mark Wardle  wrote:
> 
>> I am getting the following error:
>> 
>>  No template found 
>> for component 
>> 
>> for components held within subdirectories of src/main/components/  There 
>> isn’t a problem for .wo directories stored directly in src/main/components.
>> 
>> Is there any way of supporting such an organisation?
> 
> Did you find a work-around for this?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 

 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-10-09 Thread Paul Hoadley
Hi Mark,

On 6 Sep 2016, at 10:00 PM, Mark Wardle  wrote:

> I am getting the following error:
> 
>  No template found 
> for component 
> 
> for components held within subdirectories of src/main/components/  There 
> isn’t a problem for .wo directories stored directly in src/main/components.
> 
> Is there any way of supporting such an organisation?

Did you find a work-around for this?


-- 
Paul Hoadley
http://logicsquad.net/




 ___
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

Re: Maven: repository manager for caching the WebObjects plugin repo

2016-09-25 Thread Paul Hoadley
Just for the record:

On 25 Sep 2016, at 8:08 PM, Paul Hoadley  wrote:

> I’m not seeing an option for creating a _plugin_ remote repository on 
> Artifactory—is that even a thing, or will all of this Just Work?

It won’t quite Just Work. The missing step was to add wocommunity.releases and 
wocommunity.snapshots to the remote-repos virtual repository in Artifactory. 
Then they’re visible under plugins-release and plugins-snapshot. Anyway, all of 
this would seem to be quite Artifactory-specific—sorry for the noise.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-08 Thread Mark Wardle
Thank you! 

I really think eclipse got muddled. When I started clearing everything and 
switching back to using ant, eclipse’s filesystem cache thought that there were 
files around that weren’t and hence I deleted all workspaces, eclipse itself 
and started again with a freshly cleared source code tree. I’m tempted to try 
another migration at the weekend - probably aided by beer - which in my 
experience usually helps considerably…

Mark

> On 8 Sep 2016, at 21:06, Hugi Thordarson  wrote:
> 
> I feel your pain, the migration was a chore at first. I’ve ported ~30 
> projects and they all made it in the end. Don’t hesitate to ask if you’d like 
> more hands on assistance—I love helping people migrate to Maven :).
> 
> - hugi
> 
> 
> 
>> On 8. sep. 2016, at 19:55, Mark Wardle  wrote:
>> 
>> Thank you! I did try this and it just wouldn't work with different errors 
>> running from eclipse (as above) and at command-line (odd JDBC no connection 
>> errors as if no connection dictionary was present). I have temporarily given 
>> up and will try again for a new project. I have also upgraded to eclipse 
>> neon and wolips which seems to have less odd errors with opening eomodel 
>> files than before. 
>> 
>> Mark
>> On Tue, 6 Sep 2016 at 14:26, Hugi Thordarson  wrote:
>> Compare your .project and build.properties with those of a new Maven 
>> project. Specifically make sure build.properties has:
>> 
>> classes.dir=target/classes
>> 
>> …and then make sure your .project file contains the maven builder. In fact, 
>> your .project should probably look exactly like this, apart from the project 
>> name:
>> 
>> https://gist.github.com/hugith/6612765b2449b4ab98ec64ea54fd433c
>> 
>> - hugi
>> 
>> 
>> 
>> 
>>> On 6. sep. 2016, at 13:19, Mark Wardle  wrote:
>>> 
>>> Definitely!
>>> 
>>> As a potential solution, I am going to create a new empty application and 
>>> copy across the code and components and other resources and see what 
>>> happens.
>>> 
>>> Mark
>>> 
>>> 
 On 6 Sep 2016, at 14:08, Hugi Thordarson  wrote:
 
 This was exactly what happened when the old  was missing.You’re 
 sure it’s in place?
 
 - hugi
 
 
 
> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
> 
> I can now build my application on the command-line using maven and it is 
> packaged beautifully!
> 
> It isn’t quite right from eclipse. I can run a newly created application 
> from within eclipse, but when I try to run a migrated application, I get 
> this error:
> 
>  java.lang.ExceptionInInitializerError
>at 
> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>at 
> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>at 
> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>at 
> com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>at 
> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>at 
> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>at com.eldrix.news.app.Application.(Application.java:66)
>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>at java.lang.Class.newInstance(Class.java:438)
>at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>at com.eldrix.news.app.Application.main(Application.java:63)
> Caused by: java.lang.NullPointerException
>at 
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>at 
> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>at java.lang.reflect.Method.invoke(Method.java:483)
>at 
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>at 
> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>at 
> 

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-08 Thread Hugi Thordarson
I feel your pain, the migration was a chore at first. I’ve ported ~30 projects 
and they all made it in the end. Don’t hesitate to ask if you’d like more hands 
on assistance—I love helping people migrate to Maven :).

- hugi



> On 8. sep. 2016, at 19:55, Mark Wardle  wrote:
> 
> Thank you! I did try this and it just wouldn't work with different errors 
> running from eclipse (as above) and at command-line (odd JDBC no connection 
> errors as if no connection dictionary was present). I have temporarily given 
> up and will try again for a new project. I have also upgraded to eclipse neon 
> and wolips which seems to have less odd errors with opening eomodel files 
> than before. 
> 
> Mark
> On Tue, 6 Sep 2016 at 14:26, Hugi Thordarson  wrote:
> Compare your .project and build.properties with those of a new Maven project. 
> Specifically make sure build.properties has:
> 
> classes.dir=target/classes
> 
> …and then make sure your .project file contains the maven builder. In fact, 
> your .project should probably look exactly like this, apart from the project 
> name:
> 
> https://gist.github.com/hugith/6612765b2449b4ab98ec64ea54fd433c
> 
> - hugi
> 
> 
> 
> 
> > On 6. sep. 2016, at 13:19, Mark Wardle  wrote:
> >
> > Definitely!
> >
> > As a potential solution, I am going to create a new empty application and 
> > copy across the code and components and other resources and see what 
> > happens.
> >
> > Mark
> >
> >
> >> On 6 Sep 2016, at 14:08, Hugi Thordarson  wrote:
> >>
> >> This was exactly what happened when the old  was missing.You’re 
> >> sure it’s in place?
> >>
> >> - hugi
> >>
> >>
> >>
> >>> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
> >>>
> >>> I can now build my application on the command-line using maven and it is 
> >>> packaged beautifully!
> >>>
> >>> It isn’t quite right from eclipse. I can run a newly created application 
> >>> from within eclipse, but when I try to run a migrated application, I get 
> >>> this error:
> >>>
> >>>  java.lang.ExceptionInInitializerError
> >>> at 
> >>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
> >>> at 
> >>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
> >>> at 
> >>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
> >>> at 
> >>> com.webobjects.appserver.WOApplication.(WOApplication.java:779)
> >>> at 
> >>> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
> >>> at 
> >>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
> >>> at com.eldrix.news.app.Application.(Application.java:66)
> >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> >>> Method)
> >>> at 
> >>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> >>> at 
> >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>> at java.lang.Class.newInstance(Class.java:438)
> >>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
> >>> at 
> >>> er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
> >>> at com.eldrix.news.app.Application.main(Application.java:63)
> >>> Caused by: java.lang.NullPointerException
> >>> at 
> >>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
> >>> at 
> >>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
> >>> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> >>> at 
> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>> at 
> >>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
> >>> at 
> >>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
> >>> at 
> >>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
> >>> at 
> >>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
> >>> at 
> >>> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
> >>> at 
> >>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
> >>> at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
> >>> ... 15 more
> >>>
> >>> java.lang.NullPointerException
> >>> at 
> >>> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> >>>
> >>> I have ensured that I have the correct .project file. It looks as if 
> >>> NSProperties._mainBundleName(); is returning null.
> >>>
> >>> This 

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-08 Thread Mark Wardle
Thank you! I did try this and it just wouldn't work with different errors
running from eclipse (as above) and at command-line (odd JDBC no connection
errors as if no connection dictionary was present). I have temporarily
given up and will try again for a new project. I have also upgraded to
eclipse neon and wolips which seems to have less odd errors with opening
eomodel files than before.

Mark
On Tue, 6 Sep 2016 at 14:26, Hugi Thordarson  wrote:

> Compare your .project and build.properties with those of a new Maven
> project. Specifically make sure build.properties has:
>
> classes.dir=target/classes
>
> …and then make sure your .project file contains the maven builder. In
> fact, your .project should probably look exactly like this, apart from the
> project name:
>
> https://gist.github.com/hugith/6612765b2449b4ab98ec64ea54fd433c
>
> - hugi
>
>
>
>
> > On 6. sep. 2016, at 13:19, Mark Wardle  wrote:
> >
> > Definitely!
> >
> > As a potential solution, I am going to create a new empty application
> and copy across the code and components and other resources and see what
> happens.
> >
> > Mark
> >
> >
> >> On 6 Sep 2016, at 14:08, Hugi Thordarson  wrote:
> >>
> >> This was exactly what happened when the old  was missing.You’re
> sure it’s in place?
> >>
> >> - hugi
> >>
> >>
> >>
> >>> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
> >>>
> >>> I can now build my application on the command-line using maven and it
> is packaged beautifully!
> >>>
> >>> It isn’t quite right from eclipse. I can run a newly created
> application from within eclipse, but when I try to run a migrated
> application, I get this error:
> >>>
> >>>  java.lang.ExceptionInInitializerError
> >>> at
> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
> >>> at
> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
> >>> at
> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
> >>> at
> com.webobjects.appserver.WOApplication.(WOApplication.java:779)
> >>> at
> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
> >>> at
> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
> >>> at com.eldrix.news.app.Application.(Application.java:66)
> >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> >>> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> >>> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>> at java.lang.Class.newInstance(Class.java:438)
> >>> at
> com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
> >>> at
> er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
> >>> at com.eldrix.news.app.Application.main(Application.java:63)
> >>> Caused by: java.lang.NullPointerException
> >>> at
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
> >>> at
> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
> >>> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> >>> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>> at
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
> >>> at
> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
> >>> at
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
> >>> at
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
> >>> at
> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
> >>> at
> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
> >>> at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
> >>> ... 15 more
> >>>
> >>> java.lang.NullPointerException
> >>> at
> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> >>>
> >>> I have ensured that I have the correct .project file. It looks as if
> NSProperties._mainBundleName(); is returning null.
> >>>
> >>> This doesn’t occur when building and running from the command-line. I
> have tried a clean, refresh and maven refresh with no fix.
> >>>
> >>> Mark
> >>>
> >>> ___
> >>> 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:
> >>>
> 

Re: Maven with subdirectories within the src/main/components/ path

2016-09-06 Thread Henrique Prange
Hi Hugi,

The code is there. How it’s organized is kinda of weird, though. I’ve created a 
new branch called maven-plugins-current [1]. It points to the last commit 
related to the Maven plugins. You can start from that point if you want. Or 
even better, you could start from a branch on my own fork [2] that already 
includes some fixes.

Anyway, if you want to make changes to the Maven plugins, I would highly 
recommend to extract the code into their own projects. I’ve started this task 
as you can see [3], but I didn’t find the time to finish it. Maybe I can take 
another look since the community interest on that matter has been growing 
lately.

[1]https://github.com/wocommunity/wolips/tree/maven-plugins-current/maven2 

[2]https://github.com/hprange/wolips/tree/maven-archetypes-fix 

[3]https://github.com/hprange/webobjects-maven-plugin 


Cheers,

Henrique

> On 6 de set de 2016, at 10:07, Hugi Thordarson  wrote:
> 
> Doesn’t look like it’s supported in the current Maven plugin. We should fix 
> that—does anyone know where the current code for maven-wolifecycle-plugin 
> resides? All I can find online is the plugin code in the WOLips GitHub 
> repository, but that’s 6 years old code (and labeled version 2.1 when the 
> current version is 2.3-SNAPSHOT).
> 
> Cheers,
> - hugi
> 
> 
> 
>> On 6. sep. 2016, at 12:30, Mark Wardle > > wrote:
>> 
>> Dear all,
>> 
>> I am slowly making progress in my switch to maven. I still think it is worth 
>> it.
>> 
>> I am getting the following error:
>> 
>>  No template found 
>> for component 
>> 
>> for components held within subdirectories of src/main/components/  There 
>> isn’t a problem for .wo directories stored directly in src/main/components.
>> 
>> Is there any way of supporting such an organisation?
>> 
>> Mark
>> 
>> 
>> ___
>> 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/hugi%40karlmenn.is 
>> 
>> 
>> This email sent to h...@karlmenn.is 
> 
> 
> ___
> 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/hprange%40gmail.com 
> 
> 
> This email sent to hpra...@gmail.com 
 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-06 Thread Hugi Thordarson
Compare your .project and build.properties with those of a new Maven project. 
Specifically make sure build.properties has:

classes.dir=target/classes

…and then make sure your .project file contains the maven builder. In fact, 
your .project should probably look exactly like this, apart from the project 
name:

https://gist.github.com/hugith/6612765b2449b4ab98ec64ea54fd433c

- hugi




> On 6. sep. 2016, at 13:19, Mark Wardle  wrote:
> 
> Definitely! 
> 
> As a potential solution, I am going to create a new empty application and 
> copy across the code and components and other resources and see what happens.
> 
> Mark
> 
> 
>> On 6 Sep 2016, at 14:08, Hugi Thordarson  wrote:
>> 
>> This was exactly what happened when the old  was missing.You’re sure 
>> it’s in place?
>> 
>> - hugi
>> 
>> 
>> 
>>> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
>>> 
>>> I can now build my application on the command-line using maven and it is 
>>> packaged beautifully! 
>>> 
>>> It isn’t quite right from eclipse. I can run a newly created application 
>>> from within eclipse, but when I try to run a migrated application, I get 
>>> this error:
>>> 
>>>  java.lang.ExceptionInInitializerError
>>> at 
>>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>>> at 
>>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>>> at 
>>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>>> at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>>> at 
>>> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>>> at 
>>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>>> at com.eldrix.news.app.Application.(Application.java:66)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at 
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>> at java.lang.Class.newInstance(Class.java:438)
>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>>> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>>> at com.eldrix.news.app.Application.main(Application.java:63)
>>> Caused by: java.lang.NullPointerException
>>> at 
>>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>>> at 
>>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>>> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at 
>>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>> at 
>>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>> at 
>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>> at 
>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>>> at 
>>> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>>> at 
>>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>>> at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>>> ... 15 more
>>> 
>>> java.lang.NullPointerException
>>> at 
>>> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
>>> 
>>> I have ensured that I have the correct .project file. It looks as if 
>>> NSProperties._mainBundleName(); is returning null.
>>> 
>>> This doesn’t occur when building and running from the command-line. I have 
>>> tried a clean, refresh and maven refresh with no fix.
>>> 
>>> Mark
>>> 
>>> ___
>>> 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/hugi%40karlmenn.is
>>> 
>>> This email sent to h...@karlmenn.is
>> 
> 


 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-06 Thread Mark Wardle
Definitely! 

As a potential solution, I am going to create a new empty application and copy 
across the code and components and other resources and see what happens.

Mark


> On 6 Sep 2016, at 14:08, Hugi Thordarson  wrote:
> 
> This was exactly what happened when the old  was missing.You’re sure 
> it’s in place?
> 
> - hugi
> 
> 
> 
>> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
>> 
>> I can now build my application on the command-line using maven and it is 
>> packaged beautifully! 
>> 
>> It isn’t quite right from eclipse. I can run a newly created application 
>> from within eclipse, but when I try to run a migrated application, I get 
>> this error:
>> 
>>  java.lang.ExceptionInInitializerError
>>  at 
>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>>  at 
>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>>  at 
>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>>  at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>>  at 
>> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>>  at 
>> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>>  at com.eldrix.news.app.Application.(Application.java:66)
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  at java.lang.Class.newInstance(Class.java:438)
>>  at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>>  at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>>  at com.eldrix.news.app.Application.main(Application.java:63)
>> Caused by: java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>>  at 
>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>>  at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:483)
>>  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>  at 
>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>>  at 
>> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>>  at 
>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>>  at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>>  ... 15 more
>> 
>> java.lang.NullPointerException
>>  at 
>> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
>> 
>> I have ensured that I have the correct .project file. It looks as if 
>> NSProperties._mainBundleName(); is returning null.
>> 
>> This doesn’t occur when building and running from the command-line. I have 
>> tried a clean, refresh and maven refresh with no fix.
>> 
>> Mark
>> 
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 


 ___
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

Re: Maven and eclipse #2 - problem with missing bundle? null mainBundleName()

2016-09-06 Thread Hugi Thordarson
This was exactly what happened when the old  was missing.You’re sure 
it’s in place?

- hugi



> On 6. sep. 2016, at 12:34, Mark Wardle  wrote:
> 
> I can now build my application on the command-line using maven and it is 
> packaged beautifully! 
> 
> It isn’t quite right from eclipse. I can run a newly created application from 
> within eclipse, but when I try to run a migrated application, I get this 
> error:
> 
>  java.lang.ExceptionInInitializerError
>   at 
> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
>   at 
> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
>   at 
> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
>   at com.webobjects.appserver.WOApplication.(WOApplication.java:779)
>   at 
> er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.java:30)
>   at 
> er.extensions.appserver.ERXApplication.(ERXApplication.java:1135)
>   at com.eldrix.news.app.Application.(Application.java:66)
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>   at java.lang.Class.newInstance(Class.java:438)
>   at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
>   at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
>   at com.eldrix.news.app.Application.main(Application.java:63)
> Caused by: java.lang.NullPointerException
>   at 
> er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplication.java:757)
>   at 
> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:682)
>   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:483)
>   at 
> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>   at 
> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>   at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>   at 
> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
>   at 
> com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
>   at 
> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:735)
>   at com.webobjects.foundation.NSBundle.(NSBundle.java:345)
>   ... 15 more
> 
> java.lang.NullPointerException
>   at 
> er.extensions.appserver.ERXShutdownHook$1.run(ERXShutdownHook.java:64)
> 
> I have ensured that I have the correct .project file. It looks as if 
> NSProperties._mainBundleName(); is returning null.
> 
> This doesn’t occur when building and running from the command-line. I have 
> tried a clean, refresh and maven refresh with no fix.
> 
> Mark
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven with subdirectories within the src/main/components/ path

2016-09-06 Thread Hugi Thordarson
Doesn’t look like it’s supported in the current Maven plugin. We should fix 
that—does anyone know where the current code for maven-wolifecycle-plugin 
resides? All I can find online is the plugin code in the WOLips GitHub 
repository, but that’s 6 years old code (and labeled version 2.1 when the 
current version is 2.3-SNAPSHOT).

Cheers,
- hugi



> On 6. sep. 2016, at 12:30, Mark Wardle  wrote:
> 
> Dear all,
> 
> I am slowly making progress in my switch to maven. I still think it is worth 
> it.
> 
> I am getting the following error:
> 
>  No template found 
> for component 
> 
> for components held within subdirectories of src/main/components/  There 
> isn’t a problem for .wo directories stored directly in src/main/components.
> 
> Is there any way of supporting such an organisation?
> 
> Mark
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven - No template found for component Main

2016-09-05 Thread Gino Pacitti
+1
> On 4 Sep 2016, at 23:21, Theodore Petrosky  wrote:
> 
> JMHO but I think we should keep the money in the association, and we should 
> promote the Kickstarter project.
> 
> Put out an email every week to get everyone’s attention to sign up and put in 
> some money. I’m ready!
> 
> 
> 
> 
>> On Sep 4, 2016, at 10:30 PM, Pascal Robert  wrote:
>> 
>> 
>>> Le 4 sept. 2016 à 19:44, Paul Hoadley  a écrit :
>>> 
>>> On 5 Sep 2016, at 7:46 AM, Hugi Thordarson  wrote:
>>> 
 This is probably the third or fourth time this is mentioned. We need to 
 fix this.
 
 But anyway; WO with Maven seriously rocks, once you get going :).
>>> 
>>> I would seriously donate to a Kickstarter project for you to write the 
>>> definitive guide for transitioning to Maven. Just saying’.
>> 
>> If someone could do it for less than 1000$, the Association can pay for it.
>> 
>>> 
>>> -- 
>>> Paul Hoadley
>>> http://logicsquad.net/
>>> 
>>> 
>>> 
>>> ___
>>> 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/probert%40macti.ca
>>> 
>>> This email sent to prob...@macti.ca
>> 
>> 
>> ___
>> 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/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 
> 
> ___
> 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/ginokris%40mac.com
> 
> This email sent to ginok...@mac.com


 ___
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

Re: Maven - No template found for component Main

2016-09-05 Thread Mark Wardle
Hugi,

Thank you. It works!

Mark
> On 4 Sep 2016, at 23:16, Hugi Thordarson  wrote:
> 
> You probably need to open the Eclipse .project-file in your project and add:
> 
> org.maven.ide.eclipse.maven2Nature
> 
> …as a project nature (inside the “natures"-tag).
> 
> WebObjects uses this identifier to determine if the project is a Maven 
> project, if it isn’t present it will think the bundle is FluffyBunny and 
> looks for resources in wrong places.
> 
> The nature identifier was changed in Eclipse a while back (to 
> “org.eclipse.m2e.core.maven2Nature”, which you’ll see listed in your natures) 
> but unfortunately the old name is defined in ERFoundarion.jar, a top secret, 
> closed source jar donated to Wonder by Apple, so fixing this isn’t 
> straightforward.
> 
> ——
> 
> This is probably the third or fourth time this is mentioned. We need to fix 
> this.
> 
> But anyway; WO with Maven seriously rocks, once you get going :).
> 
> - hugi
> 
> 
>> On 4. sep. 2016, at 21:26, Mark Wardle  wrote:
>> 
>> Dear all,
>> 
>> I have successfully used maven with a non-WO application so I was keen to 
>> switch and make it easy for me to use some jar-based libraries of my own 
>> within WO.
>> 
>> I have created an empty maven project using two different archetypes [from 
>> http://maven.wocommunity.org/service/local/repositories/snapshots/content/archetype-catalog.xml]
>>   using the 2.2-SNAPSHOT version of woapplication-archetype as well as 
>> erxapplication-archetype. Both build beautifully from the command-line and 
>> run with no problems in direct connect mode it seems.
>> 
>> However, running from within eclipse in direct connect mode results in an 
>> error  No template 
>> found for component Main at "file:/Users/mark/Dev/rsdb/projects/rstest-pw/“  
>> from the erxapplication-archetype application. There are no such problems 
>> from woapplication-archetype.
>> 
>> I added 
>> 
>>  if (isDirectConnectEnabled()) {
>>registerRequestHandler(new JarResourceRequestHandler(), 
>> "wr");
>>  }
>> 
>> to my Application class, with JarResourceRequestHandler code from 
>> https://gist.github.com/hprange/1068523 but this did not fix the problem.
>> 
>> If I add Project Wonder dependencies to the plain WO app, it runs but I get 
>> the error above until I remove them. 
>> 
>> If there is no problem at the command-line but only with eclipse, and only 
>> when using Project Wonder, there must be some misconfiguration on my part 
>> within eclipse? Should I upgrade to 3.6? eclipse.org has been down all day 
>> but otherwise I would have updated.
>> 
>> Any suggestions would be gratefully received!
>> 
>> Mark
>> 
>> -- 
>> Dr. Mark Wardle
>> Consultant Neurologist, University Hospital Wales, Cardiff, UK
>> Email: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
>> Telephone: 02920745274 (secretary) or facsimile: 02920744166
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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/hugi%40karlmenn.is
>> 
>> This email sent to h...@karlmenn.is
> 


 ___
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

Re: Maven - No template found for component Main

2016-09-05 Thread Hugi Thordarson
Oh come on, Theodore—you just cost me a thousand bucks! :)

But seriously, I agree the community should hold on to its funds for the 
conferences. I’m not sure Maven by itself is a large enough subject to warrant 
a Kickstarter, but I’ve been wanting to do a more complete “Modern WebObjects” 
project for a while, documenting how to do Maven, Cayenne, testing etc. that 
might be a fit (in the future, that might include AribaWeb, if that turns out 
to be The Way).

- hugi



> On 5. sep. 2016, at 03:21, Theodore Petrosky  wrote:
> 
> JMHO but I think we should keep the money in the association, and we should 
> promote the Kickstarter project.
> 
> Put out an email every week to get everyone’s attention to sign up and put in 
> some money. I’m ready!
> 
> 
> 
> 
>> On Sep 4, 2016, at 10:30 PM, Pascal Robert  wrote:
>> 
>> 
>>> Le 4 sept. 2016 à 19:44, Paul Hoadley  a écrit :
>>> 
>>> On 5 Sep 2016, at 7:46 AM, Hugi Thordarson  wrote:
>>> 
 This is probably the third or fourth time this is mentioned. We need to 
 fix this.
 
 But anyway; WO with Maven seriously rocks, once you get going :).
>>> 
>>> I would seriously donate to a Kickstarter project for you to write the 
>>> definitive guide for transitioning to Maven. Just saying’.
>> 
>> If someone could do it for less than 1000$, the Association can pay for it.
>> 
>>> 
>>> -- 
>>> Paul Hoadley
>>> http://logicsquad.net/
>>> 
>>> 
>>> 
>>> ___
>>> 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/probert%40macti.ca
>>> 
>>> This email sent to prob...@macti.ca
>> 
>> 
>> ___
>> 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/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven - No template found for component Main

2016-09-04 Thread Theodore Petrosky
JMHO but I think we should keep the money in the association, and we should 
promote the Kickstarter project.

Put out an email every week to get everyone’s attention to sign up and put in 
some money. I’m ready!




> On Sep 4, 2016, at 10:30 PM, Pascal Robert  wrote:
> 
> 
>> Le 4 sept. 2016 à 19:44, Paul Hoadley  a écrit :
>> 
>> On 5 Sep 2016, at 7:46 AM, Hugi Thordarson  wrote:
>> 
>>> This is probably the third or fourth time this is mentioned. We need to fix 
>>> this.
>>> 
>>> But anyway; WO with Maven seriously rocks, once you get going :).
>> 
>> I would seriously donate to a Kickstarter project for you to write the 
>> definitive guide for transitioning to Maven. Just saying’.
> 
> If someone could do it for less than 1000$, the Association can pay for it.
> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/
>> 
>> 
>> 
>> ___
>> 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/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 
> 
> ___
> 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/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com


 ___
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

Re: Maven - No template found for component Main

2016-09-04 Thread Pascal Robert

> Le 4 sept. 2016 à 19:44, Paul Hoadley  a écrit :
> 
> On 5 Sep 2016, at 7:46 AM, Hugi Thordarson  wrote:
> 
>> This is probably the third or fourth time this is mentioned. We need to fix 
>> this.
>> 
>> But anyway; WO with Maven seriously rocks, once you get going :).
> 
> I would seriously donate to a Kickstarter project for you to write the 
> definitive guide for transitioning to Maven. Just saying’.

If someone could do it for less than 1000$, the Association can pay for it.

> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 
> ___
> 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/probert%40macti.ca
> 
> This email sent to prob...@macti.ca


 ___
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

Re: Maven - No template found for component Main

2016-09-04 Thread Paul Hoadley
On 5 Sep 2016, at 7:46 AM, Hugi Thordarson  wrote:

> This is probably the third or fourth time this is mentioned. We need to fix 
> this.
> 
> But anyway; WO with Maven seriously rocks, once you get going :).

I would seriously donate to a Kickstarter project for you to write the 
definitive guide for transitioning to Maven. Just sayin’.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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

Re: Maven - No template found for component Main

2016-09-04 Thread Hugi Thordarson
You probably need to open the Eclipse .project-file in your project and add:

org.maven.ide.eclipse.maven2Nature

…as a project nature (inside the “natures"-tag).

WebObjects uses this identifier to determine if the project is a Maven project, 
if it isn’t present it will think the bundle is FluffyBunny and looks for 
resources in wrong places.

The nature identifier was changed in Eclipse a while back (to 
“org.eclipse.m2e.core.maven2Nature”, which you’ll see listed in your natures) 
but unfortunately the old name is defined in ERFoundarion.jar, a top secret, 
closed source jar donated to Wonder by Apple, so fixing this isn’t 
straightforward.

——

This is probably the third or fourth time this is mentioned. We need to fix 
this.

But anyway; WO with Maven seriously rocks, once you get going :).

- hugi


> On 4. sep. 2016, at 21:26, Mark Wardle  wrote:
> 
> Dear all,
> 
> I have successfully used maven with a non-WO application so I was keen to 
> switch and make it easy for me to use some jar-based libraries of my own 
> within WO.
> 
> I have created an empty maven project using two different archetypes [from 
> http://maven.wocommunity.org/service/local/repositories/snapshots/content/archetype-catalog.xml]
>   using the 2.2-SNAPSHOT version of woapplication-archetype as well as 
> erxapplication-archetype. Both build beautifully from the command-line and 
> run with no problems in direct connect mode it seems.
> 
> However, running from within eclipse in direct connect mode results in an 
> error  No template 
> found for component Main at "file:/Users/mark/Dev/rsdb/projects/rstest-pw/“  
> from the erxapplication-archetype application. There are no such problems 
> from woapplication-archetype.
> 
> I added 
> 
>   if (isDirectConnectEnabled()) {
> registerRequestHandler(new JarResourceRequestHandler(), 
> "wr");
>   }
> 
> to my Application class, with JarResourceRequestHandler code from 
> https://gist.github.com/hprange/1068523 but this did not fix the problem.
> 
> If I add Project Wonder dependencies to the plain WO app, it runs but I get 
> the error above until I remove them. 
> 
> If there is no problem at the command-line but only with eclipse, and only 
> when using Project Wonder, there must be some misconfiguration on my part 
> within eclipse? Should I upgrade to 3.6? eclipse.org has been down all day 
> but otherwise I would have updated.
> 
> Any suggestions would be gratefully received!
> 
> Mark
> 
> -- 
> Dr. Mark Wardle
> Consultant Neurologist, University Hospital Wales, Cardiff, UK
> Email: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
> Telephone: 02920745274 (secretary) or facsimile: 02920744166
> 
> 
> 
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven, two apps with direct connect SSL, one works

2016-07-05 Thread Henrique Prange
Hi Ramsey,

AFAICT, Wonder doesn’t support loading Properties.* files from inside JAR 
frameworks properly. I guess that is why the property hasn’t been loaded as 
expected. Anyway, it’s been a long time since I last looked into that issue, 
and I may be wrong. I’ve quit trying to use Properties.* files long ago. I’ve 
been using Maven profiles[1] for the same purpose instead.

[1]http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Cheers,

Henrique

> On 29 de jun de 2016, at 18:01, Ramsey Gurley  wrote:
> 
> Some additional followup on this. I just discovered the difference that makes 
> App1 work. ERR2D2W is still on the build path. I forgot to remove that 
> framework when mavenizing App1. App2 had all woframework references removed 
> from .classpath, and it does not work. If I remove ERR2D2W from .classpath on 
> App1, it also returns sslEnabled() false. 
> 
> And the most magical part is it seems just ERR2D2W that can do this. I tried 
> ERXExtensions, ERCoreBL, and an internal framework to no effect.  Which is a 
> bit of a pain, because App2 uses ERDirectToWeb components and adding ERR2D2W 
> to it breaks a few pages. But ssl starts working when I do...
> 
> 
> On Apr 6, 2016, at 5:59 PM, Ramsey Gurley  wrote:
> 
>> Hi all, 
>> 
>> Weird problem. I have two apps. App1 works with SSL direct connect, in 
>> eclipse with maven and without. App2 works with SSL direct connect without 
>> maven. With maven, the SSL direct connect properties I have in 
>> Properties.dev are not located. 
>> 
>> The reason that happens is in ERXApplication _addAdditionalAdaptors, 
>> sslEnabled() is returning false. Properties.dev is the same for both, so I 
>> start digging. Why is it false for App2? It turns out the properties are not 
>> loaded, because in ERXApplication.Loader.mainBundle(), 
>> ClassPath.get(NSBundle.class) turns out to be null and InitMainBundle isn’t 
>> fired.
>> 
>> Well, why is that? Because in NSBundle, at line 315 in a static initializer 
>> block, a call to LoadBundlesFromJars ends up calling NSBundle.addBundle. 
>> This fires a NSBundleDidLoadNotification which triggers the above behavior 
>> before ClassPath is loaded at line 339 in that same static initializer block.
>> 
>> In App1, *there is no observer* for this notification at L315. It makes it 
>> all the way to NSBundle L341 where LoadBundlesFromClassPath is fired, which 
>> then ends up firing the notification to a now existent observer.
>> 
>> What’s really weird is at the last line of ERXApplication.Loader(String[]) 
>> constructor, there’s a addObserver for the NSBundleDidLoadNotification. 
>> Setting breakpoints, I can see that is done before NSBundle is referenced in 
>> both App1 and App2. I see no place where removeObserver is ever called on 
>> the application, so I’m totally puzzled.
>> 
>> Does any of this sound familiar to anyone?
>> 
>> In the non maven branch, I’m just starting to look, but the line numbers are 
>> not lining up. It looks like the old build is finding NSBundle in 
>> JavaFoundation while the Maven build finds it in ERFoundation.
>> 
>> Thanks,
>> 
>> Ramsey
> 
> 
> ___
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.com

 ___
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

Re: Maven, two apps with direct connect SSL, one works

2016-06-29 Thread Ramsey Gurley
Some additional followup on this. I just discovered the difference that makes 
App1 work. ERR2D2W is still on the build path. I forgot to remove that 
framework when mavenizing App1. App2 had all woframework references removed 
from .classpath, and it does not work. If I remove ERR2D2W from .classpath on 
App1, it also returns sslEnabled() false. 

And the most magical part is it seems just ERR2D2W that can do this. I tried 
ERXExtensions, ERCoreBL, and an internal framework to no effect.  Which is a 
bit of a pain, because App2 uses ERDirectToWeb components and adding ERR2D2W to 
it breaks a few pages. But ssl starts working when I do...


On Apr 6, 2016, at 5:59 PM, Ramsey Gurley  wrote:

> Hi all, 
> 
> Weird problem. I have two apps. App1 works with SSL direct connect, in 
> eclipse with maven and without. App2 works with SSL direct connect without 
> maven. With maven, the SSL direct connect properties I have in Properties.dev 
> are not located. 
> 
> The reason that happens is in ERXApplication _addAdditionalAdaptors, 
> sslEnabled() is returning false. Properties.dev is the same for both, so I 
> start digging. Why is it false for App2? It turns out the properties are not 
> loaded, because in ERXApplication.Loader.mainBundle(), 
> ClassPath.get(NSBundle.class) turns out to be null and InitMainBundle isn’t 
> fired.
> 
> Well, why is that? Because in NSBundle, at line 315 in a static initializer 
> block, a call to LoadBundlesFromJars ends up calling NSBundle.addBundle. This 
> fires a NSBundleDidLoadNotification which triggers the above behavior before 
> ClassPath is loaded at line 339 in that same static initializer block.
> 
> In App1, *there is no observer* for this notification at L315. It makes it 
> all the way to NSBundle L341 where LoadBundlesFromClassPath is fired, which 
> then ends up firing the notification to a now existent observer.
> 
> What’s really weird is at the last line of ERXApplication.Loader(String[]) 
> constructor, there’s a addObserver for the NSBundleDidLoadNotification. 
> Setting breakpoints, I can see that is done before NSBundle is referenced in 
> both App1 and App2. I see no place where removeObserver is ever called on the 
> application, so I’m totally puzzled.
> 
> Does any of this sound familiar to anyone?
> 
> In the non maven branch, I’m just starting to look, but the line numbers are 
> not lining up. It looks like the old build is finding NSBundle in 
> JavaFoundation while the Maven build finds it in ERFoundation.
> 
> Thanks,
> 
> Ramsey


 ___
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

Re: Maven classpath ordering

2016-04-07 Thread T Worman
On another topic, I went with Mustache of StringTemplate specifically because 
of the KVC/getter issue. I shoulda probably dug deeper to override its behavior 
but I got lazy. :-) I’d love to see what you did there. Anyway, here was my 
original thread:

http://prod.lists.apple.com/archives/webobjects-dev/2015/Oct/msg00049.html

Please excuse the hijacking of a maven topic.

Tim

> On Mar 28, 2016, at 3:44 PM, Lachlan Deck  wrote:
> 
> You’ll want to use maven’s dependency management section. If you don’t supply 
> one you’re inheriting it from somewhere. It provides for better control of 
> the ordering and so forth of the dependencies you want.
> 
> The idea is that in your parent pom, you use a dependency management section. 
> Then in your child poms (same deal if you only have one pom), their 
> dependencies reference what’s in your dependency management section and 
> inherit their ordering, versioning, scopes, etc.
> 
> 
>  
>
>  foo
>  bar
>  1.0
>  ...
>
>  
> 
> 
> 
>  
>foo
>bar
>  
> 
> 
>> On 25 Mar 2016, at 11:53 AM, Ramsey Gurley  wrote:
>> 
>> Hi all,
>> 
>> I have a small problem with classpath ordering in Maven and I’m hoping 
>> someone can explain how it works. 
>> 
>> In the log of my app, I see the java.class.path.  It starts with lots of 
>> dependent jars and mostly ends with In house frameworks, Wonder then 
>> WebObjects frameworks. Unfortunately, one of the jars (StringTemplate) 
>> contains a class (ASTExpr) I need to override in order to make it happy with 
>> KeyValueCoding style getter naming. It’s a simple fix, and everything works 
>> properly in Eclipse as well as with our old Ant builds. But if I include 
>> this ASTExpr in my framework, the original shows up first in the classpath 
>> for the maven build, and thus, the class I intended to use as an override is 
>> overridden.
>> 
>> I relocated my StringTemplate dependency to the bottom of my pom file, but 
>> that made no difference in classpath ordering. Is there any secret way to 
>> force that jar down the list, or perhaps remove the original ASTExpr class 
>> from it?
>> 
>> Thanks,
>> 
>> Ramsey
>> ___
>> 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/lachlan.deck%40gmail.com
>> 
>> This email sent to lachlan.d...@gmail.com
> 
> 
> ___
> 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/lists%40thetimmy.com
> 
> This email sent to li...@thetimmy.com


 ___
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

Re: Maven classpath ordering

2016-03-28 Thread Lachlan Deck
You’ll want to use maven’s dependency management section. If you don’t supply 
one you’re inheriting it from somewhere. It provides for better control of the 
ordering and so forth of the dependencies you want.

The idea is that in your parent pom, you use a dependency management section. 
Then in your child poms (same deal if you only have one pom), their 
dependencies reference what’s in your dependency management section and inherit 
their ordering, versioning, scopes, etc.


  

  foo
  bar
  1.0
  ...

  



  
foo
bar
  


> On 25 Mar 2016, at 11:53 AM, Ramsey Gurley  wrote:
> 
> Hi all,
> 
> I have a small problem with classpath ordering in Maven and I’m hoping 
> someone can explain how it works. 
> 
> In the log of my app, I see the java.class.path.  It starts with lots of 
> dependent jars and mostly ends with In house frameworks, Wonder then 
> WebObjects frameworks. Unfortunately, one of the jars (StringTemplate) 
> contains a class (ASTExpr) I need to override in order to make it happy with 
> KeyValueCoding style getter naming. It’s a simple fix, and everything works 
> properly in Eclipse as well as with our old Ant builds. But if I include this 
> ASTExpr in my framework, the original shows up first in the classpath for the 
> maven build, and thus, the class I intended to use as an override is 
> overridden.
> 
> I relocated my StringTemplate dependency to the bottom of my pom file, but 
> that made no difference in classpath ordering. Is there any secret way to 
> force that jar down the list, or perhaps remove the original ASTExpr class 
> from it?
> 
> Thanks,
> 
> Ramsey
> ___
> 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/lachlan.deck%40gmail.com
> 
> This email sent to lachlan.d...@gmail.com


 ___
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

Re: Maven not copying java resources into jar file

2016-03-25 Thread Hugi Thordarson
>> The relevant section is the woman-lifecycle-plugin.
>>>>> 
>>>>> Your src/main/resources is a standard path for maven; that’s not your 
>>>>> problem.
>>>>> 
>>>>> mvn clean package should create your jar in target/.
>>>>> 
>>>>> cheers,
>>>>> Lachlan
>>>>> 
>>>>> 
>>>>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>> 
>>>>>> Hi Lachlan,
>>>>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts 
>>>>>> of it are relevant to my question?
>>>>>> 
>>>>>> - hugi
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>>>>> 
>>>>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>>>>>> 
>>>>>>> ——
>>>>>>> Subject: Re: Maven
>>>>>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>>>>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>>>>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>>>>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>>>> ——
>>>>>>> 
>>>>>>> Maven uses the relevant plugin for your  to determine 
>>>>>>> where things live. So if you’re using `woapplication` or `woframework` 
>>>>>>> (I think the options are) as your packaging type, then you’ll need the 
>>>>>>> relevant plugin in your build section which I think from memory is the 
>>>>>>> womaven-lifecycle-plugin.
>>>>>>> 
>>>>>>> This has been the case for some years, though I’m not familiar with the 
>>>>>>> current state of things. Have you tried a basic hello world app 
>>>>>>> following the wiki guides for maven?
>>>>>>> 
>>>>>>> cheers,
>>>>>>> Lachlan
>>>>>>> 
>>>>>>> 
>>>>>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>>>> 
>>>>>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>>>>>> classes-folder… I should have known.
>>>>>>>> 
>>>>>>>> But the question then  still remains; how do I introduce the standard 
>>>>>>>> maven resources behaviour to my WO projects, i.e. make tem copy 
>>>>>>>> resources from src/main/resources into my jar file.
>>>>>>>> 
>>>>>>>> Cheers,
>>>>>>>> - hugi
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>>>>> 
>>>>>>>>> Hi all.
>>>>>>>>> 
>>>>>>>>> I’ve begun the fun task of converting all my WO apps to maven 
>>>>>>>>> (finally) but I’m encountering odd behaviour with resources.
>>>>>>>>> 
>>>>>>>>> In my src/main/resources I have a couple of xml files that should end 
>>>>>>>>> up in the final jar (as they do with a regular java maven build). If 
>>>>>>>>> I run “mvn pakage” on my dev machine, these xml-files are copied to 
>>>>>>>>> the jar file as I would expect. But when I run the very same build on 
>>>>>>>>> my jenkins server, the files just get copied to 
>>>>>>>>> MyApp.woa/Contents/Resources, but not into the jar file.
>>>>>>>>> 
>>>>>>>>> Any ideas?
>>>>>>>>> 
>>>>>>>>> Cheers,
>>>>>>>>> - hugi
>>>>>>>>> 
>>>>>>>>> // Hugi Thordarson
>>>>>>>>> // http://www.loftfar.is/
>>>>>>>>> // s. 895-6688
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ___
>>>>>>>>> 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/hugi%40karlmenn.is
>>>>>>>>> 
>>>>>>>>> This email sent to h...@karlmenn.is
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ___
>>>>>>>> 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/lachlan.deck%40gmail.com
>>>>>>>> 
>>>>>>>> This email sent to lachlan.d...@gmail.com
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
>> 
>> ___
>> 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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.com
> 


 ___
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

Re: Maven classpath ordering

2016-03-25 Thread Ramsey Gurley
I went back to using the ‘mystery’ jar we had which added the KVC support 
compiled in. I won’t get the maven-y benefits like downloading sources/javadocs 
on that one, but that will just encourage me to find a better replacement :D 
This is still useful as I’m testing deployment on my maven builds. Now that you 
mention it, I'll need to check that the Joda stuff is working properly. Thanks 
for the tip Fabian.



On Mar 24, 2016, at 11:56 PM, Fabian Peters  wrote:

> Hi Ramsey,
> 
> I don't know about excluding a single class from a jar, but I've had problems 
> with JavaEOAccess getting on the classpath before ERAttributeExtensions. To 
> avoid that I've used the following:
> 
>   
>   wonder.core
>   ERExtensions
>   
>   
>   
>   com.webobjects
>   JavaEOAccess
>   
>   
>   
>   
>   wonder.eof
>   ERAttributeExtension
>   
> 
> Maybe that can help?
> 
> Fabian
> 
>> Am 25.03.2016 um 01:53 schrieb Ramsey Gurley :
>> 
>> Hi all,
>> 
>> I have a small problem with classpath ordering in Maven and I’m hoping 
>> someone can explain how it works. 
>> 
>> In the log of my app, I see the java.class.path.  It starts with lots of 
>> dependent jars and mostly ends with In house frameworks, Wonder then 
>> WebObjects frameworks. Unfortunately, one of the jars (StringTemplate) 
>> contains a class (ASTExpr) I need to override in order to make it happy with 
>> KeyValueCoding style getter naming. It’s a simple fix, and everything works 
>> properly in Eclipse as well as with our old Ant builds. But if I include 
>> this ASTExpr in my framework, the original shows up first in the classpath 
>> for the maven build, and thus, the class I intended to use as an override is 
>> overridden.
>> 
>> I relocated my StringTemplate dependency to the bottom of my pom file, but 
>> that made no difference in classpath ordering. Is there any secret way to 
>> force that jar down the list, or perhaps remove the original ASTExpr class 
>> from it?
>> 
>> Thanks,
>> 
>> Ramsey
>> ___
>> 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/lists.fabian%40e-lumo.com
>> 
>> This email sent to lists.fab...@e-lumo.com
> 


 ___
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

Re: Maven not copying java resources into jar file

2016-03-25 Thread Ramsey Gurley
I’ve since found that the maven release plugin doesn’t like snapshot versions 
and switched back to using the 2.2.1 release version. This gives me the red Xs 
again in Eclipse, but those can be silenced with lifecycle mappings. Here’s 
what my current lifecycle mappings file looks like.






org.owasp
dependency-check-maven

check

[0.0,)







com.github.s4u.plugins
pgpverify-maven-plugin

check

[0.0,)







org.apache.maven.plugins
maven-dependency-plugin

unpack
copy

[0.0,)








org.objectstyle.woproject.maven2

maven-wolifecycle-plugin


define-woapplication-resources
woapplication

define-woframework-resources
woframework

[0.0,)









On Mar 24, 2016, at 12:00 PM, Hugi Thordarson <h...@karlmenn.is> wrote:

> The snapshot version used in my pom-files is included by default by the 
> archetypes found at:
> 
> http://maven.wocommunity.org/service/local/repositories/snapshots/content/archetype-catalog.xml
> 
> Which is the archetype catalog recommended for use by:
> 
> https://wiki.wocommunity.org/display/WOL/Quick+Start
> 
> Should I be using a different version of the plugin?
> 
> - hugi
> 
> 
> 
>> On 24. mar. 2016, at 18:04, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>> 
>> Glad you got it working… 
>> 
>> Just one question: Is there a reason why you’re using a snapshot version of 
>> womaven-lifecycle-plugin? That’s generally not a good idea (and could have 
>> been part of the problem).
>> 
>>> On 22 Mar 2016, at 8:39 PM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>> 
>>> Hi Lachlan,
>>> Here’s what my pom looks like, pretty vanilla:
>>> 
>>> https://gist.github.com/anonymous/00e2cee94b185cd846af
>>> 
>>> I’m just running mvn package for the build, should I be running different 
>>> goals?
>>> 
>>> Thanks for all your help :)
>>> 
>>> - hugi
>>> 
>>> 
>>> 
>>>> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>> 
>>>> A couple of questions:
>>>> - What’s your pom look like?
>>>> - What commands are you running?
>>>> 
>>>> The relevant section is the woman-lifecycle-plugin.
>>>> 
>>>> Your src/main/resources is a standard path for maven; that’s not your 
>>>> problem.
>>>> 
>>>> mvn clean package should create your jar in target/.
>>>> 
>>>> cheers,
>>>> Lachlan
>>>> 
>>>> 
>>>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>> 
>>>>> Hi Lachlan,
>>>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts 
>>>>> of it are relevant to my question?
>>>>> 
>>>>> - hugi
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>>>> 
>>>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>

Re: Maven classpath ordering

2016-03-25 Thread Fabian Peters
Hi Ramsey,

I don't know about excluding a single class from a jar, but I've had problems 
with JavaEOAccess getting on the classpath before ERAttributeExtensions. To 
avoid that I've used the following:


wonder.core
ERExtensions



com.webobjects
JavaEOAccess




wonder.eof
ERAttributeExtension


Maybe that can help?

Fabian

> Am 25.03.2016 um 01:53 schrieb Ramsey Gurley :
> 
> Hi all,
> 
> I have a small problem with classpath ordering in Maven and I’m hoping 
> someone can explain how it works. 
> 
> In the log of my app, I see the java.class.path.  It starts with lots of 
> dependent jars and mostly ends with In house frameworks, Wonder then 
> WebObjects frameworks. Unfortunately, one of the jars (StringTemplate) 
> contains a class (ASTExpr) I need to override in order to make it happy with 
> KeyValueCoding style getter naming. It’s a simple fix, and everything works 
> properly in Eclipse as well as with our old Ant builds. But if I include this 
> ASTExpr in my framework, the original shows up first in the classpath for the 
> maven build, and thus, the class I intended to use as an override is 
> overridden.
> 
> I relocated my StringTemplate dependency to the bottom of my pom file, but 
> that made no difference in classpath ordering. Is there any secret way to 
> force that jar down the list, or perhaps remove the original ASTExpr class 
> from it?
> 
> Thanks,
> 
> Ramsey
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.com


 ___
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

Re: Maven not copying java resources into jar file

2016-03-24 Thread Hugi Thordarson
The snapshot version used in my pom-files is included by default by the 
archetypes found at:

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

Which is the archetype catalog recommended for use by:

https://wiki.wocommunity.org/display/WOL/Quick+Start

Should I be using a different version of the plugin?

- hugi



> On 24. mar. 2016, at 18:04, Lachlan Deck <lachlan.d...@gmail.com> wrote:
> 
> Glad you got it working… 
> 
> Just one question: Is there a reason why you’re using a snapshot version of 
> womaven-lifecycle-plugin? That’s generally not a good idea (and could have 
> been part of the problem).
> 
>> On 22 Mar 2016, at 8:39 PM, Hugi Thordarson <h...@karlmenn.is> wrote:
>> 
>> Hi Lachlan,
>> Here’s what my pom looks like, pretty vanilla:
>> 
>> https://gist.github.com/anonymous/00e2cee94b185cd846af
>> 
>> I’m just running mvn package for the build, should I be running different 
>> goals?
>> 
>> Thanks for all your help :)
>> 
>> - hugi
>> 
>> 
>> 
>>> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>> 
>>> A couple of questions:
>>> - What’s your pom look like?
>>> - What commands are you running?
>>> 
>>> The relevant section is the woman-lifecycle-plugin.
>>> 
>>> Your src/main/resources is a standard path for maven; that’s not your 
>>> problem.
>>> 
>>> mvn clean package should create your jar in target/.
>>> 
>>> cheers,
>>> Lachlan
>>> 
>>> 
>>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>> 
>>>> Hi Lachlan,
>>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts 
>>>> of it are relevant to my question?
>>>> 
>>>> - hugi
>>>> 
>>>> 
>>>> 
>>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>>> 
>>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>>>> 
>>>>> ——
>>>>> Subject: Re: Maven
>>>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>> ——
>>>>> 
>>>>> Maven uses the relevant plugin for your  to determine where 
>>>>> things live. So if you’re using `woapplication` or `woframework` (I think 
>>>>> the options are) as your packaging type, then you’ll need the relevant 
>>>>> plugin in your build section which I think from memory is the 
>>>>> womaven-lifecycle-plugin.
>>>>> 
>>>>> This has been the case for some years, though I’m not familiar with the 
>>>>> current state of things. Have you tried a basic hello world app following 
>>>>> the wiki guides for maven?
>>>>> 
>>>>> cheers,
>>>>> Lachlan
>>>>> 
>>>>> 
>>>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>> 
>>>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>>>> classes-folder… I should have known.
>>>>>> 
>>>>>> But the question then  still remains; how do I introduce the standard 
>>>>>> maven resources behaviour to my WO projects, i.e. make tem copy 
>>>>>> resources from src/main/resources into my jar file.
>>>>>> 
>>>>>> Cheers,
>>>>>> - hugi
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>>> 
>>>>>>> Hi all.
>>>>>>> 
>>>>>>> I’ve begun the fun task of converting all my WO apps to maven (finally) 
>>>>>>> but I’m encountering odd behaviour with resources.
>>>>>>> 
>>>>>>> In my src/main/resources I have a couple of xml files that should end 
>>>>>>> up in the final jar (as they do 

Re: Maven not copying java resources into jar file

2016-03-24 Thread Lachlan Deck
Glad you got it working… 

Just one question: Is there a reason why you’re using a snapshot version of 
womaven-lifecycle-plugin? That’s generally not a good idea (and could have been 
part of the problem).

> On 22 Mar 2016, at 8:39 PM, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> Hi Lachlan,
> Here’s what my pom looks like, pretty vanilla:
> 
> https://gist.github.com/anonymous/00e2cee94b185cd846af
> 
> I’m just running mvn package for the build, should I be running different 
> goals?
> 
> Thanks for all your help :)
> 
> - hugi
> 
> 
> 
>> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>> 
>> A couple of questions:
>> - What’s your pom look like?
>> - What commands are you running?
>> 
>> The relevant section is the woman-lifecycle-plugin.
>> 
>> Your src/main/resources is a standard path for maven; that’s not your 
>> problem.
>> 
>> mvn clean package should create your jar in target/.
>> 
>> cheers,
>> Lachlan
>> 
>> 
>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>> 
>>> Hi Lachlan,
>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts of 
>>> it are relevant to my question?
>>> 
>>> - hugi
>>> 
>>> 
>>> 
>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>> 
>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>>> 
>>>> ——
>>>> Subject: Re: Maven
>>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>> ——
>>>> 
>>>> Maven uses the relevant plugin for your  to determine where 
>>>> things live. So if you’re using `woapplication` or `woframework` (I think 
>>>> the options are) as your packaging type, then you’ll need the relevant 
>>>> plugin in your build section which I think from memory is the 
>>>> womaven-lifecycle-plugin.
>>>> 
>>>> This has been the case for some years, though I’m not familiar with the 
>>>> current state of things. Have you tried a basic hello world app following 
>>>> the wiki guides for maven?
>>>> 
>>>> cheers,
>>>> Lachlan
>>>> 
>>>> 
>>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>> 
>>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>>> classes-folder… I should have known.
>>>>> 
>>>>> But the question then  still remains; how do I introduce the standard 
>>>>> maven resources behaviour to my WO projects, i.e. make tem copy resources 
>>>>> from src/main/resources into my jar file.
>>>>> 
>>>>> Cheers,
>>>>> - hugi
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>> 
>>>>>> Hi all.
>>>>>> 
>>>>>> I’ve begun the fun task of converting all my WO apps to maven (finally) 
>>>>>> but I’m encountering odd behaviour with resources.
>>>>>> 
>>>>>> In my src/main/resources I have a couple of xml files that should end up 
>>>>>> in the final jar (as they do with a regular java maven build). If I run 
>>>>>> “mvn pakage” on my dev machine, these xml-files are copied to the jar 
>>>>>> file as I would expect. But when I run the very same build on my jenkins 
>>>>>> server, the files just get copied to MyApp.woa/Contents/Resources, but 
>>>>>> not into the jar file.
>>>>>> 
>>>>>> Any ideas?
>>>>>> 
>>>>>> Cheers,
>>>>>> - hugi
>>>>>> 
>>>>>> // Hugi Thordarson
>>>>>> // http://www.loftfar.is/
>>>>>> // s. 895-6688
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ___
>>>>>> 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/hugi%40karlmenn.is
>>>>>> 
>>>>>> This email sent to h...@karlmenn.is
>>>>> 
>>>>> 
>>>>> ___
>>>>> 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/lachlan.deck%40gmail.com
>>>>> 
>>>>> This email sent to lachlan.d...@gmail.com
>>>> 
>>> 
>> 
> 


 ___
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

Re: Maven not copying java resources into jar file

2016-03-22 Thread Hugi Thordarson
This worked perfectly, thanks Henrique!

I wonder if WebObjects resources should perhaps live in a different folder than 
src/main/resources? That folder is a standard part of the maven project 
structure and this made for some really unexpeted behaviour.

Cheers,
- hugi



> On 22. mar. 2016, at 16:29, Henrique Prange <hpra...@gmail.com> wrote:
> 
> Hi Hugi,
> 
> AFAIR, the wolifecycle-maven-plugin copies all files from src/main/resources 
> into the Resources folder. However, you can use the maven-resources-plugin to 
> copy the required files into the Maven output directory.
> 
> 
>   
> 
>   maven-resources-plugin
>   2.6
>   
> 
>   copy-resources
>   validate
>   
> copy-resources
>   
>   
> 
> ${project.build.outputDirectory}
> 
>   
> src/main/resources
>   
> 
>   
> 
>   
> 
>   
> 
> 
> See the maven-resources-plugin [1] documentation for more information.
> 
> [1]https://maven.apache.org/plugins/maven-resources-plugin/
> 
> Cheers,
> 
> Henrique
> 
>> On 22 de mar de 2016, at 06:39, Hugi Thordarson <h...@karlmenn.is> wrote:
>> 
>> Hi Lachlan,
>> Here’s what my pom looks like, pretty vanilla:
>> 
>> https://gist.github.com/anonymous/00e2cee94b185cd846af
>> 
>> I’m just running mvn package for the build, should I be running different 
>> goals?
>> 
>> Thanks for all your help :)
>> 
>> - hugi
>> 
>> 
>> 
>>> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>> 
>>> A couple of questions:
>>> - What’s your pom look like?
>>> - What commands are you running?
>>> 
>>> The relevant section is the woman-lifecycle-plugin.
>>> 
>>> Your src/main/resources is a standard path for maven; that’s not your 
>>> problem.
>>> 
>>> mvn clean package should create your jar in target/.
>>> 
>>> cheers,
>>> Lachlan
>>> 
>>> 
>>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>> 
>>>> Hi Lachlan,
>>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts 
>>>> of it are relevant to my question?
>>>> 
>>>> - hugi
>>>> 
>>>> 
>>>> 
>>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>>> 
>>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>>>> 
>>>>> ——
>>>>> Subject: Re: Maven
>>>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>>> ——
>>>>> 
>>>>> Maven uses the relevant plugin for your  to determine where 
>>>>> things live. So if you’re using `woapplication` or `woframework` (I think 
>>>>> the options are) as your packaging type, then you’ll need the relevant 
>>>>> plugin in your build section which I think from memory is the 
>>>>> womaven-lifecycle-plugin.
>>>>> 
>>>>> This has been the case for some years, though I’m not familiar with the 
>>>>> current state of things. Have you tried a basic hello world app following 
>>>>> the wiki guides for maven?
>>>>> 
>>>>> cheers,
>>>>> Lachlan
>>>>> 
>>>>> 
>>>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>> 
>>>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>>>> classes-folder… I should have known.
>>>>>> 
>>>>>> But the question then  still remains; how do I introduce the standard 
>>>>>> maven resources behaviour to my WO projects, i.e. make tem copy 
>>>>>> resources from src/main/resources into my jar file.
>>>>>> 
>>>>>> Cheers,
>>>>>> - hugi
>>>>>> 
>>>>>> 
>>>>>> 
>>&g

Re: Maven not copying java resources into jar file

2016-03-22 Thread Henrique Prange
Hi Hugi,

AFAIR, the wolifecycle-maven-plugin copies all files from src/main/resources 
into the Resources folder. However, you can use the maven-resources-plugin to 
copy the required files into the Maven output directory.


  

  maven-resources-plugin
  2.6
  

  copy-resources
  validate
  
copy-resources
  
  
${project.build.outputDirectory}

  
src/main/resources
  

  

  

  


See the maven-resources-plugin [1] documentation for more information.

[1]https://maven.apache.org/plugins/maven-resources-plugin/

Cheers,

Henrique

> On 22 de mar de 2016, at 06:39, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> Hi Lachlan,
> Here’s what my pom looks like, pretty vanilla:
> 
> https://gist.github.com/anonymous/00e2cee94b185cd846af
> 
> I’m just running mvn package for the build, should I be running different 
> goals?
> 
> Thanks for all your help :)
> 
> - hugi
> 
> 
> 
>> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>> 
>> A couple of questions:
>> - What’s your pom look like?
>> - What commands are you running?
>> 
>> The relevant section is the woman-lifecycle-plugin.
>> 
>> Your src/main/resources is a standard path for maven; that’s not your 
>> problem.
>> 
>> mvn clean package should create your jar in target/.
>> 
>> cheers,
>> Lachlan
>> 
>> 
>>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>> 
>>> Hi Lachlan,
>>> Thanks, I found the pom you mentioned, but I don’t quite see which parts of 
>>> it are relevant to my question?
>>> 
>>> - hugi
>>> 
>>> 
>>> 
>>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>>> 
>>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>>> 
>>>> ——
>>>> Subject: Re: Maven
>>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>>> ——
>>>> 
>>>> Maven uses the relevant plugin for your  to determine where 
>>>> things live. So if you’re using `woapplication` or `woframework` (I think 
>>>> the options are) as your packaging type, then you’ll need the relevant 
>>>> plugin in your build section which I think from memory is the 
>>>> womaven-lifecycle-plugin.
>>>> 
>>>> This has been the case for some years, though I’m not familiar with the 
>>>> current state of things. Have you tried a basic hello world app following 
>>>> the wiki guides for maven?
>>>> 
>>>> cheers,
>>>> Lachlan
>>>> 
>>>> 
>>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>> 
>>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>>> classes-folder… I should have known.
>>>>> 
>>>>> But the question then  still remains; how do I introduce the standard 
>>>>> maven resources behaviour to my WO projects, i.e. make tem copy resources 
>>>>> from src/main/resources into my jar file.
>>>>> 
>>>>> Cheers,
>>>>> - hugi
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>>> 
>>>>>> Hi all.
>>>>>> 
>>>>>> I’ve begun the fun task of converting all my WO apps to maven (finally) 
>>>>>> but I’m encountering odd behaviour with resources.
>>>>>> 
>>>>>> In my src/main/resources I have a couple of xml files that should end up 
>>>>>> in the final jar (as they do with a regular java maven build). If I run 
>>>>>> “mvn pakage” on my dev machine, these xml-files are copied to the jar 
>>>>>> file as I would expect. But when I run the very same build on my jenkins 
>>>>>> server, the files just get copied to MyApp.woa/Contents/Resources, but 
>>>>>> not into the ja

Re: Maven not copying java resources into jar file

2016-03-22 Thread Hugi Thordarson
Hi Lachlan,
Here’s what my pom looks like, pretty vanilla:

https://gist.github.com/anonymous/00e2cee94b185cd846af

I’m just running mvn package for the build, should I be running different goals?

Thanks for all your help :)

- hugi



> On 21. mar. 2016, at 22:36, Lachlan Deck <lachlan.d...@gmail.com> wrote:
> 
> A couple of questions:
> - What’s your pom look like?
> - What commands are you running?
> 
> The relevant section is the woman-lifecycle-plugin.
> 
> Your src/main/resources is a standard path for maven; that’s not your problem.
> 
> mvn clean package should create your jar in target/.
> 
> cheers,
> Lachlan
> 
> 
>> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>> 
>> Hi Lachlan,
>> Thanks, I found the pom you mentioned, but I don’t quite see which parts of 
>> it are relevant to my question?
>> 
>> - hugi
>> 
>> 
>> 
>>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>>> 
>>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>>> 
>>> ——
>>> Subject: Re: Maven
>>> From: Lachlan Deck <lachlan.d...@gmail.com>
>>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>>> ——
>>> 
>>> Maven uses the relevant plugin for your  to determine where 
>>> things live. So if you’re using `woapplication` or `woframework` (I think 
>>> the options are) as your packaging type, then you’ll need the relevant 
>>> plugin in your build section which I think from memory is the 
>>> womaven-lifecycle-plugin.
>>> 
>>> This has been the case for some years, though I’m not familiar with the 
>>> current state of things. Have you tried a basic hello world app following 
>>> the wiki guides for maven?
>>> 
>>> cheers,
>>> Lachlan
>>> 
>>> 
>>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>> 
>>>> OK, turns out it was Eclipse that was copying the resources to the 
>>>> classes-folder… I should have known.
>>>> 
>>>> But the question then  still remains; how do I introduce the standard 
>>>> maven resources behaviour to my WO projects, i.e. make tem copy resources 
>>>> from src/main/resources into my jar file.
>>>> 
>>>> Cheers,
>>>> - hugi
>>>> 
>>>> 
>>>> 
>>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>>> 
>>>>> Hi all.
>>>>> 
>>>>> I’ve begun the fun task of converting all my WO apps to maven (finally) 
>>>>> but I’m encountering odd behaviour with resources.
>>>>> 
>>>>> In my src/main/resources I have a couple of xml files that should end up 
>>>>> in the final jar (as they do with a regular java maven build). If I run 
>>>>> “mvn pakage” on my dev machine, these xml-files are copied to the jar 
>>>>> file as I would expect. But when I run the very same build on my jenkins 
>>>>> server, the files just get copied to MyApp.woa/Contents/Resources, but 
>>>>> not into the jar file.
>>>>> 
>>>>> Any ideas?
>>>>> 
>>>>> Cheers,
>>>>> - hugi
>>>>> 
>>>>> // Hugi Thordarson
>>>>> // http://www.loftfar.is/
>>>>> // s. 895-6688
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> 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/hugi%40karlmenn.is
>>>>> 
>>>>> This email sent to h...@karlmenn.is
>>>> 
>>>> 
>>>> ___
>>>> 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/lachlan.deck%40gmail.com
>>>> 
>>>> This email sent to lachlan.d...@gmail.com
>>> 
>> 
> 


 ___
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

Re: Maven not copying java resources into jar file

2016-03-21 Thread Lachlan Deck
A couple of questions:
- What’s your pom look like?
- What commands are you running?

The relevant section is the woman-lifecycle-plugin.

Your src/main/resources is a standard path for maven; that’s not your problem.

mvn clean package should create your jar in target/.

cheers,
Lachlan


> On 22 Mar 2016, at 8:55 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> Hi Lachlan,
> Thanks, I found the pom you mentioned, but I don’t quite see which parts of 
> it are relevant to my question?
> 
> - hugi
> 
> 
> 
>> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
>> 
>> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
>> 
>> ——
>> Subject: Re: Maven
>> From: Lachlan Deck <lachlan.d...@gmail.com>
>> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>> Date: Sat, 21 Jan 2012 11:01:25 +1100
>> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
>> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
>> ——
>> 
>> Maven uses the relevant plugin for your  to determine where 
>> things live. So if you’re using `woapplication` or `woframework` (I think 
>> the options are) as your packaging type, then you’ll need the relevant 
>> plugin in your build section which I think from memory is the 
>> womaven-lifecycle-plugin.
>> 
>> This has been the case for some years, though I’m not familiar with the 
>> current state of things. Have you tried a basic hello world app following 
>> the wiki guides for maven?
>> 
>> cheers,
>> Lachlan
>> 
>> 
>>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>>> 
>>> OK, turns out it was Eclipse that was copying the resources to the 
>>> classes-folder… I should have known.
>>> 
>>> But the question then  still remains; how do I introduce the standard maven 
>>> resources behaviour to my WO projects, i.e. make tem copy resources from 
>>> src/main/resources into my jar file.
>>> 
>>> Cheers,
>>> - hugi
>>> 
>>> 
>>> 
>>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>>> 
>>>> Hi all.
>>>> 
>>>> I’ve begun the fun task of converting all my WO apps to maven (finally) 
>>>> but I’m encountering odd behaviour with resources.
>>>> 
>>>> In my src/main/resources I have a couple of xml files that should end up 
>>>> in the final jar (as they do with a regular java maven build). If I run 
>>>> “mvn pakage” on my dev machine, these xml-files are copied to the jar file 
>>>> as I would expect. But when I run the very same build on my jenkins 
>>>> server, the files just get copied to MyApp.woa/Contents/Resources, but not 
>>>> into the jar file.
>>>> 
>>>> Any ideas?
>>>> 
>>>> Cheers,
>>>> - hugi
>>>> 
>>>> // Hugi Thordarson
>>>> // http://www.loftfar.is/
>>>> // s. 895-6688
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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/hugi%40karlmenn.is
>>>> 
>>>> This email sent to h...@karlmenn.is
>>> 
>>> 
>>> ___
>>> 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/lachlan.deck%40gmail.com
>>> 
>>> This email sent to lachlan.d...@gmail.com
>> 
> 


 ___
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

Re: Maven not copying java resources into jar file

2016-03-21 Thread Hugi Thordarson
Hi Lachlan,
Thanks, I found the pom you mentioned, but I don’t quite see which parts of it 
are relevant to my question?

- hugi



> On 21. mar. 2016, at 20:55, Lachlan Deck <lachlan.d...@gmail.com> wrote:
> 
> Perhaps @see the list archives for the pom I’d sent to the list in 2012.
> 
> ——
> Subject: Re: Maven
> From: Lachlan Deck <lachlan.d...@gmail.com>
> In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
> Date: Sat, 21 Jan 2012 11:01:25 +1100
> Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
> References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
> ——
> 
> Maven uses the relevant plugin for your  to determine where 
> things live. So if you’re using `woapplication` or `woframework` (I think the 
> options are) as your packaging type, then you’ll need the relevant plugin in 
> your build section which I think from memory is the womaven-lifecycle-plugin.
> 
> This has been the case for some years, though I’m not familiar with the 
> current state of things. Have you tried a basic hello world app following the 
> wiki guides for maven?
> 
> cheers,
> Lachlan
> 
> 
>> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
>> 
>> OK, turns out it was Eclipse that was copying the resources to the 
>> classes-folder… I should have known.
>> 
>> But the question then  still remains; how do I introduce the standard maven 
>> resources behaviour to my WO projects, i.e. make tem copy resources from 
>> src/main/resources into my jar file.
>> 
>> Cheers,
>> - hugi
>> 
>> 
>> 
>>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is> wrote:
>>> 
>>> Hi all.
>>> 
>>> I’ve begun the fun task of converting all my WO apps to maven (finally) but 
>>> I’m encountering odd behaviour with resources.
>>> 
>>> In my src/main/resources I have a couple of xml files that should end up in 
>>> the final jar (as they do with a regular java maven build). If I run “mvn 
>>> pakage” on my dev machine, these xml-files are copied to the jar file as I 
>>> would expect. But when I run the very same build on my jenkins server, the 
>>> files just get copied to MyApp.woa/Contents/Resources, but not into the jar 
>>> file.
>>> 
>>> Any ideas?
>>> 
>>> Cheers,
>>> - hugi
>>> 
>>> // Hugi Thordarson
>>> // http://www.loftfar.is/
>>> // s. 895-6688
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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/hugi%40karlmenn.is
>>> 
>>> This email sent to h...@karlmenn.is
>> 
>> 
>> ___
>> 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/lachlan.deck%40gmail.com
>> 
>> This email sent to lachlan.d...@gmail.com
> 


 ___
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

Re: Maven not copying java resources into jar file

2016-03-21 Thread Lachlan Deck
Perhaps @see the list archives for the pom I’d sent to the list in 2012.

——
Subject: Re: Maven
From: Lachlan Deck <lachlan.d...@gmail.com>
In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
Date: Sat, 21 Jan 2012 11:01:25 +1100
Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com>
References: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com>
——

Maven uses the relevant plugin for your  to determine where things 
live. So if you’re using `woapplication` or `woframework` (I think the options 
are) as your packaging type, then you’ll need the relevant plugin in your build 
section which I think from memory is the womaven-lifecycle-plugin.

This has been the case for some years, though I’m not familiar with the current 
state of things. Have you tried a basic hello world app following the wiki 
guides for maven?

cheers,
Lachlan


> On 22 Mar 2016, at 4:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> OK, turns out it was Eclipse that was copying the resources to the 
> classes-folder… I should have known.
> 
> But the question then  still remains; how do I introduce the standard maven 
> resources behaviour to my WO projects, i.e. make tem copy resources from 
> src/main/resources into my jar file.
> 
> Cheers,
> - hugi
> 
> 
> 
>> On 21. mar. 2016, at 16:26, Hugi Thordarson <h...@karlmenn.is 
>> <mailto:h...@karlmenn.is>> wrote:
>> 
>> Hi all.
>> 
>> I’ve begun the fun task of converting all my WO apps to maven (finally) but 
>> I’m encountering odd behaviour with resources.
>> 
>> In my src/main/resources I have a couple of xml files that should end up in 
>> the final jar (as they do with a regular java maven build). If I run “mvn 
>> pakage” on my dev machine, these xml-files are copied to the jar file as I 
>> would expect. But when I run the very same build on my jenkins server, the 
>> files just get copied to MyApp.woa/Contents/Resources, but not into the jar 
>> file.
>> 
>> Any ideas?
>> 
>> Cheers,
>> - hugi
>> 
>> // Hugi Thordarson
>> // http://www.loftfar.is/
>> // s. 895-6688
>> 
>> 
>> 
>> 
>> ___
>> 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/hugi%40karlmenn.is 
>> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is>
>> 
>> This email sent to h...@karlmenn.is <mailto:h...@karlmenn.is>
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com
>  
> <https://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com>
> 
> This email sent to lachlan.d...@gmail.com <mailto:lachlan.d...@gmail.com>
 ___
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

Re: Maven not copying java resources into jar file

2016-03-21 Thread Hugi Thordarson
OK, turns out it was Eclipse that was copying the resources to the 
classes-folder… I should have known.

But the question then  still remains; how do I introduce the standard maven 
resources behaviour to my WO projects, i.e. make tem copy resources from 
src/main/resources into my jar file.

Cheers,
- hugi



> On 21. mar. 2016, at 16:26, Hugi Thordarson  wrote:
> 
> Hi all.
> 
> I’ve begun the fun task of converting all my WO apps to maven (finally) but 
> I’m encountering odd behaviour with resources.
> 
> In my src/main/resources I have a couple of xml files that should end up in 
> the final jar (as they do with a regular java maven build). If I run “mvn 
> pakage” on my dev machine, these xml-files are copied to the jar file as I 
> would expect. But when I run the very same build on my jenkins server, the 
> files just get copied to MyApp.woa/Contents/Resources, but not into the jar 
> file.
> 
> Any ideas?
> 
> Cheers,
> - hugi
> 
> // Hugi Thordarson
> // http://www.loftfar.is/
> // s. 895-6688
> 
> 
> 
> 
> ___
> 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/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is


 ___
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

Re: Maven deployment application resources

2016-03-07 Thread Ramsey Gurley
Ahh, that was the bit I was missing :)

Thanks Fabian!

On Mar 7, 2016, at 12:12 PM, lists.fab...@e-lumo.com wrote:

> Well, that was a case of "Reading goes quickly when you don't slow down to 
> comprehend".
> 
> Do you set the finalName in the pom? Something like:
> 
>   
>   ${project.artifactId}
>
> 
> The default is ${artifactId}-${version}. I've got projects with the default 
> and others without the version number as per above. Split install works fine 
> for all.
> 
>> Am 07.03.2016 um 18:44 schrieb Ramsey Gurley :
>> 
>> The WOFrameworksBaseURL works fine for me. All my framework resources are 
>> loading okay. It’s just the resources from the application itself that get a 
>> path with pom version in it.
>> 
>> I’m using an approximately year old version of Wonder, so I should be 
>> unaffected by recent changes to Wonder.
>> 
>> 
>> On Mar 7, 2016, at 11:36 AM, Fabian Peters  wrote:
>> 
>>> Hi Ramsey,
>>> 
>>> I'm guessing you're seeing 
>>> . 
>>> Markus proposed a fix in , 
>>> of which I tested a preliminary version. 
>>> 
>>> For now I just reverted the commits from #704.
>>> 
>>> Fabian
>>> 
 Am 07.03.2016 um 18:26 schrieb Ramsey Gurley :
 
 Hi all,
 
 I’m doing a split deployment with apache. When deploying a maven 
 application, I’m able to get the proper WebServerResources for all the 
 frameworks using WOFrameworksBaseURL. However, any resources in the 
 application itself seem to generate urls like 
 domain/WebObjects/AppName-1.0.0-SNAPSHOT.woa/path/to/resource.
 
 Can anyone tell me the secret handshake/property to make that use 
 domain/WebObjects/AppName.woa/path/to/resource? I tried 
 WOApplicationBaseURL, but that just replaced the /WebObjects bit and left 
 the app name with pom version in place.
 
 Thanks,
 
 Ramsey
 ___
 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/lists.fabian%40e-lumo.com
 
 This email sent to lists.fab...@e-lumo.com
>>> 
>> 
> 


 ___
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

Re: Maven deployment application resources

2016-03-07 Thread lists . fabian
Well, that was a case of "Reading goes quickly when you don't slow down to 
comprehend".

Do you set the finalName in the pom? Something like:


${project.artifactId}


The default is ${artifactId}-${version}. I've got projects with the default and 
others without the version number as per above. Split install works fine for 
all.

> Am 07.03.2016 um 18:44 schrieb Ramsey Gurley :
> 
> The WOFrameworksBaseURL works fine for me. All my framework resources are 
> loading okay. It’s just the resources from the application itself that get a 
> path with pom version in it.
> 
> I’m using an approximately year old version of Wonder, so I should be 
> unaffected by recent changes to Wonder.
> 
> 
> On Mar 7, 2016, at 11:36 AM, Fabian Peters  wrote:
> 
>> Hi Ramsey,
>> 
>> I'm guessing you're seeing 
>> . 
>> Markus proposed a fix in , 
>> of which I tested a preliminary version. 
>> 
>> For now I just reverted the commits from #704.
>> 
>> Fabian
>> 
>>> Am 07.03.2016 um 18:26 schrieb Ramsey Gurley :
>>> 
>>> Hi all,
>>> 
>>> I’m doing a split deployment with apache. When deploying a maven 
>>> application, I’m able to get the proper WebServerResources for all the 
>>> frameworks using WOFrameworksBaseURL. However, any resources in the 
>>> application itself seem to generate urls like 
>>> domain/WebObjects/AppName-1.0.0-SNAPSHOT.woa/path/to/resource.
>>> 
>>> Can anyone tell me the secret handshake/property to make that use 
>>> domain/WebObjects/AppName.woa/path/to/resource? I tried 
>>> WOApplicationBaseURL, but that just replaced the /WebObjects bit and left 
>>> the app name with pom version in place.
>>> 
>>> Thanks,
>>> 
>>> Ramsey
>>> ___
>>> 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/lists.fabian%40e-lumo.com
>>> 
>>> This email sent to lists.fab...@e-lumo.com
>> 
> 


 ___
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

Re: Maven deployment application resources

2016-03-07 Thread Ramsey Gurley
The WOFrameworksBaseURL works fine for me. All my framework resources are 
loading okay. It’s just the resources from the application itself that get a 
path with pom version in it.

I’m using an approximately year old version of Wonder, so I should be 
unaffected by recent changes to Wonder.


On Mar 7, 2016, at 11:36 AM, Fabian Peters  wrote:

> Hi Ramsey,
> 
> I'm guessing you're seeing 
> . 
> Markus proposed a fix in , of 
> which I tested a preliminary version. 
> 
> For now I just reverted the commits from #704.
> 
> Fabian
> 
>> Am 07.03.2016 um 18:26 schrieb Ramsey Gurley :
>> 
>> Hi all,
>> 
>> I’m doing a split deployment with apache. When deploying a maven 
>> application, I’m able to get the proper WebServerResources for all the 
>> frameworks using WOFrameworksBaseURL. However, any resources in the 
>> application itself seem to generate urls like 
>> domain/WebObjects/AppName-1.0.0-SNAPSHOT.woa/path/to/resource.
>> 
>> Can anyone tell me the secret handshake/property to make that use 
>> domain/WebObjects/AppName.woa/path/to/resource? I tried 
>> WOApplicationBaseURL, but that just replaced the /WebObjects bit and left 
>> the app name with pom version in place.
>> 
>> Thanks,
>> 
>> Ramsey
>> ___
>> 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/lists.fabian%40e-lumo.com
>> 
>> This email sent to lists.fab...@e-lumo.com
> 


 ___
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

Re: Maven deployment application resources

2016-03-07 Thread Fabian Peters
Hi Ramsey,

I'm guessing you're seeing 
. Markus 
proposed a fix in , of which I 
tested a preliminary version. 

For now I just reverted the commits from #704.

Fabian

> Am 07.03.2016 um 18:26 schrieb Ramsey Gurley :
> 
> Hi all,
> 
> I’m doing a split deployment with apache. When deploying a maven application, 
> I’m able to get the proper WebServerResources for all the frameworks using 
> WOFrameworksBaseURL. However, any resources in the application itself seem to 
> generate urls like 
> domain/WebObjects/AppName-1.0.0-SNAPSHOT.woa/path/to/resource.
> 
> Can anyone tell me the secret handshake/property to make that use 
> domain/WebObjects/AppName.woa/path/to/resource? I tried WOApplicationBaseURL, 
> but that just replaced the /WebObjects bit and left the app name with pom 
> version in place.
> 
> Thanks,
> 
> Ramsey
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.com


 ___
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

Re: Maven builds and WOBootstrap.jar

2015-11-20 Thread Henrique Prange
Hi Ramsey,

I found a way to produce the desired result if you cannot avoid the use of 
WOBootstrap.jar. You may consider it a hack, but it should work.

1) Create a lib folder into your project.

2) Copy the WOBootstrap.jar file into the lib folder.

3) Create a wobuild.properties file into the lib folder containing the 
following properties:

   wo.bootstrapjar=lib/WOBootstrap.jar 
   wo.wolocalroot=foo
   wo.wosystemroot=bar

4) Create a .mvn folder into your project.

5) Add a file called jvm.config into the .mvn folder containing the following 
information:

   -DWOBUILD_PROPERTIES=lib/wobuild.properties

Steps #4 and #5 require Maven 3.3.1 or greater. The properties from the 
jvm.config file are appended to any Maven command executed inside the project. 
You have to run the Maven command with the -D option explicitly for older 
versions. For example:

   mvn clean install -DWOBUILD_PROPERTIES=lib/wobuild.properties.

It isn’t a beautiful solution, but it is isolated and keeps your build 
reproducible across environments. Anyway, I keep saying that unless there is 
strong reason (as you have), using the WOBootstrap.jar should be discouraged.

> I notice on the rather dated roadmap that 3.0 was intended to merge/replace 
> the woproject ant stuff.
> 
> https://wiki.wocommunity.org/display/WOL/Roadmap 
> 
> 
> Have you ever made a branch for that or had any progress in that direction?

No progress in that direction.

> Are there any major hurdles blocking that goal?


I guess lack of interest? The cost to produce a general library that could be 
used by both the Ant tasks and the Maven Mojos wouldn’t worth it.

Cheers,

Henrique

PS.: The wo.wolocalroot and wo.wosystemroot are required to avoid an incorrect 
BUILD FAILED message.

> On 18 de nov de 2015, at 14:26, Ramsey Gurley  wrote:
> 
> Thanks for the reply Henrique. I just wanted to make sure I am not 
> overlooking some special magic property to make it work or if there is some 
> way to reference it from my dependency repo. I may see if I can figure out 
> how to make the old woapp script properly escape the () in the path, since it 
> appears to work (at least, on windows 10) otherwise. Then I just won’t 
> need(?) WOBootstrap.jar. 
> 
> I gather this is the desired way to go if I want to use WOInject at some 
> point in the future, based on my reading of old threads from the mailing 
> list. Referencing magic jars outside the dependency repo seems like a step 
> backwards when trying to use maven.
> 
> I notice on the rather dated roadmap that 3.0 was intended to merge/replace 
> the woproject ant stuff.
> 
> https://wiki.wocommunity.org/display/WOL/Roadmap 
> 
> 
> Have you ever made a branch for that or had any progress in that direction? 
> Are there any major hurdles blocking that goal?
> 
> On Nov 18, 2015, at 7:40 AM, Henrique Prange  > wrote:
> 
>> Hi Ramsey,
>> 
>> Theoretically, defining the wo.bootstrapjar variable in the build.properties 
>> should work. Defining the full path as you did is another option too. 
>> However, as soon as the Maven plugin uses an old version of 
>> woproject-ant-tasks, it may not work as we expect it to work (considering 
>> the current source code for this library).
>> 
>> I’ll try to debug the plugin execution to understand what’s going on.
>> 
>> Cheers,
>> 
>> Henrique
>> 
>>> On 17 de nov de 2015, at 22:25, Ramsey Gurley >> > wrote:
>>> 
>>> Also, I’ve tried creating
>>> 
>>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>>> 
>>> directly on the build server, as that appears to be the default location 
>>> where WOVariables looks. Still getting the old and busted appstart.cmd file.
>>> 
>>> On Nov 17, 2015, at 3:19 PM, Ramsey Gurley >> > wrote:
>>> 
 Hi maven people,
 
 I’m building a maven project with woapplication packaging. The 
 Application.CMD file for windows is coming from the woapp instead of the 
 woapp_52 directory in the woproject.jar. The woapp script is broken 
 because it does not gracefully handle directory paths like \ProgramFiles 
 (x86)\ on Windows the way woapp_52 script does. I’m getting it because 
 WOBootstrap.jar does not exist, and therefore, it assumes I’m using old n 
 busted WO 5 or 5.1. I tried adding 
 wo.bootstrapjar=/path/to/wotaskd/WOBootstrap.jar to build.properties, but 
 that did not work. I tried adding that as a property in the pom, but that 
 did not work either.
 
 Can anyone tell me how to build a maven project with woapplication 
 packaging such that one gets the launch scripts from woapp_52 instead of 
 woapp?
 
 Thanks,
 
 Ramsey
>>> 
>>> 
>>> 

Re: Maven builds and WOBootstrap.jar

2015-11-20 Thread Ramsey Gurley

On Nov 20, 2015, at 9:55 AM, Henrique Prange  wrote:

> Hi Ramsey,
> 
> I found a way to produce the desired result if you cannot avoid the use of 
> WOBootstrap.jar. You may consider it a hack, but it should work.
> 
> 1) Create a lib folder into your project.
> 
> 2) Copy the WOBootstrap.jar file into the lib folder.
> 
> 3) Create a wobuild.properties file into the lib folder containing the 
> following properties:
> 
>wo.bootstrapjar=lib/WOBootstrap.jar 
>wo.wolocalroot=foo
>wo.wosystemroot=bar

For others following along, or future me:

Beware the space at the end of .jar !

> 
> 4) Create a .mvn folder into your project.
> 
> 5) Add a file called jvm.config into the .mvn folder containing the following 
> information:
> 
>-DWOBUILD_PROPERTIES=lib/wobuild.properties
> 
> Steps #4 and #5 require Maven 3.3.1 or greater. The properties from the 
> jvm.config file are appended to any Maven command executed inside the 
> project. You have to run the Maven command with the -D option explicitly for 
> older versions. For example:
> 
>mvn clean install -DWOBUILD_PROPERTIES=lib/wobuild.properties.
> 
> It isn’t a beautiful solution, but it is isolated and keeps your build 
> reproducible across environments.

Thanks! This was the tip I needed.

I made one modification. I am using dependency:copy to pull the WOBootstrap.jar 
from my dependency repository instead of checking it into git and that works 
just as nicely.

> Anyway, I keep saying that unless there is strong reason (as you have), using 
> the WOBootstrap.jar should be discouraged.

I actually had this crazy idea of using the maven shade plugin to merge all the 
dependencies into a single Uber jar. The nice thing about the shade plugin is 
that it can also minimize the jar and remove unused classes. I tried it and it 
was able to shrink my jar down from 23.6 MB to 14.6 MB. It just didn’t run. 
Something about ERX something can’t read the properties file :P

> 
>> I notice on the rather dated roadmap that 3.0 was intended to merge/replace 
>> the woproject ant stuff.
>> 
>> https://wiki.wocommunity.org/display/WOL/Roadmap
>> 
>> Have you ever made a branch for that or had any progress in that direction?
> 
> No progress in that direction.
> 
>> Are there any major hurdles blocking that goal?
> 
> 
> I guess lack of interest? The cost to produce a general library that could be 
> used by both the Ant tasks and the Maven Mojos wouldn’t worth it.

I was thinking more along the lines of never using ant again ;)

Thanks again for your help Henrique!

> 
> Cheers,
> 
> Henrique
> 
> PS.: The wo.wolocalroot and wo.wosystemroot are required to avoid an 
> incorrect BUILD FAILED message.
> 
>> On 18 de nov de 2015, at 14:26, Ramsey Gurley  
>> wrote:
>> 
>> Thanks for the reply Henrique. I just wanted to make sure I am not 
>> overlooking some special magic property to make it work or if there is some 
>> way to reference it from my dependency repo. I may see if I can figure out 
>> how to make the old woapp script properly escape the () in the path, since 
>> it appears to work (at least, on windows 10) otherwise. Then I just won’t 
>> need(?) WOBootstrap.jar. 
>> 
>> I gather this is the desired way to go if I want to use WOInject at some 
>> point in the future, based on my reading of old threads from the mailing 
>> list. Referencing magic jars outside the dependency repo seems like a step 
>> backwards when trying to use maven.
>> 
>> I notice on the rather dated roadmap that 3.0 was intended to merge/replace 
>> the woproject ant stuff.
>> 
>> https://wiki.wocommunity.org/display/WOL/Roadmap
>> 
>> Have you ever made a branch for that or had any progress in that direction? 
>> Are there any major hurdles blocking that goal?
>> 
>> On Nov 18, 2015, at 7:40 AM, Henrique Prange  wrote:
>> 
>>> Hi Ramsey,
>>> 
>>> Theoretically, defining the wo.bootstrapjar variable in the 
>>> build.properties should work. Defining the full path as you did is another 
>>> option too. However, as soon as the Maven plugin uses an old version of 
>>> woproject-ant-tasks, it may not work as we expect it to work (considering 
>>> the current source code for this library).
>>> 
>>> I’ll try to debug the plugin execution to understand what’s going on.
>>> 
>>> Cheers,
>>> 
>>> Henrique
>>> 
 On 17 de nov de 2015, at 22:25, Ramsey Gurley  
 wrote:
 
 Also, I’ve tried creating
 
 /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
 
 directly on the build server, as that appears to be the default location 
 where WOVariables looks. Still getting the old and busted appstart.cmd 
 file.
 
 On Nov 17, 2015, at 3:19 PM, Ramsey Gurley  wrote:
 
> Hi maven people,
> 
> I’m building a maven project with woapplication packaging. The 
> Application.CMD file for windows is 

Re: Maven builds and WOBootstrap.jar

2015-11-18 Thread Ramsey Gurley
Thanks for the reply Henrique. I just wanted to make sure I am not overlooking 
some special magic property to make it work or if there is some way to 
reference it from my dependency repo. I may see if I can figure out how to make 
the old woapp script properly escape the () in the path, since it appears to 
work (at least, on windows 10) otherwise. Then I just won’t need(?) 
WOBootstrap.jar. 

I gather this is the desired way to go if I want to use WOInject at some point 
in the future, based on my reading of old threads from the mailing list. 
Referencing magic jars outside the dependency repo seems like a step backwards 
when trying to use maven.

I notice on the rather dated roadmap that 3.0 was intended to merge/replace the 
woproject ant stuff.

https://wiki.wocommunity.org/display/WOL/Roadmap

Have you ever made a branch for that or had any progress in that direction? Are 
there any major hurdles blocking that goal?

On Nov 18, 2015, at 7:40 AM, Henrique Prange  wrote:

> Hi Ramsey,
> 
> Theoretically, defining the wo.bootstrapjar variable in the build.properties 
> should work. Defining the full path as you did is another option too. 
> However, as soon as the Maven plugin uses an old version of 
> woproject-ant-tasks, it may not work as we expect it to work (considering the 
> current source code for this library).
> 
> I’ll try to debug the plugin execution to understand what’s going on.
> 
> Cheers,
> 
> Henrique
> 
>> On 17 de nov de 2015, at 22:25, Ramsey Gurley  
>> wrote:
>> 
>> Also, I’ve tried creating
>> 
>> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>> 
>> directly on the build server, as that appears to be the default location 
>> where WOVariables looks. Still getting the old and busted appstart.cmd file.
>> 
>> On Nov 17, 2015, at 3:19 PM, Ramsey Gurley  wrote:
>> 
>>> Hi maven people,
>>> 
>>> I’m building a maven project with woapplication packaging. The 
>>> Application.CMD file for windows is coming from the woapp instead of the 
>>> woapp_52 directory in the woproject.jar. The woapp script is broken because 
>>> it does not gracefully handle directory paths like \ProgramFiles (x86)\ on 
>>> Windows the way woapp_52 script does. I’m getting it because 
>>> WOBootstrap.jar does not exist, and therefore, it assumes I’m using old n 
>>> busted WO 5 or 5.1. I tried adding 
>>> wo.bootstrapjar=/path/to/wotaskd/WOBootstrap.jar to build.properties, but 
>>> that did not work. I tried adding that as a property in the pom, but that 
>>> did not work either.
>>> 
>>> Can anyone tell me how to build a maven project with woapplication 
>>> packaging such that one gets the launch scripts from woapp_52 instead of 
>>> woapp?
>>> 
>>> Thanks,
>>> 
>>> Ramsey
>> 
>> 
>> ___
>> 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/hprange%40gmail.com
>> 
>> This email sent to hpra...@gmail.com
> 

 ___
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

Re: Maven builds and WOBootstrap.jar

2015-11-18 Thread Chuck Hill
Getting rid of the archaic dependancy on that jar and removing that ancient 
script seems to be the right thing to do.

Chuck

From: 
<webobjects-dev-bounces+chill=gevityinc@lists.apple.com<mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>>
 on behalf of Ramsey Gurley 
<rgur...@smarthealth.com<mailto:rgur...@smarthealth.com>>
Date: Wednesday, November 18, 2015 at 8:26 AM
To: Henrique Prange <hpra...@gmail.com<mailto:hpra...@gmail.com>>
Cc: WebObjects Development 
<webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>>
Subject: Re: Maven builds and WOBootstrap.jar

Thanks for the reply Henrique. I just wanted to make sure I am not overlooking 
some special magic property to make it work or if there is some way to 
reference it from my dependency repo. I may see if I can figure out how to make 
the old woapp script properly escape the () in the path, since it appears to 
work (at least, on windows 10) otherwise. Then I just won't need(?) 
WOBootstrap.jar.

I gather this is the desired way to go if I want to use WOInject at some point 
in the future, based on my reading of old threads from the mailing list. 
Referencing magic jars outside the dependency repo seems like a step backwards 
when trying to use maven.

I notice on the rather dated roadmap that 3.0 was intended to merge/replace the 
woproject ant stuff.

https://wiki.wocommunity.org/display/WOL/Roadmap

Have you ever made a branch for that or had any progress in that direction? Are 
there any major hurdles blocking that goal?

On Nov 18, 2015, at 7:40 AM, Henrique Prange 
<hpra...@gmail.com<mailto:hpra...@gmail.com>> wrote:

Hi Ramsey,

Theoretically, defining the wo.bootstrapjar variable in the build.properties 
should work. Defining the full path as you did is another option too. However, 
as soon as the Maven plugin uses an old version of woproject-ant-tasks, it may 
not work as we expect it to work (considering the current source code for this 
library).

I'll try to debug the plugin execution to understand what's going on.

Cheers,

Henrique

On 17 de nov de 2015, at 22:25, Ramsey Gurley 
<rgur...@smarthealth.com<mailto:rgur...@smarthealth.com>> wrote:

Also, I've tried creating

/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar

directly on the build server, as that appears to be the default location where 
WOVariables looks. Still getting the old and busted appstart.cmd file.

On Nov 17, 2015, at 3:19 PM, Ramsey Gurley 
<rgur...@smarthealth.com<mailto:rgur...@smarthealth.com>> wrote:

Hi maven people,

I'm building a maven project with woapplication packaging. The Application.CMD 
file for windows is coming from the woapp instead of the woapp_52 directory in 
the woproject.jar. The woapp script is broken because it does not gracefully 
handle directory paths like \ProgramFiles (x86)\ on Windows the way woapp_52 
script does. I'm getting it because WOBootstrap.jar does not exist, and 
therefore, it assumes I'm using old n busted WO 5 or 5.1. I tried adding 
wo.bootstrapjar=/path/to/wotaskd/WOBootstrap.jar to build.properties, but that 
did not work. I tried adding that as a property in the pom, but that did not 
work either.

Can anyone tell me how to build a maven project with woapplication packaging 
such that one gets the launch scripts from woapp_52 instead of woapp?

Thanks,

Ramsey


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com

This email sent to hpra...@gmail.com<mailto:hpra...@gmail.com>


 ___
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

Re: Maven builds and WOBootstrap.jar

2015-11-18 Thread Henrique Prange
Hi Ramsey,

Theoretically, defining the wo.bootstrapjar variable in the build.properties 
should work. Defining the full path as you did is another option too. However, 
as soon as the Maven plugin uses an old version of woproject-ant-tasks, it may 
not work as we expect it to work (considering the current source code for this 
library).

I’ll try to debug the plugin execution to understand what’s going on.

Cheers,

Henrique

> On 17 de nov de 2015, at 22:25, Ramsey Gurley  wrote:
> 
> Also, I’ve tried creating
> 
> /System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
> 
> directly on the build server, as that appears to be the default location 
> where WOVariables looks. Still getting the old and busted appstart.cmd file.
> 
> On Nov 17, 2015, at 3:19 PM, Ramsey Gurley  wrote:
> 
>> Hi maven people,
>> 
>> I’m building a maven project with woapplication packaging. The 
>> Application.CMD file for windows is coming from the woapp instead of the 
>> woapp_52 directory in the woproject.jar. The woapp script is broken because 
>> it does not gracefully handle directory paths like \ProgramFiles (x86)\ on 
>> Windows the way woapp_52 script does. I’m getting it because WOBootstrap.jar 
>> does not exist, and therefore, it assumes I’m using old n busted WO 5 or 
>> 5.1. I tried adding wo.bootstrapjar=/path/to/wotaskd/WOBootstrap.jar to 
>> build.properties, but that did not work. I tried adding that as a property 
>> in the pom, but that did not work either.
>> 
>> Can anyone tell me how to build a maven project with woapplication packaging 
>> such that one gets the launch scripts from woapp_52 instead of woapp?
>> 
>> Thanks,
>> 
>> Ramsey
> 
> 
> ___
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.com

 ___
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

Re: Maven builds and WOBootstrap.jar

2015-11-17 Thread Ramsey Gurley
Also, I’ve tried creating

/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar

directly on the build server, as that appears to be the default location where 
WOVariables looks. Still getting the old and busted appstart.cmd file.

On Nov 17, 2015, at 3:19 PM, Ramsey Gurley  wrote:

> Hi maven people,
> 
> I’m building a maven project with woapplication packaging. The 
> Application.CMD file for windows is coming from the woapp instead of the 
> woapp_52 directory in the woproject.jar. The woapp script is broken because 
> it does not gracefully handle directory paths like \ProgramFiles (x86)\ on 
> Windows the way woapp_52 script does. I’m getting it because WOBootstrap.jar 
> does not exist, and therefore, it assumes I’m using old n busted WO 5 or 5.1. 
> I tried adding wo.bootstrapjar=/path/to/wotaskd/WOBootstrap.jar to 
> build.properties, but that did not work. I tried adding that as a property in 
> the pom, but that did not work either.
> 
> Can anyone tell me how to build a maven project with woapplication packaging 
> such that one gets the launch scripts from woapp_52 instead of woapp?
> 
> Thanks,
> 
> Ramsey


 ___
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

Re: Maven

2013-12-23 Thread Henrique Prange
Hi Ron,

Do you still have problems accessing the Maven repository? 

Cheers,

Henrique

On 18/12/2013, at 07:40, Ron X ron.x.by...@gmail.com wrote:

 Hi to all!
 
 I have some problems with maven I could not resolve:
 
 [ERROR] Unresolveable build extension: Plugin 
 org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.2.1 or one of its 
 dependencies could not be resolved: Failed to collect dependencies for 
 org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:jar:2.2.1 (): 
 Failed to read artifact descriptor for 
 org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:jar:2.2.1: Could 
 not transfer artifact 
 org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:pom:2.2.1 from/to 
 wocommunity (http://maven.wocommunity.org/content/groups/public): Error 
 transferring file: maven.wocommunity.org: Unknown host maven.wocommunity.org 
 - [Help 2]
 
 Internen connection is stable and works fine
 ___
 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/hprange%40gmail.com
 
 This email sent to hpra...@gmail.com

 ___
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

  1   2   3   4   >