You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the problem that, more or less, right after importing a project, running the following will return null. But when having a project already imported in the workspace and (re-)starting it, then it works:
I'm not sure why this is the case but this happens no matter how long I wait after opening a workspace before importing a Maven project. There is also no log or any other information on why the facade could not be created. My first guess here is that this shouldn't be the case as the ProjectRegistryManager#create(IProject) states in its comment that it will return a cached or create a new MavenProjectFacade but there is no null mentioned as a possible return value.
Does anyone have a clue if this is intended or not and if it is, what is a better approach to do it?
Giving you a bit of context on why we access it: When a project is opened we list all the files in it to forward it to our plug-in. Using m2e, we can exclude the output directory and the sub-modules as these are irrelevant files to us (in the case of the output directory) or just not this project files (for sub-modules).
Best,
Tobias
The text was updated successfully, but these errors were encountered:
Hello everyone,
I encountered the problem that, more or less, right after importing a project, running the following will return
null.
But when having a project already imported in the workspace and (re-)starting it, then it works:I'm not sure why this is the case but this happens no matter how long I wait after opening a workspace before importing a Maven project. There is also no log or any other information on why the facade could not be created. My first guess here is that this shouldn't be the case as the
ProjectRegistryManager#create(IProject)
states in its comment that it will return a cached or create a newMavenProjectFacade
but there is nonull
mentioned as a possible return value.Does anyone have a clue if this is intended or not and if it is, what is a better approach to do it?
Giving you a bit of context on why we access it: When a project is opened we list all the files in it to forward it to our plug-in. Using m2e, we can exclude the output directory and the sub-modules as these are irrelevant files to us (in the case of the output directory) or just not this project files (for sub-modules).
Best,
Tobias
The text was updated successfully, but these errors were encountered: