어떻게 기본으로 메이븐을 사용하지 않고, 넷빈즈에서 자바 프로젝트를 만드는 방법?

크리스 Kcas :

나는 현재 기본적인 자바 프로젝트를 만들려고 해요. 첫 번째 옵션은 나타납니다 이미 사용하지만, 나에게 내가 필요로하는 "메인 클래스 만들기"옵션을 제공하지 않습니다 "메이븐으로 자바"입니다.

나는 윈도우 10, 64에서 실행중인 아파치 넷빈즈 IDE 11.0을 사용하고 있습니다. 나는 업데이트하고 내가 찾은 가장 최근의 JDK 버전을 설치, 그것을 하루 종일을 준, 여전히 나는 그것이 작동되도록 드릴 수 없습니다.

나는이 대답을 읽었습니다,하지만 작동하지 않습니다 : 넷빈즈 8.2에 프로젝트를 만들 수 없습니다

여기에 내가지고있어 무엇의 이미지는 다음과 같습니다

ProjectWizrdOnNetBeans11

어떤 도움이, 감사 감사합니다.

skomisa :

The project templates were revised in Apache NetBeans 11.0 to give Maven projects greater prominence. From an Apache NetBeans blog post:

Restructuring of Project Templates in Apache NetBeans

There's been lots of discussion in the Apache NetBeans community about how best to express the fact that Apache Maven and Apache Gradle are more modern choices to be aware of than Apache Ant, while at the same time not implying that there's anything wrong with using Apache Ant.

Here's what we seem to have reached consensus around, i.e., move all Ant-based project templates into a separate Ant-specific folder, while putting the other two build systems higher and therefore more prominently in the list:

새 프로젝트 템플릿

With the above, someone is less likely to simply go to the no-longer-existing Java category and then end up with an Ant-based project, without thinking about it. By default, the user of Apache NetBeans is now encouraged to consider Apache Maven and Apache Gradle first. The old Ant-related categories are still there, so as not to confuse anyone completely, just structured within a lower ranked "Java with Ant" category. The above also solves the discussion re "Java EE", i.e., here the idea, from discussions, is to name the category "Java Enterprise".

At startup, all categories are closed, i.e., none is more prominent initially than any other.

An objection one could have is that, if you're a complete Java newbie, you won't know what Maven, Gradle, or Ant are. Well, that has always been the case and NetBeans has artificially hidden that choice by having a category simply named "Java", which then resulted in everyone ending up with Ant-based projects. To turn that around and have a category simply named "Java" that results in Maven-based projects is probably not right either, i.e., a careful balance needs to be struck.

So if you created a project using File > New Project... > Java > Java Application in earlier releases of NetBeans, you should use File > New Project... > Java with Ant > Java Application in NetBeans 11.0.

Notes:

  • 넷빈즈 버그 신고 새 프로젝트 마법사에서 넷빈즈-2040 메이븐 먼저 말합니다.
  • 또한이 YouTube 동영상의 시작 부분에 대한 설명을 참조 아파치 넷빈즈 11.0 거친 가이드 .
  • 넷빈즈 11.0 다른 프로젝트 마법사의 변화 :
    • 넷빈즈 11.0에서 나는 Gradle을 플러그인 (설치했다 도구> 플러그인> 사용 가능한 플러그인> Gradle을을 보기 위해) Gradle을 함께 자바 프로젝트 마법사에서.
    • 넷빈즈의 이전 버전에서 사용 자바 엔터프라이즈 프로젝트 생성 파일> 새 프로젝트 ...> 자바 EE가> ... 하지만, 넷빈즈 11.0이가 변경된 파일> 새 프로젝트 ...> 개미와 자바> 자바 엔터프라이즈> ...

추천

출처http://43.154.161.224:23101/article/api/json?id=137835&siteId=1