spring - 部署生成的 Maven Spring 项目不起作用

标签 spring tomcat intellij-idea deployment

我正在使用 IntelliJ,我用 Maven Archetype co:ntier spring-mv-archetyp 创建了一个新的 SpringProjekt 。现在我想在 Tomcat 9 服务器上部署该项目,但这不起作用。我收到以下 Stacketrace:

Connected to server
[2018-05-18 10:22:43,232] Artifact games:war exploded: Artifact is being deployed, please wait...
[2018-05-18 10:22:43,232] Artifact games:war: Artifact is being deployed, please wait...
[2018-05-18 10:22:43,238] Artifact games:war exploded: Error during artifact deployment. See server log for details.
[2018-05-18 10:22:43,238] Artifact games:war exploded: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: C:\Users\Tobi\IdeaProjects\games\target\games not found for the web module.
[2018-05-18 10:22:43,244] Artifact games:war: Error during artifact deployment. See server log for details.
[2018-05-18 10:22:43,245] Artifact games:war: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: C:\Users\Tobi\IdeaProjects\games\target\games.war not found for the web module.
18-May-2018 22:22:52.920 INFORMATION [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\entwicklung\apache-tomcat-9.0.8\webapps\manager]
18-May-2018 22:22:53.139 INFORMATION [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\entwicklung\apache-tomcat-9.0.8\webapps\manager] has finished in [218] ms

谢谢你的帮助,我希望有人能帮助我。

最佳答案

工件构建步骤是 missing here ,因此输出目录是空的,没有任何要部署的东西。

关于spring - 部署生成的 Maven Spring 项目不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50419001/

相关文章:

eclipse - 使用 Eclipse 发布 tomcat 7.0

java - 构建路径不完整。找不到 javax/servlet/ServletContext 的类文件

java - 如何解决 Spring 中的循环依赖

tomcat - 配置 Tomcat 以通过 SSL 使用 Web 服务

java - 为什么我会收到部署错误?

intellij-idea - 让 IntelliJ 确定代码是否仅用于测试

java - Tomcat+Spring环境下的Jersey找不到ComponentProvider。为什么?

Spring UnsatisfiedDependencyException 且不是托管类型 : class java. lang.Object

java - 在 IntelliJ IDE 中无法选择与 SDKMAN 一起安装的 JDK

java - 在 IntelliJ IDEA 中查找结构性 catch block