Netbeans Maven项目-其他来源未出现 [英] Netbeans Maven Project - Other Sources does not appear

查看:64
本文介绍了Netbeans Maven项目-其他来源未出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Netbeans-Maven项目的逻辑文件夹中,其他源"通常是一些文本,xml等.文件被存储.Howewer,我不知道它何时确切显示,以及在创建新项目时如何创建它.
我尝试过(与带有junit测试文件的测试包一样)

In Netbeans-Maven Project, in logical folder Other Sources are usually some textual, xml, etc. Files are stored. 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)

右键单击 Project->新->Xml 文件或只是空文件.新文件是在项目根目录(不是源文件)中创建的,没有显示其他源文件"文件夹.我只想显示其他来源"文件夹-然后,我可以将文件移到那里.

Right click on Project -> New -> Xml File or just empty 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.

推荐答案

您需要在"src/main"下找到"resources"文件夹.您可以使用资源管理器或在NetBeans中使用文件"选项卡来创建它.

You need the folder "resources" under "src/main". 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 Maven项目-其他来源未出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆