Java 在Eclipse中搜索类型/引用时如何隐藏maven依赖关系?
在搜索类或其引用(Ctrl+Shift+T或Ctrl+Shift+G)时,我得到了重复的结果:我打开的项目中的.java文件和Maven依赖项(.m2\repo jars)中的.class文件: 如何从这些结果中隐藏.class结果?您可以尝试以下方法:Java 在Eclipse中搜索类型/引用时如何隐藏maven依赖关系?,java,eclipse,Java,Eclipse,在搜索类或其引用(Ctrl+Shift+T或Ctrl+Shift+G)时,我得到了重复的结果:我打开的项目中的.java文件和Maven依赖项(.m2\repo jars)中的.class文件: 如何从这些结果中隐藏.class结果?您可以尝试以下方法: Go to Project > Properties > Resource > Resource Filters Click Add Filter... Filter type: Exclude all Applies
Go to Project > Properties > Resource > Resource Filters
Click Add Filter...
Filter type:
Exclude all
Applies to:
Folders
Check All children (recursive)
Filter Details:
Name
Matches
Type in the text box: target
有很多方法,您可以查看以下链接:
和
这不起作用。我也尝试了.m2而不是target。
Go to Project > Properties > Resource > Resource Filters
Click Add Filter...
Filter type:
Exclude all
Applies to:
Folders
Check All children (recursive)
Filter Details:
Name
Matches
Type in the text box: target