当前位置: 首页 > 知识库问答 >
问题:

在netbeans 8.2中创建Maven Web Project项目时出现问题

法玮
2023-03-14

我转到New Project>Maven>Web Application,尝试创建一个Maven项目。我使用的是glassfish服务器4.1.1和java EE 7 Web。当我点击finish时,我得到了这个错误。

要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。使用-x开关重新运行Maven以启用完全调试日志记录。

有关错误和可能的解决方案的详细信息,请阅读以下文章:[帮助1]http://cwiki.apache.org/confluence/display/maven/noplugInfoundforPrefixException

有的身体请救救!!!

共有1个答案

令狐阳秋
2023-03-14

我怀疑这是https问题,您可以尝试将其添加到pom.xml:

( ...标记后)

  <pluginRepositories>
    <pluginRepository>
        <id>central</id>
        <name>Central Repository</name>
        <url>https://repo.maven.apache.org/maven2</url>
        <layout>default</layout>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <releases>
            <updatePolicy>never</updatePolicy>
        </releases>
    </pluginRepository>
</pluginRepositories>
<repositories>
    <repository>
        <id>central</id>
        <name>Central Repository</name>
        <url>https://repo.maven.apache.org/maven2</url>
        <layout>default</layout>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
 类似资料:
  • 我正在学习使用laravel创建项目,我正在使用PHP8。通过“laravel新建项目”创建新项目时。我得到了这个错误,供应商文件夹在该项目中丢失。

  • 问题内容: 早在12月,我就从Eclipse切换到了IntelliJ IDEA,但几天后又切换回了。今天,我再次尝试了IntelliJ,基本上只剩下一期了。 问题是我想在保存时编译Java类。原因是我正在使用JRebel,它将选择新类。我不想每次都按+ 来编译更改的类。 我阅读了有关EclipseModel插件的信息,但似乎不再起作用了,可以在该插件的页面上的注释中看到:http : //plug

  • 我的UserController 我的用户服务 我的用户管理器 我的错误 我的pom.xml 问题出在哪里?我不明白

  • 我正在使用eclipse、m2eclipse插件和maven创建一个新的maven项目,遵循以下步骤,http://o7planning.org/en/10101/install-maven-into-eclipse 但是,当创建一个新的maven项目时,没有JRE系统库,也没有maven库。只有如下所示的src、target和pom.xml。这正常吗?如果没有,我该如何避免呢?谢谢! 单击以获取

  • 我在Eclipse中创建maven项目时遇到了一个问题。发生以下错误: 无法计算生成计划:Plugin org.apache.maven。plugins:maven-resources-plugin:2.6或其一个依赖项无法解析:读取org.apache.maven的工件描述符失败。plugins:maven-resources-plugin:jar:2.6 pluginorg.apache.ma

  • 每次创建新项目时,我都会遇到以下错误: 知道吗?