Classpath entry *.jar will not be exported or published

报错
Classpath entry *.jar will not be exported or published

分析
javaweb项目发布资源,引用了外部资源,但没有发布在web App libaries(web-inf/lib)下。解决办法直接将用包复制在web-inf/lib下。

探究

  • java的jar包是分层,在不同的环境下
  • 服务器jar包 tomcat/lib
  • 项目jar包 web-inf/lib
  • 开发环境jar包 src/libararies

常规操作流程

  • maven下载安装依赖
  • java源码编辑
  • 发布生成在server上运行

猜你喜欢

转载自blog.csdn.net/u011584949/article/details/82828522