简体   繁体   English

Netbeans Maven项目 - 其他来源不会出现

[英]Netbeans Maven Project - Other Sources does not appear

In Netbeans-Maven Project, in logical folder Other Sources are usually some textual, xml, etc. Files are stored. 在Netbeans-Maven项目中,在逻辑文件夹中,其他源通常是一些文本,xml等。文件存储。 Howewer, i do not understand when exactly it is appearing and how to create it while creating a new project. 但是,我不明白它何时出现以及如何在创建新项目时创建它。
I tried (the same like for Test Packages with junit test files) 我尝试过(与使用junit测试文件的测试包一样)

Right click on Project -> New -> Xml File or just empty file. 右键单击Project -> New -> Xml File或只清空文件。 The new file is created in the project root (not sources), withoout Other Sources Folder is shown. 新文件在项目根目录(而非源代码)中创建,不显示其他源文件夹。 I only want to make the Other Sources folder shown - then, i can move a file there. 我只想显示Other Sources文件夹 - 然后,我可以在那里移动文件。

You need the folder "resources" under "src/main". 您需要“src / main”下的“resources”文件夹。 You can create it using the explorer or in NetBeans using the tab "Files". 您可以使用资源管理器或NetBeans使用“文件”选项卡创建它。

NetBeans will then recognize this folder and display it as "Other Sources". 然后,NetBeans将识别此文件夹并将其显示为“其他来源”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM