Hi Mark, On 17 Jan 2022, at 6:04 pm, Mark Wardle <m...@wardle.org> 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 (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