Java project and Maven project (eclipse) need structure description

When I create a new Maven project in eclipse, the directory structure contains Src / main / Java and Src / main (below)

Question: I understand that my code should be under Src / main / Java. What is the purpose of Src / main? Why did eclipse create it?

Solution

For Src / main / Java, Src / main / must exist first, so eclipse only displays all folders in your project, including Src / main/

If you want to remove them from the view in package explorer, you can create a filter for the package Explorer view and exclude non Java elements

Find the down arrow in the upper right corner of the package browser view for filter options

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>