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

Lists

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

Re: Hello again


  • Subject: Re: Hello again
  • From: Paul Hoadley via Webobjects-dev <email@hidden>
  • Date: Tue, 18 Jan 2022 09:06:39 +1030

Hi Mark,

On 17 Jan 2022, at 6:04 pm, Mark Wardle <email@hidden> wrote:

> Right. It *is* all working - from the command-line.
>
> But it is eclipse that is having problems. For some reason I get a 'no model
> found' in this model group error.
>
> Jan 17 07:16:57 RSNews[59144] WARN  NSLog  - A fatal exception occurred:
> There is no model named 'NhsModel' in this model group.
> [2022-1-17 7:16:57 GMT] <main> java.lang.IllegalArgumentException: There is
> no model named 'NhsModel' in this model group.
>
> I have only a hazy recollection of how model groups work - and they just
> seemed to work before. Oddly, I can't find any eomodel directories in my
> command-line built target, so presume they end up in the jar files.

Yes they will.

> Do I need a special <resources> statement in any of the pom files?

No. Are your models just sitting in src/main/resources?

> I note this wasn't an issue when I created a single maven project combining
> all of my frameworks and a single application, but it is an issue now my
> EOModels are in different frameworks from the application. Is there a special
> command-line parameter to set (or unset) for eclipse, as it seems to find the
> models when run from the command-line.

No, I don't think so. Do you have the framework projects open in the same
workspace? If not, have you run 'mvn install' for the framework projects so
that their JARs are in ~/.m2/repository?

> PS Oh and eclipse seems to want to keep changing the .classpath files. I know
> maven will ignore those, but it is disconcerting. Do I check them into
> version control or add them to .gitignore now?

I check .classpath into the repo for WebObjects projects, and periodically
commit changes that Eclipse seems to make on a whim.

The last 5% of the Maven journey can be frustrating, but once we get you there,
you won't look back.


--
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Hello again
      • From: Mark Wardle via Webobjects-dev <email@hidden>
References: 
 >Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Paul Hoadley via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Paul Hoadley via Webobjects-dev <email@hidden>)
 >Re: Hello again (From: Mark Wardle via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: Hello again
  • Next by Date: Re: Hello again
  • Previous by thread: Re: Hello again
  • Next by thread: Re: Hello again
  • Index(es):
    • Date
    • Thread