Hi Samuel, On 2 Apr 2024, at 08:23, Samuel Pelletier via Webobjects-dev <webobjects-dev@lists.apple.com> 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: <nature>org.maven.ide.eclipse.maven2Nature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> 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 <webobjects-dev@lists.apple.com> 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