Eclipse 2022-06 does not show outline of a pom.xml - eclipse

Eclipse 2022-06-ee does not show the outline of a pom.xml anymore:
Eclipse 2021-09-ee showed it (the same project, the same file):
What can I do that the outline is shown again in eclipse 2022-06?

Related

Adding .jar to Eclipse 2018-09 project

I'd like to know how to add JAR file to Eclipse 2018-09 project. I've already copied it to lib project's folder. I've tried right clicking on jar file and build path but no actions are displayed.
Thanks in advance
If you are developing a Java Project you want to right click on the project go to properties, click on Java Build Path in the preference tree then on that tab click libraries and on there click add jar and then select the jar you want to add to your classpath.
If you are building a eclipse plugin, open the MANIFEST.MF file go to the runtime tab in the editor and on the bottom right there is a classpath selection, click add and point to the jar you want to add to your classpath.

Maven project appearing as path

I have 3 Maven projects, but the 3th is appearing like a path in Eclipse. How do I set to Eclipse understand that Project 3 is a Maven Project, not a path?
EDIT: This occurred after I switch for other branch at GitLab
I solved this by clicking on Project3 with the right button of the mouse, click on Import, select Existing Maven Projects, select my project and Finish.
EDIT: you can also select Import as project

Maven Standard Directory Layout

I am trying to get the Maven standard directory layout on my Eclipse project with the expected
src/main/java
src/main/resources
src/test/java
src/test/resources
However, all I am seeing after building the project is the following:
Can someone give me some specific instructions as to what I need to do to fix this?
As I can deduce from your screen-shots
the Eclipse project is correctly configured to be a Maven project (it has the Maven nature - that can be seen by the M icon on the project folder icon)
the M2Eclipse plugin is correctly up-to-date
Now, the first error is that your POM is incorrect. You should remove the declaration <sourceDirectory>.
Then my guess is that you arrived at your current situation because, in Eclipse, you created a "Java Project" and then converted it to a "Maven Project" by right-clicking and selecting "Configure > Convert to Maven Project" (what makes me thinks that is your current source folder being src, which is the default after creating a "Java Project").
What you seem to be missing is a clean refresh of your project. You should right-click the project, go into "Maven > Update Project...", and click "OK". This should resolve your problem.
If this does not work for some reason, I suggest you remove your current project (from the workspace and the content on disk) and, instead of creating a "Java Project", create a "Maven Project", by going to "File > New... > Maven Project". The M2Eclipse plugin will kick in and this new project will be correctly configured.
Remove the <sourceDirectory> tags. You are using the defaults and these do not need to be declared.
Also, as the esteemed #Tunaki mentioned, use the M2Eclipse (m2e) plugin or right-click the project and select "Enable Dependency Management". If you are using Eclipse Luna or later, m2e is already included. If you don't do this, you'll be able to build just fine from the Command Prompt, but Eclipse will be confused.

Eclipse shows error decorator

I have created a Maven project with JPA and JFS Facets in eclipse. In the project explorer the folder "Java resources" is decorated with white cross on a red background, which means that there are errors at least in one file contained in the folder. But this is not the case! Is this an eclipse bug or am I missing something?

Eclipse Recognizes Todo in FreeMarker Template File

When editing Java code in Eclipse IDE, I can put // TODO in the code and Eclipse IDE will add the comment text into my Eclipse IDE Tasks window.
When editing XML files in Eclipse IDE, I can put <!-- TODO...--> in the file and Eclipse IDE will add the comment text into my Eclipse IDE Tasks window.
I am editing a FreeMarker FTL file in Eclipse IDE. I have installed the FreeMarker plugin. I am using the FreeMarker editor that comes with the plugin. The FTL file has HTML and FreeMarker tags. What can I put in the file to have the text show up in my Eclipse IDE Tasks window? Is there a configuration change I can make to Eclipse IDE to cause it to recognize the TODO?
If you are just using the plain text editor then there is nothing you can type.
However you can use 'Edit > Add Task...' to add a task (you can also right click on the left hand vertical ruler and select 'Add Task...').
A Task marker will be added in the left hand vertical ruler, the tooltip for this will show your text. The marker will also appear in the Tasks view.