Netbeans没有显示来自Archetype的新项目的已知原型

Netbeans没有显示来自Archetype的新项目的已知原型

本文介绍了Netbeans没有显示来自Archetype的新项目的已知原型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建新项目时, NetBeans 出现问题,它没有显示创建项目的所有原型选项.

I have a problem with NetBeans when I try to create a new project, it does not show all options of archetypes to create a project.

我在Windows 10中工作,并且已经在用户路径中添加了 maven .当我在Windows控制台中使用mvn -v时,它将起作用.

I work in Windows 10, and I already have added maven to the user path. It works when i use mvn -v in the Windows console.

推荐答案

我找到了解决方案,产生了此问题,因为中央存储库不再支持通过纯HTTP进行的不安全通信,并且要求对存储库的所有请求都必须通过HTTPS加密

I found the solution, the problem is produced because The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS.

要解决此问题,我必须修改文件" NetbeansLocationPath/java/maven/conf/settings.xml "并在mirros标签中添加下一行.

To solve this, i have to modify the file "NetbeansLocationPath/java/maven/conf/settings.xml"and add the next lines in the mirros tags.

    <mirror>
      <id>other-mirror</id>
      <mirrorOf>central</mirrorOf>
      <name>Other Mirror Repository</name>
      <url>http://insecure.repo1.maven.org/maven2/</url>
    </mirror>
    <mirror>
      <id>internal-repository</id>
      <name>Maven Repository Manager running on https://repo1.maven.org/maven2</name>
      <url>https://repo1.maven.org/maven2</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

这篇关于Netbeans没有显示来自Archetype的新项目的已知原型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 15:49