【问题标题】:com.intellij.execution.ExecutionException: my-portal-0.0.1-SNAPSHOT not found for the web modulecom.intellij.execution.ExecutionException:找不到 web 模块的 my-portal-0.0.1-SNAPSHOT
【发布时间】:2021-03-01 19:15:13
【问题描述】:

我的 pom.xml 中有这个服务版本:

<artifactId>my-portal</artifactId>
<version>1.0-SNAPSHOT</version>

构建后,我得到了这个神器:my-portal-1.0-SNAPSHOT.war

我尝试将此工件部署到本地 tomcat 并收到错误:

[2020-11-18 04:40:16,580] Artifact my-portal:war exploded: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: C:\gitProjects\my-portal\target\my-portal-0.0.1-SNAPSHOT not found for the web module.

为什么我得到这个异常?以及为什么maven/Intellij/tomcat(我不知道是谁)认为我有版本0.0.1-SNAPSHOT

【问题讨论】:

  • 没有项目很难判断,或者至少看到项目设置和 pom.xml

标签: java tomcat intellij-idea war


【解决方案1】:

首先,您可以修改项目结构,然后单击工件,删除原始战争和战争展开,然后从您的项目模块中添加新战争和战争展开。 然后,修改你的运行服务器,比如我的服务器是tomcat,我就配置一下

  1. The picture of Project Structure
  2. The picture of tomcat

【讨论】:

    猜你喜欢
    • 2020-02-16
    • 2016-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-02
    • 2018-01-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多