My newly imported Maven project in Eclipse workpace has J and M icons on top of the project folder (Project and Package explorer) while the other imported Maven projects has only a J icon.
Can someone explain the difference ?
解决方案
The project having J decorator are called Java projects and projects having M decorator are called Maven projects. An eclipse project can be of more than one type.
Project type can be seen in the .project file present inside any given project.
Typical content of .project file look like as shown below
Test
org.eclipse.jdt.core.javabuilder
org.eclipse.pde.ManifestBuilder
org.eclipse.pde.SchemaBuilder
org.eclipse.pde.PluginNature
org.eclipse.jdt.core.javanature
Look at natures tag. All Java projects will have org.eclipse.jdt.core.javanature nature and a single project can have multiple nature.
You can convert Java projects to Maven projects by right clicking on any Java project and selecting Configure > Covert to Maven project
Check the changes in .project file after converting.