【发布时间】: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