Is there a way to hide Maven 2 “target/” folder in Eclipse 3?

前端 未结 12 1188
[愿得一人]
[愿得一人] 2021-01-30 04:58

I\'m using maven 2.0.9 with Eclipse 3.3.2.

I\'m used to launching a fresh build once per day by a mvn clean install. Then, if I refresh my Eclipse project,

12条回答
  •  天命终不由人
    2021-01-30 05:49

    I had some issues because some solutions here only work for some views, so I made an illustrated summary.

    Tested in Eclipse 4.4 (Luna), should work like this since 3.7 according to other answers here.

    Package Explorer

    Package Explorer View MenuFilters... → check Name filter patterns and input target.

    Be careful, this will hide all folders and files named target, not just the default maven build directory! The Project Explorer view has a better option without this issue.

    Package Explorer Menu Package Explorer Dialog

    Project Explorer

    Project Explorer View Menu → Custom View... → search for "maven" and check Maven build folder.

    Checking this option hides the build directory as defined in the projects pom.xml configuration.

    Project Explorer Menu Project Explorer Dialog

提交回复
热议问题