【问题标题】:Tomcat and Maven:Publishing failed with multiple errors Error reading file C:\Windows\System32Tomcat 和 Maven:发布失败并出现多个错误读取文件 C:\Windows\System32 时出错
【发布时间】:2017-03-20 22:47:40
【问题描述】:

我在 Eclipse (Neon) 环境中设置了 Tomcat v7.0 服务器。我构建了项目并使用 Tomcat 的 add 选项将战争添加到服务器。由于无法发布,我收到以下错误:

发布失败发布失败,出现多个错误
读取错误 文件 C:\Windows\System32\log4j\log4j\1.2.16\log4j-1.2.16.jar C:\Windows\System32\log4j\log4j\1.2.16\log4j-1.2.16.jar(系统 找不到指定的路径)
读取文件时出错 C:\Windows\System32\org\springframework\spring-webmvc\4.2.5.RELEASE\spring-webmvc-4.2.5.RELEASE.jar C:\Windows\System32\org\springframework\spring-webmvc\4.2.5.RELEASE\spring-webmvc-4.2.5.RELEASE.jar (系统找不到指定的路径)
读取文件时出错 C:\Windows\System32\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar C:\Windows\System32\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar (系统找不到指定的路径)...

对于一堆其他的 JARS 等等

这些存在于 Maven 存储库中。我不确定它在哪里选择这条路。 我尝试清理工作目录,检查配置文件并重新安装 tomcat 实例。

还有其他人遇到过这个吗?

【问题讨论】:

    标签: java eclipse maven tomcat


    【解决方案1】:

    MAVEN_HOME 环境变量没有指向正确的路径。修复后工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-25
      • 2014-09-26
      • 2022-07-14
      • 2012-08-06
      • 2021-12-14
      相关资源
      最近更新 更多