facebook

Update .classpath from Maven4MyEclipse?

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #345879 Reply

    Eric Lentz
    Participant

    Is it possible for Maven4MyEclipse to update the .classpath with the dependencies from the POM like M2E does? If so, how?

    #345905 Reply

    support-swapna
    Moderator

    elentz,

    Maven4MyEclipse is a custom implementation of M2Eclipse.It is possible to update the .classpath with dependencies in the POM just the way it is done in M2Eclipse. You can add the dependencies to the POM.xml and right click on the project > Maven4MyEclipse > Update Dependencies and Update Project Configuration.

    Let us know if you see any issues.

    #345909 Reply

    Eric Lentz
    Participant

    If I had those options, then I’d be good-to-go. I don’t. See the attached image.

    So I’m thinking that I need to add the “Maven Support for Java EE projects Facet?” When I try to, it first says, “Adding facets to a non-migrated project can cause problems. Migrate?” I click yes and Next. It says under operations to be performed (see attached image), “Install Spring Facet.” This isn’t a Spring project, so I don’t really want that, but I can’t anyway because it says, “Facet constraints error: Spring 3.1 requires Java 1.5 or newer. The migrations process cannot be completed; please refer to the migration FAQ for details.” Clicking on that gives me errors.

    I posted the project in the event that it would help.

    Attachments:
    You must be logged in to view attached files.
    #345911 Reply

    Eric Lentz
    Participant

    Never mind, I got it. It was brute force, but I went into .settings/org.eclipse.wst.common.project.facet.core.xml and set jst.java to 1.5. Then I was able to add the facet and do what you indicated.

    #345956 Reply

    support-swapna
    Moderator

    elentz,

    Glad that you got it working.
    Do let us know if you see any issues.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Update .classpath from Maven4MyEclipse?

You must be logged in to post in the forum log in