• 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
Maven migration: last two hurdles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Maven migration: last two hurdles


  • Subject: Maven migration: last two hurdles
  • From: Paul Hoadley <email@hidden>
  • Date: Sun, 09 Oct 2016 21:59:30 +1030

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Maven migration: last two hurdles
      • From: Faizel Dakri <email@hidden>
  • Prev by Date: Re: Maven with subdirectories within the src/main/components/ path
  • Next by Date: WORedirect with a known MIME type?
  • Previous by thread: Re: Maven with subdirectories within the src/main/components/ path
  • Next by thread: Re: Maven migration: last two hurdles
  • Index(es):
    • Date
    • Thread