m2e error for any Maven project on CI 8 and CI 9

This topic contains 7 replies, has 3 voices, and was last updated by  support-swapna 10 months, 2 weeks ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #544440 Reply

    Piergiorgio Lucidi
    Participant

    Hi,

    after the upgrade on CI 8 it seems that the m2e plugin started to return the following exception.
    The problem here is that I have in MyEclipse, after the Maven Update project feature the popup with the NullPointException alert that is very annoying.

    I have to use Maven from bash because for some project I can’t

    The strange thing is that for any Maven project I have a similar exception and I don’t understand what is the real cause. From a Java point of view I should have any configuration correctly set.

    Could you please support me?
    Thank you.

    #544446 Reply

    Piergiorgio Lucidi
    Participant

    It seems that the problem is related to facets, I can’t see the dialog for managing facets it is returning a black window with a NullPointerException:

    #544448 Reply

    Brian Fernandes
    Moderator

    Piergiorgio,

    You mentioned both CI 8 and CI 9 in your title (CI 9 was released on Friday). Can you clarify what version you were on before you started experiencing issues – and did you run into this problem with both CI 8 and CI 9?

    Can you zip-up the .settings folder as well as the .project folder of your project and send it to us? We’ll take a look right away and see if your project metadata is bad, causing this problem. Apologies for the inconvenience caused.

    #544449 Reply

    Piergiorgio Lucidi
    Participant

    I’m using macOS Sierra 10.12.6, trying to create a new web app project using the standard Maven archetype provided by Apache (maven-archetype-webapp):

    #544450 Reply

    Piergiorgio Lucidi
    Participant

    Hi Brian,

    You mentioned both CI 8 and CI 9 in your title (CI 9 was released on Friday). Can you clarify what version you were on before you started experiencing issues – and did you run into this problem with both CI 8 and CI 9?

    I started to have some issues from CI8 but it was usable, starting from CI9 I can’t use it.
    I have attached a zip file with .settings and .project.

    Thank you for your support.

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

    Brian Fernandes
    Moderator

    Piergiorgio,

    What version of MyEclipse are you coming from – in which this project worked fine? It would appear that your project does not have enough metadata for Maven to work correctly – while the facet nature is present, the faceted project metadata is mostly missing from this project – so it looks like migration to a recent version was incorrectly performed. Did you modify the project properties or metadata yourself?

    Can you see your project listed in the Workspace Migration view? Window > Show View > General > Workspace Migration. If so, please refresh the view and go through the migration steps. From the error log you attached before, there’s a chance it isn’t visible, in which case we’ll give you some manual steps to perform.

    #544455 Reply

    Piergiorgio Lucidi
    Participant

    What version of MyEclipse are you coming from – in which this project worked fine?

    MyEclipse CI 7 worked very well, starting from CI 8 I saw problems.

    Did you modify the project properties or metadata yourself?

    No.

    Can you see your project listed in the Workspace Migration view? Window > Show View > General > Workspace Migration.

    The view is empty, I didn’t see any project to migrate.

    #544518 Reply

    support-swapna
    Moderator

    Piergiorgio,

    Attached is the zip containing the missing facet metadata files which you can copy into your project’s .settings folder.

    Shut down MyEclipse and in the file system explorer unzip the contents of the attached zip into your project’s .settings folder (leave the rest of files as it is). Once done, start MyEclipse and check if the problem still exists.

    If you are still seeing the issue, please clarify if you are seeing the problem in all the maven projects in the workspace. If possible, switch to a new workspace, check if the issue persists and send us the .log file located at workspace dir/.metadata/.log for further investigation.

    Apologies for inconvenience caused. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: m2e error for any Maven project on CI 8 and CI 9